Match company names against a database of names and variations
Project description
Match organization names. See docs/ directory for more info.
Basic usage:
from matchco import subsequences, NoMatchError, bestmatch
name = "mygreat korp"
candidate1 = ("My Great Corp, Inc.", "My Great Corp", subsequences("My Great Corp".lower()))
candidate2 = ("Other Corp Inc.", "Other Corp", subsequences("Other Corp Inc.".lower()))
candidates = (candidate1, candidate2)
try:
match = bestmatch(name, candidates, multiple=True)
except NoMatchError:
match = None
print(match or "no match for '%s' found" % name)
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
matchco-1.3.tar.gz
(16.7 kB
view hashes)
Built Distribution
matchco-1.3-py3-none-any.whl
(17.2 kB
view hashes)