Skip to content

Commit

Permalink
Add a new step to normalization
Browse files Browse the repository at this point in the history
I was removing hyphens instead of replacing them.
  • Loading branch information
davidmogar committed May 7, 2015
1 parent bbddca3 commit bad97af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion genderator/__init__.py
@@ -1,3 +1,3 @@
__version__ = '0.2.7.6'
__version__ = '0.2.7.7'

from genderator.parser import Parser
1 change: 1 addition & 0 deletions genderator/parser.py
Expand Up @@ -100,6 +100,7 @@ def guess_gender(self, fullname):
if isinstance(fullname, str):
if self.__normalize:
fullname = self.__normalizr.remove_extra_whitespaces(fullname)
fullname = self.__normalizr.replace_hyphens(fullname)
fullname = self.__normalizr.remove_symbols(fullname, 'NFKC', self.__normalizr_exclusions)
fullname = self.__normalizr.remove_punctuation(fullname, excluded=set('\'')).lower()

Expand Down

0 comments on commit bad97af

Please sign in to comment.