Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NC: Strip leading "Rep. " and "Sen. " from committee members to help with matching #1370

Merged
merged 1 commit into from Feb 14, 2017

Conversation

mshenfield
Copy link
Contributor

@mshenfield mshenfield commented Feb 14, 2017

This strips leading "Rep. " and "Sen. " from committee members to help with name matching. NameMatcher seems like it is treating "Rep. Adams", for example, as a person whose first name is "Rep. ".

This silences the warning "No matches for" for all but two members. Member "Brenden Jones" should match Rep. Brendan H. Jones, and member "R.Turner" should match Rep. Rena W. Turner.

Close #1342.

…with matching

This strips leading "Rep. " and "Sen. " from committee members to help with name matching. NameMatcher seems like it is treating "Rep. Adams", for example, as a person whose first name is "Rep. ".

This silences the warning "No matches for" for all but two members, "Brenden Jones", who is listed as "Brendan H. Jones" on the legislators page, and "R.Turner".
@mshenfield
Copy link
Contributor Author

mshenfield commented Feb 14, 2017

Lower house committee debug logs

Without change:

807 lines

With change:

02:32:07 DEBUG billy: No matches for R.Turner
02:32:07 DEBUG billy: No matches for R.Turner
02:32:07 DEBUG billy: No matches for Brenden Jones
02:32:07 DEBUG billy: No matches for Brenden Jones
02:32:07 DEBUG billy: No matches for R.Turner
02:32:07 DEBUG billy: No matches for Brenden Jones
02:32:07 DEBUG billy: No matches for R.Turner
02:32:07 DEBUG billy: No matches for Brenden Jones
02:32:07 DEBUG billy: No matches for R.Turner
02:32:07 DEBUG billy: No matches for R.Turner
02:32:07 DEBUG billy: No matches for Brenden Jones
02:32:07 DEBUG billy: No matches for R.Turner
02:32:07 DEBUG billy: No matches for Brenden Jones
02:32:07 DEBUG billy: No matches for R.Turner
02:32:08 DEBUG billy: No matches for Brenden Jones

@jamesturk jamesturk merged commit 1ba1fc5 into openstates:master Feb 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants