-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
In the Tickets
class, we clean candidate names by replacing bad characters:
openelections-data-sd/scripts/tickets.py
Lines 34 to 44 in e0b7b0b
BAD_CHARS = { | |
'.': '', | |
',': '', | |
':': '', | |
'"': '', # only for hanging quote marks | |
'-': ' ',# since all quote sections cut first | |
"'": ' ', | |
'&': 'AND', | |
'“': '', | |
'”': '' | |
} |
This seems a bit aggressive, as it's not uncommon for names to contain '
and -
(e.g., Shannon O'Brien, Cindy Hyde-Smith).
Metadata
Metadata
Assignees
Labels
No labels