wevote / WeVoteServer

We Vote's API application server written in Django/Python. Election data pulled from many sources, used by https://github.com/wevote/WebApp and https://github.com/wevote/WeVoteCordova and https://github.com/wevote/Campaigns.
https://api.wevoteusa.org
MIT License
50 stars 423 forks source link

Script to fix Politician names which are all capital letters #1572

Closed DaleMcGrew closed 3 years ago

DaleMcGrew commented 3 years ago

Some of the candidate data we have received includes candidate names which are all caps. As we have created politicians based on that candidate data, we have copied over the all caps names. The Django package we have used in the past related to names is nameparser. Please note that we may want to use this same script to fix other name related problems as well.

1. Add way to fix one politician's name (on page for single Politician) to have normal capitalization.

2. Add way to fix one candidate's name (on page for single Candidate) to have normal capitalization.

3. Add a way to fix politician's names in bulk.

4. Add a way to fix candidate's names in bulk.

5. Script to count number of politicians with more than 5 capital letters in their name. Perhaps display first 500 on a page.

6. Script like 5. for candidates.

DaleMcGrew commented 3 years ago

Verified!