konklone / congress-android

Congress for Android, an app for tracking Congress.
https://play.google.com/store/apps/details?id=com.sunlightlabs.android.congress
Other
157 stars 42 forks source link

Acronyms should find bills #533

Closed konklone closed 12 years ago

konklone commented 12 years ago

This is really more of an RTC issue, but to keep the work together - "sopa" should find the Stop Online Piracy Act, and it should be the top result.

To do this, create two fields on bills/bill_versions, and make them searchable, "nicknames", and "possible_nicknames".

Start automatically calculating possible acronyms upon index, and adding them to the "possible_nicknames" field as an array.

Create a CSV, by hand, with known acronyms, publish them on Github somewhere, and start wiring these acronyms into the "acronyms" field on index, by wgetting the file from Github directly. This will work for a long, long time, and is not a load on Github (twice a day, tiny file).

Starting examples: "sopa" => SOPA, "pipa" => PIPA, "obamacare" => [PPACA, Reconciliation]

Boost the "nicknames" field so that it gets a ton of precedence in scoring.

Make it publicly known that we're keeping this file, and welcome contributions from OC, GovTrack, others.