Skip to content

Instantly share code, notes, and snippets.

@soobrosa
Last active December 23, 2015 21:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save soobrosa/6697624 to your computer and use it in GitHub Desktop.
Save soobrosa/6697624 to your computer and use it in GitHub Desktop.
homogenize text
# input is unicode
import unicodedata
def homogenize (text):
text = unicodedata.normalize('NFKD', text).encode('ascii', 'ignore')
text = text.lower()
return text
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment