Simple library for matching first names with possible variations
Project description
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.
LICENSE
Licensed under Apache License 2.0. Copyright 2019 Constituent Voice LLC.
See LICENSE for complete terms.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for PyNameMatcher-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb8756273620eb05aa22632e6d26c853fa2c0c31ccf255693820aa1db04ef6f2 |
|
MD5 | c2e9a7d291fa23023696f599fc251022 |
|
BLAKE2b-256 | fb1121bb6a61e1d337347e227765311c150e81d94ec4c9876eee242fcb4d375d |