# Human Name Compare
![human_name_compare](https://github.com/digitalkaoz/py_human_name_compare/workflows/human_name_compare/badge.svg)
[![PyPI version](https://badge.fury.io/py/human-name-compare.svg)](https://badge.fury.io/py/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
```shell script
$ hn-compare compare "Robert Schönthal" "Robert Schönthal"
```
### Python
```python
from human_name_compare import match_name
match_name("Robert Schönthal", "Robert Schönthal")
```
## Tests
````shell script
$ python -m pytest .
````
Raw data
{
"_id": null,
"home_page": "https://github.com/digitalkaoz/py_human_name_compare",
"name": "human-name-compare",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "NLP,HUMANNAME",
"author": "Robert Schoenthal",
"author_email": "robert.schoenthal@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/9a/0e/62639f36a61553c0d94197096f707a060894338ecc8c3e773e2e62c6c674/human-name-compare-0.4.1.tar.gz",
"platform": null,
"description": "# Human Name Compare\n\n![human_name_compare](https://github.com/digitalkaoz/py_human_name_compare/workflows/human_name_compare/badge.svg)\n[![PyPI version](https://badge.fury.io/py/human-name-compare.svg)](https://badge.fury.io/py/human-name-compare)\n\n\nthe Problem:\n\nCheck if `Dr. Peter M\u00fcller` and `Peter K. M\u00fcller` and `Dr. med. Peter Karsten M\u00fcller` and `P. M\u00fcller` indicate if its the same person\n\nThere are gazillion tiny bits and pieces which makes this trivial task hard e.g.:\n\n* \"R. Sch\u00f6nthal\" \"Robert Sch\u00f6nthal\" - the only have initials on one side\n* \"Erik Sch\u00f6nthal\" \"Robert Sch\u00f6nthal\" - the firstname name doesnt match\n* \"Robert Erik Sch\u00f6nthal\" \"Robert Peter Sch\u00f6nthal\" - the middle name doesnt match \n* \"Robert-Erik Sch\u00f6nthal\" \"Robert Erik Sch\u00f6nthal\" - we have an \"-\" in our firstnames\n* \"Robeert Sch\u00f6nthal\" \"Robert Sch\u00f6nthal\" - the firstname has a typo\n* \"Robert M\u00fcller\" \"Robert Sch\u00f6nthal\" - the lastname doesnt match\n* \"Herr Robert M\u00fcller\" \"Dr. med. Robert Sch\u00f6nthal\" - we have some prefixes\n\nand so on...\n\n## Usage\n\n### CLI\n\n```shell script\n$ hn-compare compare \"Robert Sch\u00f6nthal\" \"Robert Sch\u00f6nthal\"\n```\n\n### Python\n\n```python\nfrom human_name_compare import match_name\n\nmatch_name(\"Robert Sch\u00f6nthal\", \"Robert Sch\u00f6nthal\")\n```\n\n## Tests\n\n````shell script\n$ python -m pytest .\n````\n",
"bugtrack_url": null,
"license": "",
"summary": "a tool for comparing human names",
"version": "0.4.1",
"project_urls": {
"Download": "https://github.com/digitalkaoz/py_human_name_compare/archive/0.4.1.tar.gz",
"Homepage": "https://github.com/digitalkaoz/py_human_name_compare"
},
"split_keywords": [
"nlp",
"humanname"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "9a0e62639f36a61553c0d94197096f707a060894338ecc8c3e773e2e62c6c674",
"md5": "756de641a028f676ccde2f83a48ecf4b",
"sha256": "ee62686efc167f7e7d9004f4f97f75a3bb7b6f4da8b12512d0bf3f800b81478c"
},
"downloads": -1,
"filename": "human-name-compare-0.4.1.tar.gz",
"has_sig": false,
"md5_digest": "756de641a028f676ccde2f83a48ecf4b",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 7892,
"upload_time": "2023-07-30T15:00:16",
"upload_time_iso_8601": "2023-07-30T15:00:16.679042Z",
"url": "https://files.pythonhosted.org/packages/9a/0e/62639f36a61553c0d94197096f707a060894338ecc8c3e773e2e62c6c674/human-name-compare-0.4.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-07-30 15:00:16",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "digitalkaoz",
"github_project": "py_human_name_compare",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [],
"lcname": "human-name-compare"
}