unitedstates / BillMap

Utilities and applications for the FlatGov project by Demand Progress
Other
14 stars 2 forks source link

Combine 'Related bills' with 'Similar bills' tables. Display the relevant columns for each #223

Closed aih closed 3 years ago

aih commented 3 years ago

@kapphire Let's discuss how to do this. To start, review how the data for each tab gets created and propose the columns and tabs that we will include in the combined table.

aih commented 3 years ago

As a specific example, 116hr1500 related bills has 6 bills. These are generated from the 'related bills' metadata, combined with the 'similar titles' script: image

The similar bills tab finds 92 bills, many of which are also in the related bills. We would like to combine the bills into one table where (a) bills in the 'related bills' table have priority, (b) where there are bills in both tables, we combine their data in one row.

image

aih commented 3 years ago

For example, both 116hr1500 (the 'identical' bill) and 116hr4664 are found in both tables. 116hr4664 has a lower score in the 'similar bills' table, but should be boosted, because it is also in the 'related' bills table: image

aih commented 3 years ago

When a bill is in the 'similar bills' data set, a 'reason' should be added to the list 'similarity match'. So the 'Reason' column for 116hr4664 would now read 'related, similarity match'. Bills that are in the 'related bills', but not the 'similar bills' list would not have data for Detail, Score, Sections Matched or Best match section.

I am not sure if we want to keep the Sponsor/Shared Cosponsors column. For v1 of the combined table, I suggest removing these columns so that we don't have to get the data for the 'similar bills'

aih commented 3 years ago

Each bills.Bill item has the fields Es similar bills dict and Related dict. The data we need combines these two fields. For example, for 116hr1500:

related_dict

{"116s331": {"reason": "related", "identified_by": "CRS"}, "116hr963": {"reason": "related", "cosponsors": [{"name": "Beatty, Joyce", "state": "OH", "title": "Rep", "district": "3", "bioguide_id": "B001281", "sponsored_at": "2019-04-29", "withdrawn_at": null, "original_cosponsor": false}, {"name": "Green, Al", "state": "TX", "title": "Rep", "district": "9", "bioguide_id": "G000553", "sponsored_at": "2019-02-05", "withdrawn_at": null, "original_cosponsor": true}, {"name": "Maloney, Carolyn B.", "state": "NY", "title": "Rep", "district": "12", "bioguide_id": "M000087", "sponsored_at": "2019-02-05", "withdrawn_at": null, "original_cosponsor": true}, {"name": "Porter, Katie", "state": "CA", "title": "Rep", "district": "45", "bioguide_id": "P000618", "sponsored_at": "2019-06-14", "withdrawn_at": null, "original_cosponsor": false}], "identified_by": "CRS"}, "115hr6972": {"titles": ["To require the Consumer Financial Protection Bureau to meet its statutory purpose, and for other purposes.", "Consumers First Act"], "sponsor": {"name": "Waters, Maxine", "type": "person", "state": "CA", "title": "Rep", "district": "43", "bioguide_id": "W000187"}, "cosponsors": [{"name": "Clay, Wm. Lacy", "state": "MO", "title": "Rep", "district": "1", "bioguide_id": "C001049", "sponsored_at": "2018-09-28", "withdrawn_at": null, "original_cosponsor": true}, {"name": "Cleaver, Emanuel", "state": "MO", "title": "Rep", "district": "5", "bioguide_id": "C001061", "sponsored_at": "2018-09-28", "withdrawn_at": null, "original_cosponsor": true}, {"name": "Green, Al", "state": "TX", "title": "Rep", "district": "9", "bioguide_id": "G000553", "sponsored_at": "2018-09-28", "withdrawn_at": null, "original_cosponsor": true}, {"name": "Maloney, Carolyn B.", "state": "NY", "title": "Rep", "district": "12", "bioguide_id": "M000087", "sponsored_at": "2018-09-28", "withdrawn_at": null, "original_cosponsor": true}]}, "116hr1500": {"titles": ["To require the Consumer Financial Protection Bureau to meet its statutory purpose, and for other purposes.", "Consumers First Act"], "sponsor": {"name": "Waters, Maxine", "type": "person", "state": "CA", "title": "Rep", "district": "43", "bioguide_id": "W000187"}, "cosponsors": [{"name": "Adams, Alma S.", "state": "NC", "title": "Rep", "district": "12", "bioguide_id": "A000370", "sponsored_at": "2019-03-05", "withdrawn_at": null, "original_cosponsor": true}, {"name": "Axne, Cynthia", "state": "IA", "title": "Rep", "district": "3", "bioguide_id": "A000378", "sponsored_at": "2019-03-05", "withdrawn_at": null, "original_cosponsor": true}, {"name": "Beatty, Joyce", "state": "OH", "title": "Rep", "district": "3", "bioguide_id": "B001281", "sponsored_at": "2019-03-05", "withdrawn_at": null, "original_cosponsor": true}, {"name": "Clay, Wm. Lacy", "state": "MO", "title": "Rep", "district": "1", "bioguide_id": "C001049", "sponsored_at": "2019-03-05", "withdrawn_at": null, "original_cosponsor": true}, {"name": "Cleaver, Emanuel", "state": "MO", "title": "Rep", "district": "5", "bioguide_id": "C001061", "sponsored_at": "2019-03-05", "withdrawn_at": null, "original_cosponsor": true}, {"name": "Dean, Madeleine", "state": "PA", "title": "Rep", "district": "4", "bioguide_id": "D000631", "sponsored_at": "2019-03-05", "withdrawn_at": null, "original_cosponsor": true}, {"name": "Foster, Bill", "state": "IL", "title": "Rep", "district": "11", "bioguide_id": "F000454", "sponsored_at": "2019-03-05", "withdrawn_at": null, "original_cosponsor": true}, {"name": "Gabbard, Tulsi", "state": "HI", "title": "Rep", "district": "2", "bioguide_id": "G000571", "sponsored_at": "2019-03-05", "withdrawn_at": null, "original_cosponsor": true}, {"name": "Garcia, Jesus G.", "state": "IL", "title": "Rep", "district": "4", "bioguide_id": "G000586", "sponsored_at": "2019-03-05", "withdrawn_at": null, "original_cosponsor": true}, {"name": "Garcia, Sylvia R.", "state": "TX", "title": "Rep", "district": "29", "bioguide_id": "G000587", "sponsored_at": "2019-03-05", "withdrawn_at": null, "original_cosponsor": true}, {"name": "Gonzalez, Vicente", "state": "TX", "title": "Rep", "district": "15", "bioguide_id": "G000581", "sponsored_at": "2019-03-05", "withdrawn_at": null, "original_cosponsor": true}, {"name": "Green, Al", "state": "TX", "title": "Rep", "district": "9", "bioguide_id": "G000553", "sponsored_at": "2019-03-05", "withdrawn_at": null, "original_cosponsor": true}, {"name": "Heck, Denny", "state": "WA", "title": "Rep", "district": "10", "bioguide_id": "H001064", "sponsored_at": "2019-03-05", "withdrawn_at": null, "original_cosponsor": true}, {"name": "Himes, James A.", "state": "CT", "title": "Rep", "district": "4", "bioguide_id": "H001047", "sponsored_at": "2019-03-05", "withdrawn_at": null, "original_cosponsor": true}, {"name": "Lawson, Al, Jr.", "state": "FL", "title": "Rep", "district": "5", "bioguide_id": "L000586", "sponsored_at": "2019-03-05", "withdrawn_at": null, "original_cosponsor": true}, {"name": "Lynch, Stephen F.", "state": "MA", "title": "Rep", "district": "8", "bioguide_id": "L000562", "sponsored_at": "2019-03-05", "withdrawn_at": null, "original_cosponsor": true}, {"name": "Maloney, Carolyn B.", "state": "NY", "title": "Rep", "district": "12", "bioguide_id": "M000087", "sponsored_at": "2019-03-05", "withdrawn_at": null, "original_cosponsor": true}, {"name": "Meeks, Gregory W.", "state": "NY", "title": "Rep", "district": "5", "bioguide_id": "M001137", "sponsored_at": "2019-03-05", "withdrawn_at": null, "original_cosponsor": true}, {"name": "Ocasio-Cortez, Alexandria", "state": "NY", "title": "Rep", "district": "14", "bioguide_id": "O000172", "sponsored_at": "2019-03-05", "withdrawn_at": null, "original_cosponsor": true}, {"name": "Perlmutter, Ed", "state": "CO", "title": "Rep", "district": "7", "bioguide_id": "P000593", "sponsored_at": "2019-03-05", "withdrawn_at": null, "original_cosponsor": true}, {"name": "Porter, Katie", "state": "CA", "title": "Rep", "district": "45", "bioguide_id": "P000618", "sponsored_at": "2019-03-05", "withdrawn_at": null, "original_cosponsor": true}, {"name": "Pressley, Ayanna", "state": "MA", "title": "Rep", "district": "7", "bioguide_id": "P000617", "sponsored_at": "2019-03-05", "withdrawn_at": null, "original_cosponsor": true}, {"name": "San Nicolas, Michael F. Q.", "state": "GU", "title": "Rep", "district": "0", "bioguide_id": "S001204", "sponsored_at": "2019-03-05", "withdrawn_at": null, "original_cosponsor": true}, {"name": "Scott, David", "state": "GA", "title": "Rep", "district": "13", "bioguide_id": "S001157", "sponsored_at": "2019-03-05", "withdrawn_at": null, "original_cosponsor": true}, {"name": "Sherman, Brad", "state": "CA", "title": "Rep", "district": "30", "bioguide_id": "S000344", "sponsored_at": "2019-03-05", "withdrawn_at": null, "original_cosponsor": true}, {"name": "Tlaib, Rashida", "state": "MI", "title": "Rep", "district": "13", "bioguide_id": "T000481", "sponsored_at": "2019-03-05", "withdrawn_at": null, "original_cosponsor": true}, {"name": "Vargas, Juan", "state": "CA", "title": "Rep", "district": "51", "bioguide_id": "V000130", "sponsored_at": "2019-03-05", "withdrawn_at": null, "original_cosponsor": true}, {"name": "Velazquez, Nydia M.", "state": "NY", "title": "Rep", "district": "7", "bioguide_id": "V000081", "sponsored_at": "2019-03-05", "withdrawn_at": null, "original_cosponsor": true}, {"name": "Wexton, Jennifer", "state": "VA", "title": "Rep", "district": "10", "bioguide_id": "W000825", "sponsored_at": "2019-03-05", "withdrawn_at": null, "original_cosponsor": true}]}, "116hr4664": {"reason": "related", "identified_by": "CRS"}, "116hres389": {"reason": "related", "identified_by": "House"}}

es_similar_bills_dict

{"116s149": [{"date": null, "score": 29.02488, "title": "116 S149 ES: Stop Senior Scams Act", "session": "2", "congress": "", "legisnum": "S. 149", "billnumber": "116s149", "section_num": "2. ", "sectionIndex": "2", "section_header": "Senior Scams Prevention Advisory Group", "bill_number_version": "116s149es", "target_section_header": "Consumer Financial Protection Bureau", "target_section_number": "3."}, {"date": "2019-01-16", "score": 27.345537, "title": "116 S149 IS: Stop Senior Scams Act", "session": "1", "congress": "", "legisnum": "S. 149", "billnumber": "116s149", "section_num": "2. ", "sectionIndex": "15", "section_header": "Senior Scams Prevention Advisory Council", "bill_number_version": "116s149is", "target_section_header": "Report on senior consumers", "target_section_number": "16."}], "116s331": [{"date": "2019-02-05", "score": 32.744556, "title": "116 S331 IS: Home Loan Quality Transparency Act of 2019", "session": "1", "congress": "", "legisnum": "S. 331", "billnumber": "116s331", "section_num": "2. ", "sectionIndex": "8", "section_header": "Exemption from certain disclosure requirements", "bill_number_version": "116s331is", "target_section_header": "Modification of the exemption from certain disclosure requirements", "target_section_number": "9."}], "116s702": [{"date": "2019-03-07", "score": 27.848305, "title": "116 S702 IS: Senior and Disability Home Modification Assistance Initiative Act", "session": "1", "congress": "", "legisnum": "S. 702", "billnumber": "116s702", "section_num": "2. ", "sectionIndex": "15", "section_header": "Senior home modification assistance initiative", "bill_number_version": "116s702is", "target_section_header": "Report on senior consumers", "target_section_number": "16."}], "116s720": [{"date": "2019-03-07", "score": 58.23585, "title": "116 S720 IS: CFPB Student Loan Integrity and Transparency Act of 2019", "session": "1", "congress": "", "legisnum": "S. 720", "billnumber": "116s720", "section_num": "5. ", "section_header": "Duty to provide adequate staffing; Memoranda of understanding", "bill_number_version": "116s720is"}, {"date": "2019-03-07", "score": 47.87745, "title": "116 S720 IS: CFPB Student Loan Integrity and Transparency Act of 2019", "session": "1", "congress": "", "legisnum": "S. 720", "billnumber": "116s720", "section_num": "2. ", "sectionIndex": "5", "section_header": "Findings", "bill_number_version": "116s720is", "target_section_header": "Offices of the Consumer Financial Protection Bureau", "target_section_number": "6."}], "116s905": [{"date": "2019-03-27", "score": 26.494972, "title": "116 S905 IS: Senior Legal Hotline Act of 2019", "session": "1", "congress": "", "legisnum": "S. 905", "billnumber": "116s905", "section_num": "2. ", "sectionIndex": "15", "section_header": "Statewide senior legal hotlines", "bill_number_version": "116s905is", "target_section_header": "Report on senior consumers", "target_section_number": "16."}], "116hr281": [{"date": "2019-01-08", "score": 40.42632, "title": "116 HR 281 IH: Ensuring Diverse Leadership Act of 2019", "session": "1", "congress": "", "legisnum": "H. R. 281", "billnumber": "116hr281", "section_num": "4. ", "sectionIndex": "3", "section_header": "Technical adjustments", "bill_number_version": "116hr281ih", "target_section_header": "Conforming amendments", "target_section_number": "4."}], "116hr315": [{"date": "2019-01-08", "score": 29.450647, "title": "116 HR 315 IH: Community Reclamation Partnerships Act", "session": "1", "congress": "", "legisnum": "H. R. 315", "billnumber": "116hr315", "section_num": "3. ", "sectionIndex": "4", "section_header": "State memoranda of understanding for certain remediation", "bill_number_version": "116hr315ih", "target_section_header": "Executive and administration powers", "target_section_number": "5."}], "116hr442": [{"date": "2019-01-10", "score": 32.735703, "title": "116 HR 442 IH: Financial Protection for Our Military Families Act", "session": "1", "congress": "", "legisnum": "H. R. 442", "billnumber": "116hr442", "section_num": "2. ", "sectionIndex": "3", "section_header": "Bureau examination authority with respect to Military Lending Act compliance", "bill_number_version": "116hr442ih", "target_section_header": "Conforming amendments", "target_section_number": "4."}], "116hr963": [{"date": "2019-02-05", "score": 32.744556, "title": "116 HR 963 IH: Home Loan Quality Transparency Act of 2019", "session": "1", "congress": "", "legisnum": "H. R. 963", "billnumber": "116hr963", "section_num": "2. ", "sectionIndex": "8", "section_header": "Exemption from certain disclosure requirements", "bill_number_version": "116hr963ih", "target_section_header": "Modification of the exemption from certain disclosure requirements", "target_section_number": "9."}], "116s1066": [{"date": "2019-04-08", "score": 33.57083, "title": "116 S1066 IS: An Act Targeting Resources to Communities in Need", "session": "1", "congress": "", "legisnum": "S. 1066", "billnumber": "116s1066", "section_num": "2. ", "sectionIndex": "3", "section_header": "Definitions", "bill_number_version": "116s1066is", "target_section_header": "Conforming amendments", "target_section_number": "4."}], "116s1354": [{"date": "2019-05-07", "score": 51.360336, "title": "116 S1354 IS: Student Loan Borrower Bill of Rights", "session": "1", "congress": "", "legisnum": "S. 1354", "billnumber": "116s1354", "section_num": "8. ", "sectionIndex": "5", "section_header": "Education loan ombudsman", "bill_number_version": "116s1354is", "target_section_header": "Offices of the Consumer Financial Protection Bureau", "target_section_number": "6."}], "116s1389": [{"date": "2019-05-09", "score": 34.164078, "title": "116 S1389 IS: Loan Shark Prevention Act", "session": "1", "congress": "", "legisnum": "S. 1389", "billnumber": "116s1389", "section_num": "2. ", "sectionIndex": "13", "section_header": "Interest rate reduction", "bill_number_version": "116s1389is", "target_section_header": "Debt collection", "target_section_number": "14."}], "116s1478": [{"date": "2019-05-15", "score": 36.390682, "title": "116 S1478 IS: To repeal the Office of Financial Research, and for other purposes.", "session": "1", "congress": "", "legisnum": "S. 1478", "billnumber": "116s1478", "section_num": "1. ", "section_header": "Repeal of the Office of Financial Research", "bill_number_version": "116s1478is"}], "116s1753": [{"date": "2019-06-05", "score": 35.958797, "title": "116 S1753 IS: Take Care Act", "session": "1", "congress": "", "legisnum": "S. 1753", "billnumber": "116s1753", "section_num": "6. ", "sectionIndex": "3", "section_header": "Repeal and amendment of certain other provisions of law", "bill_number_version": "116s1753is", "target_section_header": "Conforming amendments", "target_section_number": "4."}], "116s1803": [{"date": "2019-06-12", "score": 29.04966, "title": "116 S1803 IS: Educational Opportunity and Success Act of 2019", "session": "1", "congress": "", "legisnum": "S. 1803", "billnumber": "116s1803", "section_num": "2. ", "sectionIndex": "14", "section_header": "Federal TRIO programs amendments", "bill_number_version": "116s1803is", "target_section_header": "Credit scores included in free annual disclosures", "target_section_number": "15."}], "116s2201": [{"date": "2019-07-22", "score": 32.996624, "title": "116 S2201 IS: Clarifying Law Around Insurance of Marijuana Act", "session": "1", "congress": "", "legisnum": "S. 2201", "billnumber": "116s2201", "section_num": "2. ", "section_header": "Safe harbor for insurers and the business of insurance", "bill_number_version": "116s2201is"}], "116s2387": [{"date": "2019-08-08", "score": 28.70027, "title": "116 S2387 IS: We Protect American Investment in Drugs Act", "session": "1", "congress": "", "legisnum": "S. 2387", "billnumber": "116s2387", "section_num": "5. ", "sectionIndex": "6", "section_header": "Drug Affordability and Access Committee", "bill_number_version": "116s2387is", "target_section_header": "Consumer Advisory Board reforms", "target_section_number": "7."}], "116s2664": [{"date": "2019-10-22", "score": 27.673813, "title": "116 S2664 IS: Cyber Shield Act of 2019", "session": "1", "congress": "", "legisnum": "S. 2664", "billnumber": "116s2664", "section_num": "3. ", "sectionIndex": "6", "section_header": "Cyber Shield Advisory Committee", "bill_number_version": "116s2664is", "target_section_header": "Consumer Advisory Board reforms", "target_section_number": "7."}], "116s2685": [{"date": "2019-10-23", "score": 32.220856, "title": "116 S2685 IS: Consumer Credit Control Act of 2019", "session": "1", "congress": "", "legisnum": "S. 2685", "billnumber": "116s2685", "section_num": "2. ", "section_header": "Permissible purposes of reports", "bill_number_version": "116s2685is"}], "116s2833": [{"date": "2019-11-12", "score": 38.114494, "title": "116 S2833 IS: Veterans and Consumers Fair Credit Act", "session": "1", "congress": "", "legisnum": "S. 2833", "billnumber": "116s2833", "section_num": "2. ", "section_header": "Limitations on consumer credit and maximum rates of interest", "bill_number_version": "116s2833is"}], "116s3036": [{"date": "2019-12-12", "score": 27.943996, "title": "116 S3036 IS: Unsolicited Loan Act of 2019", "session": "1", "congress": "", "legisnum": "S. 3036", "billnumber": "116s3036", "section_num": "2. ", "sectionIndex": "14", "section_header": "Unsolicited loan checks prohibited", "bill_number_version": "116s3036is", "target_section_header": "Credit scores included in free annual disclosures", "target_section_number": "15."}], "116s3160": [{"date": "2020-01-08", "score": 26.509102, "title": "116 S3160 IS: Affordable Safe Drinking Water Act of 2020", "session": "2", "congress": "", "legisnum": "S. 3160", "billnumber": "116s3160", "section_num": "2. ", "sectionIndex": "16", "section_header": "State revolving funds", "bill_number_version": "116s3160is", "target_section_header": "Report on payday loan and car-title loan investigations and enforcement actions", "target_section_number": "17."}], "116s3166": [{"date": "2020-01-08", "score": 42.89704, "title": "116 S3166 IS: Prescription Drug Affordability and Access Act", "session": "2", "congress": "", "legisnum": "S. 3166", "billnumber": "116s3166", "section_num": "2. ", "sectionIndex": "6", "section_header": "Establishment of the Bureau of Prescription Drug Affordability and Access", "bill_number_version": "116s3166is", "target_section_header": "Consumer Advisory Board reforms", "target_section_number": "7."}], "116s3204": [{"date": "2020-01-16", "score": 31.018406, "title": "116 S3204 IS: FEMA Climate Change Preparedness Act", "session": "2", "congress": "", "legisnum": "S. 3204", "billnumber": "116s3204", "section_num": "7. ", "sectionIndex": "6", "section_header": "National Advisory Council Climate Change Subcommittee", "bill_number_version": "116s3204is", "target_section_header": "Consumer Advisory Board reforms", "target_section_number": "7."}], "116s3368": [{"date": "2020-03-02", "score": 40.90458, "title": "116 S3368 IS: CFPB Pay Fairness Act of 2020", "session": "2", "congress": "", "legisnum": "S. 3368", "billnumber": "116s3368", "section_num": "2. ", "section_header": "Rate of pay for employees of the Consumer Financial Protection Bureau", "bill_number_version": "116s3368is"}], "116s3508": [{"date": "2020-03-17", "score": 43.99559, "title": "116 S3508 IS: Disaster Protection for Workers\u2019 Credit Act of 2020", "session": "2", "congress": "", "legisnum": "S. 3508", "billnumber": "116s3508", "section_num": "3. ", "sectionIndex": "14", "section_header": "Reporting of information during major disasters", "bill_number_version": "116s3508is", "target_section_header": "Credit scores included in free annual disclosures", "target_section_number": "15."}], "116s3560": [{"date": "2020-03-22", "score": 37.810314, "title": "116 S3560 IS: Small Business and Consumer Emergency Credit Act", "session": "2", "congress": "", "legisnum": "S. 3560", "billnumber": "116s3560", "section_num": "2. ", "sectionIndex": "13", "section_header": "Limitations on consumer credit and maximum rates of interest", "bill_number_version": "116s3560is", "target_section_header": "Debt collection", "target_section_number": "14."}], "116s3721": [{"date": "2020-05-13", "score": 27.393753, "title": "116 S3721 IS: COVID\u201319 Racial and Ethnic Disparities Task Force Act of 2020", "session": "2", "congress": "", "legisnum": "S. 3721", "billnumber": "116s3721", "section_num": "2. ", "sectionIndex": "6", "section_header": "COVID\u201319 Racial and Ethnic Disparities Task Force", "bill_number_version": "116s3721is", "target_section_header": "Consumer Advisory Board reforms", "target_section_number": "7."}], "116s3913": [{"date": "2020-06-08", "score": 38.083904, "title": "116 S3913 IS: End Double Taxation of Successful Consumer Claims Act", "session": "2", "congress": "", "legisnum": "S. 3913", "billnumber": "116s3913", "section_num": "2. ", "sectionIndex": "3", "section_header": "Above-the-line deduction for attorney fees and costs in connection with consumer claim awards", "bill_number_version": "116s3913is", "target_section_header": "Conforming amendments", "target_section_number": "4."}], "116s3990": [{"date": "2020-06-17", "score": 50.5421, "title": "116 S3990 IS: Financial Product Safety Commission Act of 2020", "session": "2", "congress": "", "legisnum": "S. 3990", "billnumber": "116s3990", "section_num": "3. ", "sectionIndex": "2", "section_header": "Deeming of name", "bill_number_version": "116s3990is", "target_section_header": "Consumer Financial Protection Bureau", "target_section_number": "3."}, {"date": "2020-06-17", "score": 51.10383, "title": "116 S3990 IS: Financial Product Safety Commission Act of 2020", "session": "2", "congress": "", "legisnum": "S. 3990", "billnumber": "116s3990", "section_num": "4. ", "sectionIndex": "3", "section_header": "Conforming amendments", "bill_number_version": "116s3990is", "target_section_header": "Conforming amendments", "target_section_number": "4."}], "116s4037": [{"date": "2020-06-23", "score": 36.207226, "title": "116 S4037 IS: Patient Credit Protection Act of 2020", "session": "2", "congress": "", "legisnum": "S. 4037", "billnumber": "116s4037", "section_num": "2. ", "sectionIndex": "13", "section_header": "Credit protection for patients", "bill_number_version": "116s4037is", "target_section_header": "Debt collection", "target_section_number": "14."}], "116s4325": [{"date": "2020-07-27", "score": 34.337166, "title": "116 S4325 IS: Business of Insurance Regulatory Reform Act of 2020", "session": "2", "congress": "", "legisnum": "S. 4325", "billnumber": "116s4325", "section_num": "2. ", "section_header": "Clarification to the authority of the Bureau with respect to persons regulated by a State insurance regulator", "bill_number_version": "116s4325is"}], "116s4393": [{"date": "2020-07-30", "score": 27.753992, "title": "112 S4393 IS: Toxic Exposure in the American Military Act of 2020", "session": "2", "congress": "", "legisnum": "S. 4393", "billnumber": "116s4393", "section_num": "547. ", "sectionIndex": "6", "section_header": "Toxic Exposure Review Commission", "bill_number_version": "116s4393is", "target_section_header": "Consumer Advisory Board reforms", "target_section_number": "7."}], "116s4464": [{"date": "2020-08-06", "score": 32.61809, "title": "116 S4464 IS: Federal Reserve Racial and Economic Equity Act", "session": "2", "congress": "", "legisnum": "S. 4464", "billnumber": "116s4464", "section_num": "2C. ", "sectionIndex": "1", "section_header": "Duty to minimize and eliminate racial disparities", "bill_number_version": "116s4464is", "target_section_header": "Findings; sense of Congress", "target_section_number": "2."}], "116s4614": [{"date": "2020-09-17", "score": 27.19679, "title": "116 S4614 IS: Postal Banking Act", "session": "2", "congress": "", "legisnum": "S. 4614", "billnumber": "116s4614", "section_num": "2. ", "sectionIndex": "16", "section_header": "Authority for the Postal Service to offer certain financial services", "bill_number_version": "116s4614is", "target_section_header": "Report on payday loan and car-title loan investigations and enforcement actions", "target_section_number": "17."}], "116s4692": [{"date": "2020-09-24", "score": 39.231186, "title": "116 S4692 IS: Give Useful Information to Define Effective Compliance Act", "session": "2", "congress": "", "legisnum": "S. 4692", "billnumber": "116s4692", "section_num": "2. ", "section_header": "Procedures for Bureau guidance", "bill_number_version": "116s4692is"}], "116s4697": [{"date": "2020-09-24", "score": 42.335384, "title": "116 S4697 IS: Strengthening Consumer Protections and Medical Debt Transparency Act", "session": "2", "congress": "", "legisnum": "S. 4697", "billnumber": "116s4697", "section_num": "2. ", "sectionIndex": "13", "section_header": "Medical debt collections", "bill_number_version": "116s4697is", "target_section_header": "Debt collection", "target_section_number": "14."}], "116s5041": [{"date": "2020-12-17", "score": 28.449146, "title": "116 S5041 IS: Addressing Climate Financial Risk Act of 2020", "session": "2", "congress": "", "legisnum": "S. 5041", "billnumber": "116s5041", "section_num": "2. ", "sectionIndex": "6", "section_header": "Advisory Committee on Climate Risk", "bill_number_version": "116s5041is", "target_section_header": "Consumer Advisory Board reforms", "target_section_number": "7."}], "116hr1285": [{"date": "2019-02-14", "score": 34.93625, "title": "116 HR 1285 IH: Improving Access to Traditional Banking Act of 2019", "session": "1", "congress": "", "legisnum": "H. R. 1285", "billnumber": "116hr1285", "section_num": "2. ", "section_header": "Office for Under-Banked, Un-Banked, and Underserved Consumers", "bill_number_version": "116hr1285ih"}], "116hr1286": [{"date": "2019-02-14", "score": 35.976067, "title": "116 HR 1286 IH: Federal Employee Credit Score Protection Act of 2019", "session": "1", "congress": "", "legisnum": "H. R. 1286", "billnumber": "116hr1286", "section_num": "2. ", "sectionIndex": "14", "section_header": "Prohibition on lowering the credit scores of covered individuals", "bill_number_version": "116hr1286ih", "target_section_header": "Credit scores included in free annual disclosures", "target_section_number": "15."}], "116hr1500": [{"date": "2019-05-23", "score": 85.944, "title": "116 HR 1500 : Consumers First Act", "session": "1", "congress": "", "legisnum": "H. R. 1500", "billnumber": "116hr1500", "section_num": "1. ", "sectionIndex": "0", "section_header": "Short title; table of contents", "bill_number_version": "116hr1500rfs", "target_section_header": "Short title; table of contents", "target_section_number": "1."}, {"date": "2019-03-05", "score": 102.07348, "title": "116 HR 1500 RH: Consumers First Act", "session": "1", "congress": "", "legisnum": "H. R. 1500", "billnumber": "116hr1500", "section_num": "2. ", "sectionIndex": "1", "section_header": "Findings; sense of Congress", "bill_number_version": "116hr1500rh", "target_section_header": "Findings; sense of Congress", "target_section_number": "2."}, {"date": "2019-03-05", "score": 63.57423, "title": "116 HR 1500 RH: Consumers First Act", "session": "1", "congress": "", "legisnum": "H. R. 1500", "billnumber": "116hr1500", "section_num": "3. ", "sectionIndex": "2", "section_header": "Consumer Financial Protection Bureau", "bill_number_version": "116hr1500rh", "target_section_header": "Consumer Financial Protection Bureau", "target_section_number": "3."}, {"date": "2019-03-05", "score": 79.75533, "title": "116 HR 1500 RH: Consumers First Act", "session": "1", "congress": "", "legisnum": "H. R. 1500", "billnumber": "116hr1500", "section_num": "4. ", "sectionIndex": "3", "section_header": "Conforming amendments", "bill_number_version": "116hr1500rh", "target_section_header": "Conforming amendments", "target_section_number": "4."}, {"date": null, "score": 90.513275, "title": "116 HR 1500 EH: Consumers First Act", "session": "1", "congress": "", "legisnum": "H. R. 1500", "billnumber": "116hr1500", "section_num": "5. ", "sectionIndex": "4", "section_header": "Executive and administration powers", "bill_number_version": "116hr1500eh", "target_section_header": "Executive and administration powers", "target_section_number": "5."}, {"date": null, "score": 95.42994, "title": "116 HR 1500 EH: Consumers First Act", "session": "1", "congress": "", "legisnum": "H. R. 1500", "billnumber": "116hr1500", "section_num": "6. ", "sectionIndex": "5", "section_header": "Offices of the Consumer Financial Protection Bureau", "bill_number_version": "116hr1500eh", "target_section_header": "Offices of the Consumer Financial Protection Bureau", "target_section_number": "6."}, {"date": "2019-03-05", "score": 105.518196, "title": "116 HR 1500 RH: Consumers First Act", "session": "1", "congress": "", "legisnum": "H. R. 1500", "billnumber": "116hr1500", "section_num": "7. ", "sectionIndex": "6", "section_header": "Consumer Advisory Board reforms", "bill_number_version": "116hr1500rh", "target_section_header": "Consumer Advisory Board reforms", "target_section_number": "7."}, {"date": null, "score": 65.383705, "title": "116 HR 1500 EH: Consumers First Act", "session": "1", "congress": "", "legisnum": "H. R. 1500", "billnumber": "116hr1500", "section_num": "14. ", "sectionIndex": "13", "section_header": "Debt collection", "bill_number_version": "116hr1500eh", "target_section_header": "Debt collection", "target_section_number": "14."}], "116hr1555": [{"date": "2019-03-06", "score": 30.620169, "title": "116 HR 1555 IH: Transparency for Cable Consumers Act", "session": "1", "congress": "", "legisnum": "H. R. 1555", "billnumber": "116hr1555", "section_num": "2. ", "sectionIndex": "16", "section_header": "FCC reporting requirement for cable operators and internet service providers who are subject to State fines", "bill_number_version": "116hr1555ih", "target_section_header": "Report on payday loan and car-title loan investigations and enforcement actions", "target_section_number": "17."}], "116hr1583": [{"date": "2019-03-07", "score": 27.848305, "title": "116 HR 1583 IH: Senior and Disability Home Modification Assistance Initiative Act", "session": "1", "congress": "", "legisnum": "H. R. 1583", "billnumber": "116hr1583", "section_num": "2. ", "sectionIndex": "15", "section_header": "Senior home modification assistance initiative", "bill_number_version": "116hr1583ih", "target_section_header": "Report on senior consumers", "target_section_number": "16."}], "116hr1756": [{"date": "2019-03-14", "score": 34.628517, "title": "116 HR 1756 IH: Preventing Credit Score Discrimination in Auto Insurance Act", "session": "1", "congress": "", "legisnum": "H. R. 1756", "billnumber": "116hr1756", "section_num": "2. ", "sectionIndex": "14", "section_header": "Use of consumer reports and consumer information for auto insurance purposes prohibited", "bill_number_version": "116hr1756ih", "target_section_header": "Credit scores included in free annual disclosures", "target_section_number": "15."}], "116hr2055": [{"date": "2019-04-03", "score": 31.154041, "title": "116 HR 2055 IH: An Act Targeting Resources to Communities in Need", "session": "1", "congress": "", "legisnum": "H. R. 2055", "billnumber": "116hr2055", "section_num": "2. ", "sectionIndex": "3", "section_header": "Definitions", "bill_number_version": "116hr2055ih", "target_section_header": "Conforming amendments", "target_section_number": "4."}], "116hr2743": [{"date": "2019-05-15", "score": 36.390682, "title": "116 HR 2743 IH: To repeal the Office of Financial Research, and for other purposes.", "session": "1", "congress": "", "legisnum": "H. R. 2743", "billnumber": "116hr2743", "section_num": "1. ", "section_header": "Repeal of the Office of Financial Research", "bill_number_version": "116hr2743ih"}], "116hr2753": [{"date": "2019-05-15", "score": 42.16233, "title": "116 HR 2753 IH: Free Credit Score Act of 2019", "session": "1", "congress": "", "legisnum": "H. R. 2753", "billnumber": "116hr2753", "section_num": "2. ", "sectionIndex": "14", "section_header": "Inclusion of credit score with free annual report", "bill_number_version": "116hr2753ih", "target_section_header": "Credit scores included in free annual disclosures", "target_section_number": "15."}], "116hr2824": [{"date": "2019-05-17", "score": 90.276276, "title": "116 HR 2824 IH: Fair Access to Credit Scores Act of 2019", "session": "1", "congress": "", "legisnum": "H. R. 2824", "billnumber": "116hr2824", "section_num": "2. ", "sectionIndex": "14", "section_header": "Credit scores included in free annual disclosures", "bill_number_version": "116hr2824ih", "target_section_header": "Credit scores included in free annual disclosures", "target_section_number": "15."}], "116hr2833": [{"date": "2019-05-17", "score": 58.23585, "title": "116 HR 2833 IH: CFPB Student Loan Integrity and Transparency Act of 2019", "session": "1", "congress": "", "legisnum": "H. R. 2833", "billnumber": "116hr2833", "section_num": "5. ", "section_header": "Duty to provide adequate staffing; Memoranda of understanding", "bill_number_version": "116hr2833ih"}, {"date": "2019-05-17", "score": 50.02208, "title": "116 HR 2833 IH: CFPB Student Loan Integrity and Transparency Act of 2019", "session": "1", "congress": "", "legisnum": "H. R. 2833", "billnumber": "116hr2833", "section_num": "2. ", "sectionIndex": "5", "section_header": "Findings", "bill_number_version": "116hr2833ih", "target_section_header": "Offices of the Consumer Financial Protection Bureau", "target_section_number": "6."}], "116hr2930": [{"date": "2019-05-22", "score": 34.164078, "title": "116 HR 2930 IH: Loan Shark Prevention Act", "session": "1", "congress": "", "legisnum": "H. R. 2930", "billnumber": "116hr2930", "section_num": "2. ", "sectionIndex": "13", "section_header": "Interest rate reduction", "bill_number_version": "116hr2930ih", "target_section_header": "Debt collection", "target_section_number": "14."}], "116hr3111": [{"date": "2019-06-05", "score": 30.293394, "title": "116 HR 3111 IH: National Flood Insurance Program Administrative Reform Act of 2019", "session": "1", "congress": "", "legisnum": "H. R. 3111", "billnumber": "116hr3111", "section_num": "12. ", "sectionIndex": "6", "section_header": "Federal Flood Insurance Advisory Committee", "bill_number_version": "116hr3111ih", "target_section_header": "Consumer Advisory Board reforms", "target_section_number": "7."}], "116hr3420": [{"date": "2019-06-21", "score": 27.48355, "title": "116 HR 3420 IH: Federal Law Enforcement and Public Protection Act", "session": "1", "congress": "", "legisnum": "H. R. 3420", "billnumber": "116hr3420", "section_num": "3064. ", "sectionIndex": "1", "section_header": "Safety and security of service weapons used by Federal law enforcement officers", "bill_number_version": "116hr3420ih", "target_section_header": "Findings; sense of Congress", "target_section_number": "2."}], "116hr3547": [{"date": "2019-06-27", "score": 66.66714, "title": "116 HR 3547 IH: Students and Young Consumers Empowerment Act", "session": "1", "congress": "", "legisnum": "H. R. 3547", "billnumber": "116hr3547", "section_num": "2. ", "section_header": "Assistant Director and Student Loan Borrower Advocate", "bill_number_version": "116hr3547ih"}], "116hr3614": [{"date": "2019-07-02", "score": 34.6414, "title": "116 HR 3614 RH: Restricting Credit Checks for Employment Decisions Act", "session": "1", "congress": "", "legisnum": "H. R. 3614", "billnumber": "116hr3614", "section_num": "3. ", "sectionIndex": "14", "section_header": "Prohibition on the use of credit information for most employment decisions", "bill_number_version": "116hr3614rh", "target_section_header": "Credit scores included in free annual disclosures", "target_section_number": "15."}], "116hr3618": [{"date": "2019-07-05", "score": 65.74548, "title": "116 HR 3618 IH: Free Credit Scores for Consumers Act of 2019", "session": "1", "congress": "", "legisnum": "H. R. 3618", "billnumber": "116hr3618", "section_num": "3. ", "sectionIndex": "14", "section_header": "Credit score and educational credit score definitions", "bill_number_version": "116hr3618ih", "target_section_header": "Credit scores included in free annual disclosures", "target_section_number": "15."}], "116hr3621": [{"date": null, "score": 65.67475, "title": "116 HR 3621 : Comprehensive CREDIT Act of 2020", "session": "2", "congress": "", "legisnum": "H. R. 3621", "billnumber": "116hr3621", "section_num": "201. ", "sectionIndex": "14", "section_header": "Definitions", "bill_number_version": "116hr3621rds", "target_section_header": "Credit scores included in free annual disclosures", "target_section_number": "15."}], "116hr3642": [{"date": "2019-07-09", "score": 50.602474, "title": "116 HR 3642 RH: Improving Credit Reporting for All Consumers Act", "session": "1", "congress": "", "legisnum": "H. R. 3642", "billnumber": "116hr3642", "section_num": "101. ", "sectionIndex": "14", "section_header": "Dispute procedures and disclosures relating to reinvestigations", "bill_number_version": "116hr3642rh", "target_section_header": "Credit scores included in free annual disclosures", "target_section_number": "15."}], "116hr3800": [{"date": "2019-07-17", "score": 29.04966, "title": "116 HR 3800 IH: Educational Opportunity and Success Act of 2019", "session": "1", "congress": "", "legisnum": "H. R. 3800", "billnumber": "116hr3800", "section_num": "2. ", "sectionIndex": "14", "section_header": "Federal TRIO programs amendments", "bill_number_version": "116hr3800ih", "target_section_header": "Credit scores included in free annual disclosures", "target_section_number": "15."}], "116hr3862": [{"date": "2019-07-19", "score": 32.17967, "title": "116 HR 3862 IH: Equal Employment for All Act of 2019", "session": "1", "congress": "", "legisnum": "H. R. 3862", "billnumber": "116hr3862", "section_num": "2. ", "sectionIndex": "14", "section_header": "Use of credit checks prohibited for employment purposes", "bill_number_version": "116hr3862ih", "target_section_header": "Credit scores included in free annual disclosures", "target_section_number": "15."}], "116hr3987": [{"date": "2019-07-25", "score": 27.879786, "title": "116 HR 3987 IH: Alleviating Stress Test Burdens to Help Investors Act", "session": "1", "congress": "", "legisnum": "H. R. 3987", "billnumber": "116hr3987", "section_num": "2. ", "sectionIndex": "1", "section_header": "Stress test relief for nonbanks", "bill_number_version": "116hr3987ih", "target_section_header": "Findings; sense of Congress", "target_section_number": "2."}], "116hr4067": [{"date": "2019-07-25", "score": 41.128223, "title": "116 HR 4067 IH: Financial Inclusion in Banking Act of 2019", "session": "1", "congress": "", "legisnum": "H. R. 4067", "billnumber": "116hr4067", "section_num": "2. ", "section_header": "Office of Community Affairs duties with respect to under-banked, un-banked, and underserved consumers", "bill_number_version": "116hr4067ih"}], "116hr4074": [{"date": "2019-07-25", "score": 32.996624, "title": "116 HR 4074 IH: Clarifying Law Around Insurance of Marijuana Act", "session": "1", "congress": "", "legisnum": "H. R. 4074", "billnumber": "116hr4074", "section_num": "2. ", "section_header": "Safe harbor for insurers and the business of insurance", "bill_number_version": "116hr4074ih"}], "116hr4545": [{"date": "2019-09-27", "score": 30.93726, "title": "116 HR 4545 IH: Private Loan Disability Discharge Act of 2019", "session": "1", "congress": "", "legisnum": "H. R. 4545", "billnumber": "116hr4545", "section_num": "2. ", "sectionIndex": "5", "section_header": "Protections for obligors and cosigners in cases of death or total and permanent disability", "bill_number_version": "116hr4545ih", "target_section_header": "Offices of the Consumer Financial Protection Bureau", "target_section_number": "6."}], "116hr4596": [{"date": "2019-10-01", "score": 38.560787, "title": "116 HR 4596 IH: Student Loan Advocacy Act", "session": "1", "congress": "", "legisnum": "H. R. 4596", "billnumber": "116hr4596", "section_num": "2. ", "section_header": "Performance-based organization for delivery of Federal student financial assistance", "bill_number_version": "116hr4596ih"}], "116hr4627": [{"date": "2019-10-08", "score": 32.157005, "title": "116 HR 4627 IH: Student Borrower Advocate Act", "session": "1", "congress": "", "legisnum": "H. R. 4627", "billnumber": "116hr4627", "section_num": "2. ", "sectionIndex": "5", "section_header": "Performance-based organization for delivery of Federal student financial assistance", "bill_number_version": "116hr4627ih", "target_section_header": "Offices of the Consumer Financial Protection Bureau", "target_section_number": "6."}], "116hr4664": [{"date": "2019-10-11", "score": 65.19812, "title": "116 HR 4664 IH: Monitoring and Curbing Abusive Debt Collection Practices Act", "session": "1", "congress": "", "legisnum": "H. R. 4664", "billnumber": "116hr4664", "section_num": "2. ", "section_header": "Debt collection", "bill_number_version": "116hr4664ih"}], "116hr4770": [{"date": "2019-10-21", "score": 27.687738, "title": "116 HR 4770 IH: CFTC Advisory Committee Improvement Act", "session": "1", "congress": "", "legisnum": "H. R. 4770", "billnumber": "116hr4770", "section_num": "2. ", "sectionIndex": "6", "section_header": "Advisory committee changes", "bill_number_version": "116hr4770ih", "target_section_header": "Consumer Advisory Board reforms", "target_section_number": "7."}], "116hr4792": [{"date": "2019-10-22", "score": 27.673813, "title": "116 HR 4792 IH: Cyber Shield Act of 2019", "session": "1", "congress": "", "legisnum": "H. R. 4792", "billnumber": "116hr4792", "section_num": "3. ", "sectionIndex": "6", "section_header": "Cyber Shield Advisory Committee", "bill_number_version": "116hr4792ih", "target_section_header": "Consumer Advisory Board reforms", "target_section_number": "7."}], "116hr4823": [{"date": "2019-10-23", "score": 31.732279, "title": "116 HR 4823 IH: FEMA Climate Change Preparedness Act", "session": "1", "congress": "", "legisnum": "H. R. 4823", "billnumber": "116hr4823", "section_num": "6. ", "sectionIndex": "6", "section_header": "National Advisory Council Climate Change Subcommittee", "bill_number_version": "116hr4823ih", "target_section_header": "Consumer Advisory Board reforms", "target_section_number": "7."}], "116hr4966": [{"date": "2019-10-31", "score": 26.791988, "title": "116 HR 4966 IH: Greater Supervision In Banking Act of 2019", "session": "1", "congress": "", "legisnum": "H. R. 4966", "billnumber": "116hr4966", "section_num": "2. ", "sectionIndex": "15", "section_header": "Annual testimony of GSIB CEOs", "bill_number_version": "116hr4966ih", "target_section_header": "Report on senior consumers", "target_section_number": "16."}], "116hr4978": [{"date": "2019-11-05", "score": 34.02658, "title": "116 HR 4978 IH: Online Privacy Act of 2019", "session": "1", "congress": "", "legisnum": "H. R. 4978", "billnumber": "116hr4978", "section_num": "306. ", "sectionIndex": "6", "section_header": "User advisory board", "bill_number_version": "116hr4978ih", "target_section_header": "Consumer Advisory Board reforms", "target_section_number": "7."}], "116hr5021": [{"date": "2019-11-08", "score": 60.040245, "title": "116 HR 5021 IH: Ending Debt Collection Harassment Act of 2019", "session": "1", "congress": "", "legisnum": "H. R. 5021", "billnumber": "116hr5021", "section_num": "2. ", "section_header": "Consumer protections relating to debt collection practices", "bill_number_version": "116hr5021ih"}], "116hr5050": [{"date": "2019-11-12", "score": 39.070286, "title": "116 HR 5050 IH: Veterans and Consumers Fair Credit Act", "session": "1", "congress": "", "legisnum": "H. R. 5050", "billnumber": "116hr5050", "section_num": "2. ", "section_header": "Limitations on consumer credit and maximum rates of interest", "bill_number_version": "116hr5050ih"}], "116hr5294": [{"date": "2019-12-04", "score": 48.04514, "title": "116 HR 5294 IH: Student Borrower Protections Act of 2019", "session": "1", "congress": "", "legisnum": "H. R. 5294", "billnumber": "116hr5294", "section_num": "3. ", "sectionIndex": "5", "section_header": "Standards for reporting student loan information to consumer reporting agencies", "bill_number_version": "116hr5294ih", "target_section_header": "Offices of the Consumer Financial Protection Bureau", "target_section_number": "6."}], "116hr5315": [{"date": "2019-12-05", "score": 27.432804, "title": "116 HR 5315 IH: Expanding Opportunity for Minority Depository Institutions (MDIs) Act", "session": "1", "congress": "", "legisnum": "H. R. 5315", "billnumber": "116hr5315", "section_num": "2. ", "sectionIndex": "1", "section_header": "Establishment of Financial Agent Mentor-Prot\u00e9g\u00e9 Program", "bill_number_version": "116hr5315ih", "target_section_header": "Findings; sense of Congress", "target_section_number": "2."}], "116hr5416": [{"date": "2019-12-12", "score": 36.238438, "title": "116 HR 5416 IH: National Climate Bank Act", "session": "1", "congress": "", "legisnum": "H. R. 5416", "billnumber": "116hr5416", "section_num": "3. ", "sectionIndex": "6", "section_header": "National Climate Bank", "bill_number_version": "116hr5416ih", "target_section_header": "Consumer Advisory Board reforms", "target_section_number": "7."}], "116hr5513": [{"date": "2019-12-19", "score": 26.509102, "title": "116 HR 5513 IH: Affordable Safe Drinking Water Act of 2019", "session": "1", "congress": "", "legisnum": "H. R. 5513", "billnumber": "116hr5513", "section_num": "2. ", "sectionIndex": "16", "section_header": "State revolving funds", "bill_number_version": "116hr5513ih", "target_section_header": "Report on payday loan and car-title loan investigations and enforcement actions", "target_section_number": "17."}], "116hr6012": [{"date": "2020-02-27", "score": 35.764896, "title": "116 HR 6012 IH: Consumer Financial Education and Empowerment Act", "session": "2", "congress": "", "legisnum": "H. R. 6012", "billnumber": "116hr6012", "section_num": "2. ", "section_header": "Financial literacy grant program", "bill_number_version": "116hr6012ih"}], "116hr6116": [{"date": "2020-03-05", "score": 50.786613, "title": "116 HR 6116 IH: Consumer Financial Protection Commission Act", "session": "2", "congress": "", "legisnum": "H. R. 6116", "billnumber": "116hr6116", "section_num": "3. ", "sectionIndex": "2", "section_header": "Deeming of name", "bill_number_version": "116hr6116ih", "target_section_header": "Consumer Financial Protection Bureau", "target_section_number": "3."}, {"date": "2020-03-05", "score": 51.240364, "title": "116 HR 6116 IH: Consumer Financial Protection Commission Act", "session": "2", "congress": "", "legisnum": "H. R. 6116", "billnumber": "116hr6116", "section_num": "4. ", "sectionIndex": "3", "section_header": "Conforming amendments", "bill_number_version": "116hr6116ih", "target_section_header": "Conforming amendments", "target_section_number": "4."}], "116hr6157": [{"date": "2020-03-09", "score": 35.575592, "title": "116 HR 6157 IH: Transparency for Student Veterans Act", "session": "2", "congress": "", "legisnum": "H. R. 6157", "billnumber": "116hr6157", "section_num": "2. ", "sectionIndex": "4", "section_header": "Inclusion of certain student outcome information in GI Bill comparison tool of Department of Veterans Affairs", "bill_number_version": "116hr6157ih", "target_section_header": "Executive and administration powers", "target_section_number": "5."}], "116hr6227": [{"date": "2020-03-12", "score": 30.665415, "title": "116 HR 6227 IH: Privacy Score Act of 2020", "session": "2", "congress": "", "legisnum": "H. R. 6227", "billnumber": "116hr6227", "section_num": "2. ", "sectionIndex": "14", "section_header": "Privacy framework and scores", "bill_number_version": "116hr6227ih", "target_section_header": "Credit scores included in free annual disclosures", "target_section_number": "15."}], "116hr6370": [{"date": "2020-03-23", "score": 42.925037, "title": "116 HR 6370 IH: Disaster Protection for Workers\u2019 Credit Act", "session": "2", "congress": "", "legisnum": "H. R. 6370", "billnumber": "116hr6370", "section_num": "3. ", "sectionIndex": "14", "section_header": "Reporting of information during major disasters", "bill_number_version": "116hr6370ih", "target_section_header": "Credit scores included in free annual disclosures", "target_section_number": "15."}], "116hr6419": [{"date": "2020-03-31", "score": 26.483532, "title": "116 HR 6419 IH: Senior Legal Hotline Act of 2020", "session": "2", "congress": "", "legisnum": "H. R. 6419", "billnumber": "116hr6419", "section_num": "2. ", "sectionIndex": "15", "section_header": "Statewide senior legal hotlines", "bill_number_version": "116hr6419ih", "target_section_header": "Report on senior consumers", "target_section_number": "16."}], "116hr6544": [{"date": "2020-04-17", "score": 26.754112, "title": "116 HR 6544 IH: Payday and Predatory Loans Moratorium Act of 2020", "session": "2", "congress": "", "legisnum": "H. R. 6544", "billnumber": "116hr6544", "section_num": "2. ", "sectionIndex": "16", "section_header": "Moratorium on collection efforts for certain borrowers affected by coronavirus", "bill_number_version": "116hr6544ih", "target_section_header": "Report on payday loan and car-title loan investigations and enforcement actions", "target_section_number": "17."}], "116hr6741": [{"date": "2020-05-08", "score": 31.361242, "title": "116 HR 6741 IH: COVID\u201319 Mortgage Relief Act", "session": "2", "congress": "", "legisnum": "H. R. 6741", "billnumber": "116hr6741", "section_num": "1. ", "sectionIndex": "3", "section_header": "Mortgage relief", "bill_number_version": "116hr6741ih", "target_section_header": "Conforming amendments", "target_section_number": "4."}], "116hr6835": [{"date": "2020-05-12", "score": 34.33678, "title": "116 HR 6835 IH: To require residential mortgage servicers receiving certain emergency relief under the CARES Act to provide reports on loan-level data, and for other purposes.", "session": "2", "congress": "", "legisnum": "H. R. 6835", "billnumber": "116hr6835", "section_num": "1. ", "section_header": "Mortgage performance data", "bill_number_version": "116hr6835ih"}], "116hr7171": [{"date": "2020-06-11", "score": 38.083904, "title": "116 HR 7171 IH: End Double Taxation of Successful Consumer Claims Act", "session": "2", "congress": "", "legisnum": "H. R. 7171", "billnumber": "116hr7171", "section_num": "2. ", "sectionIndex": "3", "section_header": "Above-the-line deduction for attorney fees and costs in connection with consumer claim awards", "bill_number_version": "116hr7171ih", "target_section_header": "Conforming amendments", "target_section_number": "4."}], "116hr7946": [{"date": "2020-08-04", "score": 32.61809, "title": "116 HR 7946 IH: Federal Reserve Racial and Economic Equity Act", "session": "2", "congress": "", "legisnum": "H. R. 7946", "billnumber": "116hr7946", "section_num": "2C. ", "sectionIndex": "1", "section_header": "Duty to minimize and eliminate racial disparities", "bill_number_version": "116hr7946ih", "target_section_header": "Findings; sense of Congress", "target_section_number": "2."}], "116hr8039": [{"date": "2020-08-14", "score": 29.690453, "title": "116 HR 8039 IH: Examining Educational Redlining in Lending Act", "session": "2", "congress": "", "legisnum": "H. R. 8039", "billnumber": "116hr8039", "section_num": "2. ", "sectionIndex": "2", "section_header": "Assessment of certain educational data", "bill_number_version": "116hr8039ih", "target_section_header": "Consumer Financial Protection Bureau", "target_section_number": "3."}], "116hr8241": [{"date": "2020-09-14", "score": 33.41827, "title": "116 HR 8241 IH: GAO Mandates Revision Act", "session": "2", "congress": "", "legisnum": "H. R. 8241", "billnumber": "116hr8241", "section_num": "2. ", "sectionIndex": "2", "section_header": "Audits modified", "bill_number_version": "116hr8241ih", "target_section_header": "Consumer Financial Protection Bureau", "target_section_number": "3."}], "116hr8914": [{"date": "2020-12-09", "score": 27.72839, "title": "116 HR 8914 IH: Risk Management for Derivatives Clearing Organizations Act", "session": "2", "congress": "", "legisnum": "H. R. 8914", "billnumber": "116hr8914", "section_num": "2. ", "sectionIndex": "1", "section_header": "Access to Federal reserve bank accounts and services", "bill_number_version": "116hr8914ih", "target_section_header": "Findings; sense of Congress", "target_section_number": "2."}], "116hres77": [{"date": "2019-01-25", "score": 26.996098, "title": "116 HRES 77 IH: Expressing the sense of Congress that financial institutions and other companies should work proactively with their customers affected by the shutdown of the Federal Government who may be facing short-term financial hardship and long-term damage to their creditworthiness through no fault of their own.", "session": "1", "congress": "", "legisnum": "H. RES. 77", "billnumber": "116hres77", "section_num": "", "sectionIndex": "16", "section_header": "", "bill_number_version": "116hres77ih", "target_section_header": "Report on payday loan and car-title loan investigations and enforcement actions", "target_section_number": "17."}]}
aih commented 3 years ago

It's generally working. We should see 'section match' added to the list of reasons in the Reason column. image

aih commented 3 years ago

Further explanation of the requirement above to add section match to the reason column:

The related_bills_dict has a 'reason' field, but the similar_bills_dict does not. So when an item is in the similar_bills_dict, we want to add 'section match' to the combined dict's reason field.

Since reason is a string, we will do it as a string join with any existing value. So reason: '"" will become reason: "section match", while reason: "identical" will become reason: "identical, section match" Items that are not in the similar_bills_dict will not have "section_match" in the reason field of the combined dict.

aih commented 3 years ago

Related dict: image

aih commented 3 years ago

Closed with #239 (51bef029270)