openelections / openelections-data-wv

Converted CSVs of West Virginia election results
6 stars 7 forks source link

Improve cleaning of candidate names #49

Open warwickmm opened 3 years ago

warwickmm commented 3 years ago

In the Tickets class, we clean candidate names by replacing bad characters:

https://github.com/openelections/openelections-data-wv/blob/cd93ec9d1c686ab7f532a39dc84fcd1789f27667/scripts/tickets.py#L34-L45

This seems a bit aggressive, as it's not uncommon for names to contain ' and - (e.g., Shannon O'Brien, Cindy Hyde-Smith).

This is related to https://github.com/openelections/openelections-data-sd/issues/32.