Skip to main content

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.

AUTHOR

Chris Brown - chris.brown@constituentvoice.com

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.

Files for PyNameMatcher, version 0.1.2
Filename, size File type Python version Upload date Hashes
Filename, size PyNameMatcher-0.1.2-py3-none-any.whl (15.5 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size PyNameMatcher-0.1.2.tar.gz (11.1 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page