Skip to main content

a library for doing approximate and phonetic matching of strings.

Project description

https://travis-ci.org/jamesturk/jellyfish.svg?branch=master https://coveralls.io/repos/jamesturk/jellyfish/badge.png?branch=master https://img.shields.io/pypi/v/jellyfish.svg Documentation Status https://ci.appveyor.com/api/projects/status/t5o03rqcusxhhe41/branch/master?svg=true

Jellyfish is a python library for doing approximate and phonetic matching of strings.

Written by James Turk <james.p.turk@gmail.com> and Michael Stephens.

See https://github.com/jamesturk/jellyfish/graphs/contributors for contributors.

Source is available at http://github.com/jamesturk/jellyfish.

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('jellyfish', 'smellyfish')
2
>>> jellyfish.jaro_distance('jellyfish', 'smellyfish')
0.89629629629629637
>>> jellyfish.damerau_levenshtein_distance('jellyfish', 'jellyfihs')
1
>>> jellyfish.metaphone('Jellyfish')
'JLFX'
>>> jellyfish.soundex('Jellyfish')
'J412'
>>> jellyfish.nysiis('Jellyfish')
'JALYF'
>>> jellyfish.match_rating_codex('Jellyfish')
'JLLFSH'

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.5.3.tar.gz (131.9 kB view details)

Uploaded Source

Built Distribution

jellyfish-0.5.3-cp27-none-macosx_10_10_x86_64.whl (24.5 kB view details)

Uploaded CPython 2.7 macOS 10.10+ x86-64

File details

Details for the file jellyfish-0.5.3.tar.gz.

File metadata

  • Download URL: jellyfish-0.5.3.tar.gz
  • Upload date:
  • Size: 131.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for jellyfish-0.5.3.tar.gz
Algorithm Hash digest
SHA256 07b487f45e9dd4bd4c267ccf5c8859dbdfd26c2a81abf365f6bbf6e419827d89
MD5 c24a27bd01a6fe54a4608aa19347b338
BLAKE2b-256 3b315b68a7d645913549b89d436aa8e7587918abd490bbff0bbd76fda8cab915

See more details on using hashes here.

File details

Details for the file jellyfish-0.5.3-cp27-none-macosx_10_10_x86_64.whl.

File metadata

File hashes

Hashes for jellyfish-0.5.3-cp27-none-macosx_10_10_x86_64.whl
Algorithm Hash digest
SHA256 44f1491cb556a64eb77e1a11fc9da62f0161453379d85bf72966ab1e4bd6e4b4
MD5 eddd0ddf9cec876c788b450c04b8243c
BLAKE2b-256 0c023f8812b41b9cb8ee7c356f345ec9283ddbb50b6912e10ebbdb09e877824a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page