Voltar ao ranking
🪼 a python library for doing approximate and phonetic matching of strings.
pythonlevenshteinsoundexhammingmetaphonejaro-winklerfuzzy-searchhacktoberfest
Métricas principais
Crescimento de estrelas
Estrelas
2.2k
Forks
168
Crescimento semanal
—
Issues
0
1k2k
mar. de 2011set. de 2013abr. de 2016nov. de 2018jun. de 2021dez. de 2023jul. de 2026
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
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'
Repositórios relacionados