mirror of
https://github.com/rspeer/wordfreq.git
synced 2024-12-23 09:21:37 +00:00
stop running 'remove_unsafe_private_use' unnecessarily
This commit is contained in:
parent
6ab72201cd
commit
b6f246ecbb
@ -1,6 +1,5 @@
|
||||
# coding: utf-8
|
||||
from unicodedata import normalize
|
||||
from ftfy.fixes import remove_unsafe_private_use
|
||||
|
||||
|
||||
def standardize_word(word):
|
||||
@ -21,4 +20,4 @@ def standardize_word(word):
|
||||
that the capitalized versions will not share a word count with the
|
||||
lowercase versions.
|
||||
"""
|
||||
return normalize('NFKC', remove_unsafe_private_use(word)).lower()
|
||||
return normalize('NFKC', word).lower()
|
||||
|
Loading…
Reference in New Issue
Block a user