Skip to content

A simple python class for fuzzy name matching

License

Notifications You must be signed in to change notification settings

yymao/fuzzyname

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fuzzyname

PyPI version

A simple python class for fuzzy name matching, especially in academic settings.

Installation

pip install fuzzyname

Examples

from fuzzyname import FuzzyName as Name

Name("Vanessa T. Porter") == Name("V. T. Porter")
Name("Vanessa T. Porter") == Name("V. Porter")
Name("Vanessa Teresa Porter") == Name("V. T. Porter")
Name("Vanessa Teresa Porter") != Name("V. C. Porter")
Name("Vanessa Teresa Porter") == Name("Teresa Porter")
Name("Vanessa Teresa Porter") == Name("V. Teresa Porter")
Name("Vanessa Teresa Porter") != Name("C. Teresa Porter")
Name("Vanessa Teresa Porter") == Name("Vanessa Teresa")
Name("Vanessa Teresa Porter") == Name("Teresa, Vanessa")
Name("Porter, Vanessa") == Name("Porter, Vanessa T.")
Name("Porter, V. Teresa") == Name("Porter, Teresa")
Name("Vanessa Porter") == Name("V. Porter")
Name("Porter, V.") == Name("V. T. Porter")
Name("Phil Porter") == Name("Philip Porter")
Name("Benjamin Porter") == Name("Ben Porter")
Name("Yessica van de Langenberg") == Name("van de Langenberg, Y.")
Name("Li Qin Ho") == Name("Li-Qin Ho")
Name("Li Qin Ho") == Name("L.-Q. Ho")
Name("Li Qin Ho", exact=True) == Name("L. Q. Ho")
Name("Vanessa Teresa Porter") != Name("V. R. Porter")
Name("Vanessa Porter") != Name("Violet Porter")
Name("Li Qin Ho", exact=True) != Name("L. Ho")
Name("Li Qin Ho", exact=True) != Name("Li Qi Ho")
Name("Bill Gates") == Name("William Gates")
Name("Bill Gates", exact=True) != Name("William Gates")
Name("André François") == Name("Andre Francois")
Name("Borgland, Anders W.") == Name("Borgland, Anders")