a tool for comparing human names
Project description
Human Name Compare
the Problem:
Check if Dr. Peter Müller
and Peter K. Müller
and Dr. med. Peter Karsten Müller
and P. Müller
indicate if its the same person
There are gazillion tiny bits and pieces which makes this trivial task hard e.g.:
- "R. Schönthal" "Robert Schönthal" - the only have initials on one side
- "Erik Schönthal" "Robert Schönthal" - the firstname name doesnt match
- "Robert Erik Schönthal" "Robert Peter Schönthal" - the middle name doesnt match
- "Robert-Erik Schönthal" "Robert Erik Schönthal" - we have an "-" in our firstnames
- "Robeert Schönthal" "Robert Schönthal" - the firstname has a typo
- "Robert Müller" "Robert Schönthal" - the lastname doesnt match
- "Herr Robert Müller" "Dr. med. Robert Schönthal" - we have some prefixes
and so on...
Usage
CLI
$ hn-compare compare "Robert Schönthal" "Robert Schönthal"
Python
from human_name_compare import match_name
match_name("Robert Schönthal", "Robert Schönthal")
Tests
$ python -m pytest .
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file human-name-compare-0.3.0.tar.gz
.
File metadata
- Download URL: human-name-compare-0.3.0.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07faaf59c34156fca087881c89dfc56d1404b3c7c67cb7f47382e7a6c99de797 |
|
MD5 | 2ebb46e8cdcd0806081abb6e58f61694 |
|
BLAKE2b-256 | 6f598e4b1df4d00c72a2c3a392bc50e7199a37580e15027e0e3ada07f98232aa |