def slugify(s, delimiter='<STR_LIT:->'):
s = unicodedata.normalize('<STR_LIT>', to_unicode(s)).encode('<STR_LIT:ascii>', '<STR_LIT:ignore>').decode('<STR_LIT:ascii>')<EOL>return RE_SLUG.sub(delimiter, s).strip(delimiter).lower()<EOL>
Normalize `s` into ASCII and replace non-word characters with `delimiter`.