🎐 a python library for doing approximate and phonetic matching of strings.
Go to file
James Turk f17972e2bc add rustyfish module 2023-03-25 01:42:01 -05:00
.github Bump pypa/gh-action-pypi-publish from 1.5.1 to 1.6.4 2022-12-12 04:25:34 +00:00
docs remove porter_stem 2023-03-25 00:55:12 -05:00
python/jellyfish add rustyfish module 2023-03-25 01:42:01 -05:00
src add rustyfish module 2023-03-25 01:42:01 -05:00
testdata@8883ad26c9 update testdata with test for #90 2022-11-06 23:19:29 -06:00
.coveragerc coveragerc 2014-08-11 15:02:13 -04:00
.gitignore add rustyfish module 2023-03-25 01:42:01 -05:00
.gitmodules remove cjellyfish 2023-03-25 01:23:08 -05:00
.pre-commit-config.yaml switch fully away from travis 2020-12-07 20:11:59 -05:00
Cargo.toml add rustyfish module 2023-03-25 01:42:01 -05:00
LICENSE BSD-2 2015-06-16 17:02:11 -04:00
MANIFEST.in add mkdocs.yml to MANIFEST.in #159 2022-09-16 23:55:37 -05:00
README.md Update README.md 2023-02-03 10:45:46 -06:00
build-wheels.sh add wheels 2020-05-21 15:41:40 -04:00
mkdocs.yml switch to functions.md 2021-11-10 14:54:19 -05:00
pyproject.toml add rustyfish module 2023-03-25 01:42:01 -05:00
run-cov.sh Shell script is executable but lacked a shebang 2021-12-09 11:33:58 +01:00
setup.py remove cjellyfish 2023-03-25 01:23:08 -05:00
upload-releases.sh Add aarch64 CI and wheel build support 2021-03-16 05:34:48 +00:00

README.md

Overview

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

Source: https://github.com/jamesturk/jellyfish

Documentation: https://jamesturk.github.io/jellyfish/

Issues: https://github.com/jamesturk/jellyfish/issues

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('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'