Skip to main content

a library for doing approximate and phonetic matching of strings.

Project description

https://travis-ci.org/sunlightlabs/jellyfish.svg?branch=master https://coveralls.io/repos/sunlightlabs/jellyfish/badge.png?branch=master https://pypip.in/version/jellyfish/badge.svg https://pypip.in/format/jellyfish/badge.svg Documentation Status

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

jellyfish is a project of Sunlight Labs (c) 2014. All code is released under a BSD-style license, see LICENSE for details.

Written by James Turk <jturk@sunlightfoundation.com> and Michael Stephens.

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

Source is available at http://github.com/sunlightlabs/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.4.0.tar.gz (20.8 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for jellyfish-0.4.0.tar.gz
Algorithm Hash digest
SHA256 89f6264b98b11a40528c0faf6e2035c15023b628b3e51c62fd2082d103b100cc
MD5 ad67caf3a8fe7a6afd26aa539b0e2397
BLAKE2b-256 4d3c90a15e396b56fd1a6041583b08a20314970c313f548dca5bb2b51c79f36c

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