propublica / congress-api-docs

Documentation for the ProPublica Congress API
https://projects.propublica.org/api-docs/congress-api/
53 stars 4 forks source link

Clarifying nicknames and name suffixes for legislators #37

Open konklone opened 7 years ago

konklone commented 7 years ago

In the Sunlight Congress API, legislators have both a first_name and a nickname, for when their legal name and the name they go by differs. There is also a name_suffix, for Jr. and III and similar.

The Pro Publica API doesn't have those fields. Could you clarify:

dwillis commented 7 years ago

To clarify:

konklone commented 7 years ago
  • We do try and make first_name what the lawmaker goes by, with some exceptions: if the lawmaker uses his or her middle name as a first name, we still put the middle name in middle_name.

Yeah, I recall that being a common case. Do you have suggested client logic to reliably display the name the lawmaker goes by? I assume that in most middle_name cases, it's not the name they go by, and so you can't just always pick the middle_name field.

dwillis commented 7 years ago

We could add a display_name field - a similar thing appears in some responses - and standardize on that?

konklone commented 7 years ago

That would work! I noticed that in other responses, and that would do just fine.