mirror of
https://github.com/rspeer/wordfreq.git
synced 2024-12-23 17:31:41 +00:00
stop running 'remove_unsafe_private_use' unnecessarily
Former-commit-id: b6f246ecbb
This commit is contained in:
parent
f4280dcad0
commit
8d57b39a7b
@ -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