nprapps / elections18-graphics

2018 midterm election front-end; iteration upon 2016 GE work
MIT License
5 stars 1 forks source link

State results: County names for New England states are all-caps, while other states are Upper/Lower #201

Closed alykat closed 6 years ago

alykat commented 6 years ago

Massachusetts:

image

Kansas: image

mileswwatkins commented 6 years ago

Good catch. This is coming out of Elex, which converts New England towns (from the AP API) to New England counties, and upper-cases all the county names.

https://github.com/newsdev/elex/blob/9ec4af6bdf9bcbdacec31f4a2ba18265e7093fe7/elex/api/maps.py#L5

I submitted a PR against Elex just now, but I don't think it'll get merged and deployed to a new version on PyPI before election day. In the meantime, we can apply title-casing to New England counties on the front-end; none have internal capitalization.