def normalize(string: Text) -> Text:
string = string.lower()<EOL>string = unidecode(string)<EOL>string = RE_WHITESPACES.sub('<STR_LIT:U+0020>', string).strip()<EOL>return string<EOL>
Normalizes a string to encompass various things humans tend to get wrong:

- Put everything lowercase
- Drop accents
- Transform all whitespaces sequences into a single space
- Remove spaces before and after punctuation