codeforboston / codeforboston/maple

Enhance the bill search 'city' facet

Open
#1,482 0 comments 0 reactions 0 assignees View on GitHub
Browse Bills
Dominant language
TypeScript
Stars
56
Forks
175
Avg merge
2d 5h
Merged PRs (30d)
13

Description

Right now, the bill search UI allows you to filter to a city. However, IIUC this is based only on the structured metadata returned from the API and, unfortunately, this only associates cities with bills when they are explicit home rule petitions. Many other bills, which may reference or relate to cities, will not be included and that could use to user confusion.

We could potentially enhance this feature by adding additional city labeling based on bill text. We could do a simple token-level search for city names and add a label to each bill during our ETL process which is used during search.

For example, a bill whose text says "This bill will give $1M for free to the citizens of Somerville" would get parsed upon ETL from the legislature's API, the token "Somerville" would get recognized, a "Somerville" city tag would be added to the bill, and then a user filtering to "City = Somerville" in the search UI would see the bill pop up.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.