opencivicdata / pupa

framework for scraping legislative/government data
BSD 3-Clause "New" or "Revised" License
85 stars 42 forks source link

Use family name when resolving person entities #328

Closed csnardi closed 4 years ago

csnardi commented 4 years ago

Some entities that need people resolution (primarily bill actions) will frequently have last names only, and not a full name. Since we might have a family name for a person, attempt to use this as well when resolving a person.

See https://github.com/openstates/openstates/issues/3102. This might not be helpful with common last names (e.g. Smith), so perhaps a more complex logic for those cases would be better (matching legislator start/end dates to vote dates?).

coveralls commented 4 years ago

Coverage Status

Coverage increased (+0.07%) to 94.768% when pulling 66c6dff227ff62beb6370e854d0790bec634ab3d on csnardi:family-name-resolution into b87ef9c6f45bb284acc29042e7ad498fffdde26d on opencivicdata:master.