unitedstates / congress-legislators

Members of the United States Congress, 1789-Present, in YAML/JSON/CSV, as well as committees, presidents, and vice presidents.
Creative Commons Zero v1.0 Universal
2.05k stars 505 forks source link

Congress Committees possible formatting issue #949

Open ShakaJohn opened 6 days ago

ShakaJohn commented 6 days ago

Hi,

I'm doing an import of committees for a project and my import gets thrown off at certain points. I can correct it in my import workflow, but am curious if it's supposed to be like this.

A committee name is always first, then followed by a thomas_id. Is this formatting correct? I'm seeing several places where it gets switched (SSJU, SSFR, SSEV, SSAS)

For example: SSJU

Constitution is 21 (correct) Criminal Justice 22 (correct) Competition Policy is 01 (correct Immigration, Citizenship is 04 (correct)

Next it goes to wikipedia id of wikipedia: United States Senate Judiciary Subcommittee on Immigration, Refugees and Border Security then directly to id 25, which is the name below it throwing off the structure. ID 25 is supposed to come after name: Federal Courts, Oversight, Agency Action, and Federal Rights. The very last subcommittee has a name 'Privacy, Technology, and the Law' with no id following it.

thomas_id: SSJU senate_committee_id: SSJU subcommittees:

JoshData commented 3 days ago

Hello. There is no defined / required order for the fields. The files are expected to be loaded using a YAML parsing library so that the field order doesn't matter to the programmer. So if possible, I would suggest finding a YAML library in whatever language you are using.