🎐 a python library for doing approximate and phonetic matching of strings.
Go to file
James Turk 852efa5d1e test and fix two bugs in match rating comparison 2015-02-19 17:01:07 -05:00
cjellyfish test and fix two bugs in match rating comparison 2015-02-19 17:01:07 -05:00
jellyfish test and fix two bugs in match rating comparison 2015-02-19 17:01:07 -05:00
.coveragerc coveragerc 2014-08-11 15:02:13 -04:00
.gitignore run-cov 2015-02-19 14:57:14 -05:00
.travis.yml check 3.3 on travis 2015-02-19 14:31:55 -05:00
LICENSE LICENSE 2010-07-13 14:03:17 -04:00
MANIFEST.in install right .h files 2014-07-16 08:23:11 -04:00
README.rst add coveralls badge 2014-08-12 22:00:33 -04:00
porter-test.csv add semi-broken porter.py 2013-04-18 00:48:19 -04:00
run-cov.sh run-cov 2015-02-19 14:57:14 -05:00
setup.py 0.3.4 bump 2015-02-04 12:22:16 -05:00
tox.ini tell tox to run in py27 2015-02-19 14:51:38 -05:00

README.rst

=========
jellyfish
=========

.. image:: https://travis-ci.org/sunlightlabs/jellyfish.svg?branch=master
    :target: https://travis-ci.org/sunlightlabs/jellyfish

.. image:: https://coveralls.io/repos/sunlightlabs/jellyfish/badge.png?branch=master
    :target: https://coveralls.io/r/sunlightlabs/jellyfish

.. image:: https://pypip.in/version/jellyfish/badge.svg
    :target: https://pypi.python.org/pypi/jellyfish

.. image:: https://pypip.in/format/jellyfish/badge.svg
    :target: https://pypi.python.org/pypi/jellyfish


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'