def METHOD_NAME(self, item):
    title = item.text_content()
    title_list = title.strip().split(" ")
    chamber = title_list[0]
    if chamber == "Senator":
        chamber = "upper"
    elif chamber == "Representative":
        chamber = "lower"
    source = item.get("href")
    p = PartialMember(chamber=chamber, url=self.source.url)
    return LegDetail(p, source=source)