Skip to content

koodaamo/matchco

Repository files navigation

Match organization names. See docs/ directory for more info.

Python application

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)

About

Match ambiguous organization names

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages