(s)
| 331 | # Turn a Unicode string to plain ASCII, thanks to |
| 332 | # https://stackoverflow.com/a/518232/2809427 |
| 333 | def unicodeToAscii(s): |
| 334 | return ''.join( |
| 335 | c for c in unicodedata.normalize('NFD', s) |
| 336 | if unicodedata.category(c) != 'Mn' |
| 337 | ) |
| 338 | |
| 339 | # Lowercase, trim, and remove non-letter characters |
| 340 | def normalizeString(s): |