Crates.io | jellyfish |
lib.rs | jellyfish |
version | 1.0.0 |
source | src |
created_at | 2020-06-28 01:06:50.665746 |
updated_at | 2023-06-23 15:54:49.810591 |
description | Approximate and phonetic matching of strings. |
homepage | |
repository | https://github.com/jamesturk/jellyfish/ |
max_upload_size | |
id | 258965 |
size | 785,614 |
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
String comparison:
Phonetic encoding:
>>> 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'