1
2
Fork
You've already forked jellyfish
2
🪼 a python library for doing approximate and phonetic matching of strings. https://jpt.sh/projects/jellyfish/
  • Jupyter Notebook 86.1%
  • Rust 8.5%
  • Python 5.2%
  • Just 0.2%
jpt b21046a4f0
Some checks failed
/ lint_and_test (3.14) (push) Has been cancelled
/ lint_and_test (3.9) (push) Has been cancelled
/ lint_and_test (pypy3.11) (push) Has been cancelled
/ linux (map[interpreter:3.9 3.10 3.11 3.12 3.13 3.14 pypy3.9 pypy3.10 pypy3.11 target:aarch64]) (push) Has been cancelled
/ linux (map[interpreter:3.9 3.10 3.11 3.12 3.13 3.14 pypy3.9 pypy3.10 pypy3.11 target:armv7]) (push) Has been cancelled
/ linux (map[interpreter:3.9 3.10 3.11 3.12 3.13 3.14 pypy3.9 pypy3.10 pypy3.11 target:x64]) (push) Has been cancelled
/ musllinux (map[arch:aarch64 interpreter:3.9 3.10 3.11 3.12 3.13 3.14 pypy3.9 pypy3.10 pypy3.11 target:aarch64-unknown-linux-musl]) (push) Has been cancelled
/ musllinux (map[arch:x86 interpreter:3.9 3.10 3.11 3.12 3.13 3.14 pypy3.9 pypy3.10 pypy3.11 target:i686-unknown-linux-musl]) (push) Has been cancelled
/ musllinux (map[arch:x86_64 interpreter:3.9 3.10 3.11 3.12 3.13 3.14 pypy3.9 pypy3.10 pypy3.11 target:x86_64-unknown-linux-musl]) (push) Has been cancelled
/ windows (3.10, x64) (push) Has been cancelled
/ windows (3.10, x86) (push) Has been cancelled
/ windows (3.11, x64) (push) Has been cancelled
/ windows (3.11, x86) (push) Has been cancelled
/ windows (3.12, x64) (push) Has been cancelled
/ windows (3.12, x86) (push) Has been cancelled
/ windows (3.13, x64) (push) Has been cancelled
/ windows (3.13, x86) (push) Has been cancelled
/ windows (3.14, x64) (push) Has been cancelled
/ windows (3.14, x86) (push) Has been cancelled
/ windows (3.9, x64) (push) Has been cancelled
/ windows (3.9, x86) (push) Has been cancelled
/ macos (map[interpreter:3.9 3.10 3.11 3.12 3.13 3.14 pypy3.9 pypy3.10 pypy3.11 target:aarch64]) (push) Has been cancelled
/ macos (map[interpreter:3.9 3.10 3.11 3.12 3.13 3.14 pypy3.9 pypy3.10 pypy3.11 target:x64]) (push) Has been cancelled
/ sdist (push) Has been cancelled
/ Release (push) Has been cancelled
move documentation
2025年11月22日 11:34:53 -06:00
.github 3.14 2025年10月11日 14:01:30 -05:00
benchmarks Apply pyupgrade suggestions ( #193 ) 2023年08月13日 20:32:34 -05:00
docs move documentation 2025年11月22日 11:34:53 -06:00
python/jellyfish #186 implement Jaccard similarity ( #214 ) 2024年07月28日 03:29:57 -04:00
src drop temp. feature 2024年07月28日 04:11:30 -04:00
testdata bring CSVs in from old repo 2024年09月06日 21:20:42 -04:00
tests fix mrc ( #203 ) 2023年11月17日 12:56:02 -06:00
.coveragerc coveragerc 2014年08月11日 15:02:13 -04:00
.gitignore update doc links 2025年10月11日 14:23:52 -05:00
.pre-commit-config.yaml switch fully away from travis 2020年12月07日 20:11:59 -05:00
Cargo.toml update doc links 2025年10月11日 14:23:52 -05:00
CITATION.cff codeberg 2025年06月17日 00:34:00 -05:00
Justfile move documentation 2025年11月22日 11:34:53 -06:00
LICENSE 0.11.0 2023年03月26日 22:09:38 -05:00
mkdocs.yml move documentation 2025年11月22日 11:34:53 -06:00
pyproject.toml move documentation 2025年11月22日 11:34:53 -06:00
README.md move documentation 2025年11月22日 11:34:53 -06:00
run-cov.sh Shell script is executable but lacked a shebang 2021年12月09日 11:33:58 +01:00
trifold.toml move documentation 2025年11月22日 11:34:53 -06:00

Overview

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

Source: https://codeberg.org/jpt/jellyfish

Documentation: https://jpt.sh/projects/jellyfish/

Issues: https://codeberg.org/jpt/jellyfish/issues

PyPI badge

Included Algorithms

String comparison:

  • Levenshtein Distance
  • Damerau-Levenshtein Distance
  • Jaccard Index
  • 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_similarity('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'