PyNameMatcher
Help with matching names to nick-names and vice-versa. Based on data by https://github.com/carltonnorthern/nickname-and-diminutive-names-lookup
INSTALL
$ pip install PyNameMatcher
USAGE
from pynamematcher import PyNameMatcher
matcher = PyNameMatcher(data_file=path_to_datafile)
possible_names = matcher.match('Bob')
DOCUMENTATION
__init__() Options
- data_file:
Path to a CSV formatted data file of names. Defaults to an internal data file.
- use_metaphone:
Match names using the metaphone library to catch misspellings.
match() Options
- name:
First argument. The name to match
- use_metaphone:
used internally when self.use_metaphone is True
- remove_match:
Remove the input name (default True). Used internally to keep names when searching metaphone symbols.
- empty_match_returns_none:
If no names match the method will return None instead of the empty set this is to enable the behavior of versions before 0.2. (default False)
LICENSE
Licensed under Apache License 2.0. Copyright 2019-2022 Constituent Voice LLC.
See LICENSE for complete terms.
Metadata
Release files for PyNameMatcher 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| PyNameMatcher-0.2.1.tar.gz | 15.6 kB | Details |
Release files / PyNameMatcher-0.2.1.tar.gz
| Download URL | PyNameMatcher-0.2.1.tar.gz |
|---|---|
| Size | 15.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7f7aead7adb8462ee043b8ea46f3257ff7e4b8084019a15f465457079e359553
|
|
BLAKE2b-256 checksum How to use checksums |
a36dbb46a43935a50240a027a7dff0bfc170b88f2b76eeecb9dc905403f3e2b6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|