Name Matching
Published in
2 min readNov 13, 2019
We will be using a library called whoswho which simply determines whether two names describe the same person.
Install the library using any of the following methods:
pip install whoswhoORconda install whoswho
Name Matching
who.match('Arya, K.', u'Mr. Karan Arya')
who.match(‘Karan Arya, Jr.’, ‘Karan Arya, Sr.’)
It is possible to adjust the strictness with which names are checked.
who.match('K Arya', 'Karan Arya')
who.match('K Arya', 'Karan Arya', 'strict')
Fuzzy Matching
WhosWho can also produce a ratio based on the per cent match of two names.
who.ratio('Karan Arya', 'Karan Aarya')
who.ratio('Karan R. Arya', 'Karan R. Singhania')