jamesturk/jellyfish

🪼 a python library for doing approximate and phonetic matching of strings.

Jupyter Notebook

2,230

563 commits

updated Jul 24, 2026

See the code

README

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'
fuzzy-search
hacktoberfest
hamming
jaro-winkler
levenshtein
metaphone
python
soundex

jamesturk/jellyfish

🪼 a python library for doing approximate and phonetic matching of strings.

Jupyter Notebook

2,230

563 commits

updated Jul 24, 2026

See the code

README

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'
fuzzy-search
hacktoberfest
hamming
jaro-winkler
levenshtein
metaphone
python
soundex

Project health

Overall

3.9/10

Maintained

0/10

Code review

1/10
OpenSSF Scorecard

Latest release

1.2.1 · Oct 11, 2025

Releases this year

1

Significant stargazers

(top 24 of 27)

Xingyao Wang

1,475 followers · starred Nov 2022

Adrian Garcia Badaracco

689 followers · starred Dec 2022

Olivier Chafik

434 followers · starred Aug 2025

Santos Gallegos

534 followers · starred Sep 2017