LGBTQ+ rights remain heavily contested across America, and the LGBTQ+ Policy Map is a React web app that provides a visual breakdown of relevant legislative activity by state. By clicking on a state, users can view the details of all bills in that state that affect the LGBTQ+ community, grouped by party support. To build the app and fetch the data, I used Next.js, Python, and the LegiScan API.
This project was made possible by Out in Tech and its wonderful mentorship program. A huge thank you to my amazing mentor, Josh Wang, and the OIT U team!
I fetched all the data from LegiScan via Python. After developing a list of keywords (including "queer," "same-sex," "transgender," etc.), I looped through each state and used the Search API to query bills that contained those words and had relevance scores of at least 85%. The Bill API provided further details for each bill, such as its description, its status, sponsors and their parties, and voting breakdowns. All bills were stored into a JSON file, which can updated with a simple run of the Python script, and the React app filters through the data to route pages and display visuals. More specifically, the app groups the bills by state, then examines sponsorship to group bills on the state level by party support.
The methodology above is imperfect. Here are some future edits and implementations!
If you're interested in queer legislation, here are some related sites I drew inspiration from!