🎐 a python library for doing approximate and phonetic matching of strings.
Go to file
James Turk af51f1013e changelog for 1.0.2 2023-10-12 20:28:46 -05:00
.github 3.12 and bump to 1.0.2 2023-10-12 20:26:28 -05:00
benchmarks Apply pyupgrade suggestions (#193) 2023-08-13 20:32:34 -05:00
docs changelog for 1.0.2 2023-10-12 20:28:46 -05:00
python/jellyfish actually remove deprecated aliases 2023-07-20 13:47:14 -05:00
src switch Damerau to use ahash 2023-04-02 14:29:08 -05:00
testdata@ba7a0afa65 update testdata with broken Unicode 2023-03-26 19:46:28 -05:00
tests Apply pyupgrade suggestions (#193) 2023-08-13 20:32:34 -05: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
CITATION.cff move to top level 2023-08-16 00:19:43 -05:00
Cargo.toml 3.12 and bump to 1.0.2 2023-10-12 20:26:28 -05:00
Justfile doc bump 2023-04-05 10:54:25 -05:00
LICENSE 0.11.0 2023-03-26 22:09:38 -05:00
README.md bring together config & move to _rustyfish 2023-03-25 21:28:47 -05:00
mkdocs.yml bump version 2023-06-21 11:51:52 -05:00
pyproject.toml Allow maturin 1.x (#191) 2023-06-27 17:37:24 -04:00
run-cov.sh Shell script is executable but lacked a shebang 2021-12-09 11:33:58 +01: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 Test Rust

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'