🎐 a python library for doing approximate and phonetic matching of strings.
Go to file
James Turk 80a6bb62ce force rebuild of .so, tox was throwing up 2015-08-15 17:10:03 -04:00
cjellyfish@a3b62e7149 update cjellyfish to pass test 2015-07-12 20:10:09 -04:00
docs 0.5.1 changelog 2015-07-12 20:18:32 -04:00
jellyfish update cjellyfish to pass test 2015-07-12 20:10:09 -04:00
testdata@c5aa82da97 update tests and add a couple nysiis fixes 2015-05-01 14:43:24 -04:00
.coveragerc coveragerc 2014-08-11 15:02:13 -04:00
.gitignore initial pass at algorithms docs 2015-02-24 18:15:51 -05:00
.gitmodules change submodule path 2015-04-22 01:50:10 -04:00
.run_with_env.cmd appveyor 2015-04-22 19:12:55 -04:00
.travis.yml bring the pieces of jellyfish together 2015-05-28 19:28:37 -04:00
LICENSE BSD-2 2015-06-16 17:02:11 -04:00
MANIFEST.in install right .h files 2014-07-16 08:23:11 -04:00
README.rst merge readme 2015-06-15 15:03:57 -04:00
appveyor.yml add wheel dep to appveyor 2015-04-23 01:17:20 -04:00
run-cov.sh quite a few tests for NYSIIS, fixing some issues in the C implementation 2015-02-19 17:34:45 -05:00
setup.py Merge branch 'master' of github.com:sunlightlabs/jellyfish 2015-05-28 19:28:39 -04:00
tox.ini force rebuild of .so, tox was throwing up 2015-08-15 17:10:03 -04:00

README.rst

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

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

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

.. image:: https://img.shields.io/pypi/v/jellyfish.svg
    :target: https://pypi.python.org/pypi/jellyfish

.. image:: https://readthedocs.org/projects/jellyfish/badge/?version=latest
    :target: https://readthedocs.org/projects/jellyfish/?badge=latest
    :alt: Documentation Status

.. image:: https://ci.appveyor.com/api/projects/status/t5o03rqcusxhhe41/branch/master?svg=true
    :target: https://ci.appveyor.com/project/jamesturk/jellyfish/

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'