Skip to main content

a library for doing approximate and phonetic matching of strings.

Project description


jellyfish is a library for approximate & phonetic matching of strings.




PyPI badge Test badge Coveralls

Included Algorithms

String comparison:

  • Levenshtein Distance
  • Damerau-Levenshtein Distance
  • Jaro Distance
  • Jaro-Winkler Distance
  • Match Rating Approach Comparison
  • Hamming Distance

Phonetic encoding:

  • American Soundex
  • Metaphone
  • NYSIIS (New York State Identification and Intelligence System)
  • Match Rating Codex

Example Usage

>>> import jellyfish
>>> jellyfish.levenshtein_distance(u'jellyfish', u'smellyfish')
>>> jellyfish.jaro_distance(u'jellyfish', u'smellyfish')
>>> jellyfish.damerau_levenshtein_distance(u'jellyfish', u'jellyfihs')

>>> jellyfish.metaphone(u'Jellyfish')
>>> jellyfish.soundex(u'Jellyfish')
>>> jellyfish.nysiis(u'Jellyfish')
>>> jellyfish.match_rating_codex(u'Jellyfish')

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

jellyfish-0.9.0.tar.gz (132.6 kB view hashes)

Uploaded source

Built Distributions

jellyfish-0.9.0-cp310-cp310-win_amd64.whl (26.3 kB view hashes)

Uploaded cp310

jellyfish-0.9.0-cp39-cp39-win_amd64.whl (26.3 kB view hashes)

Uploaded cp39

jellyfish-0.9.0-cp38-cp38-win_amd64.whl (26.3 kB view hashes)

Uploaded cp38

jellyfish-0.9.0-cp37-cp37m-win_amd64.whl (26.3 kB view hashes)

Uploaded cp37

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page