Debian Codegraph @

PKG-INFO

raw
1 Metadata-Version: 2.4
2 Name: jellyfish
3 Version: 1.2.0
4 Classifier: Programming Language :: Rust
5 Classifier: Programming Language :: Python :: Implementation :: CPython
6 Classifier: Programming Language :: Python :: Implementation :: PyPy
7 Classifier: License :: OSI Approved :: MIT License
8 Classifier: Operating System :: OS Independent
9 Classifier: Development Status :: 5 - Production/Stable
10 Classifier: Intended Audience :: Developers
11 License-File: LICENSE
12 Summary: Approximate and phonetic matching of strings.
13 Author: James Turk <[email protected]>
14 Author-email: James Turk <[email protected]>
15 License: MIT
16 Requires-Python: >=3.9
17 Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
18 Project-URL: homepage, https://jamesturk.github.io/jellyfish/
19 Project-URL: documentation, https://jamesturk.github.io/jellyfish/
20 Project-URL: repository, https://github.com/jamesturk/jellyfish/
21
22 # Overview
23
24 **jellyfish** is a library for approximate & phonetic matching of strings.
25
26 Source: [https://github.com/jamesturk/jellyfish](https://github.com/jamesturk/jellyfish)
27
28 Documentation: [https://jamesturk.github.io/jellyfish/](https://jamesturk.github.io/jellyfish/)
29
30 Issues: [https://github.com/jamesturk/jellyfish/issues](https://github.com/jamesturk/jellyfish/issues)
31
32 [![PyPI badge](https://badge.fury.io/py/jellyfish.svg)](https://badge.fury.io/py/jellyfish)
33 [![Test badge](https://github.com/jamesturk/jellyfish/workflows/Python%20package/badge.svg)](https://github.com/jamesturk/jellyfish/actions?query=workflow%3A%22Python+package)
34 [![Coveralls](https://coveralls.io/repos/jamesturk/jellyfish/badge.png?branch=master)](https://coveralls.io/r/jamesturk/jellyfish)
35 ![Test Rust](https://github.com/jamesturk/rust-jellyfish/workflows/Test%20Rust/badge.svg)
36
37 ## Included Algorithms
38
39 String comparison:
40
41 * Levenshtein Distance
42 * Damerau-Levenshtein Distance
43 * Jaccard Index
44 * Jaro Distance
45 * Jaro-Winkler Distance
46 * Match Rating Approach Comparison
47 * Hamming Distance
48
49 Phonetic encoding:
50
51 * American Soundex
52 * Metaphone
53 * NYSIIS (New York State Identification and Intelligence System)
54 * Match Rating Codex
55
56 ## Example Usage
57
58 ``` python
59 >>> import jellyfish
60 >>> jellyfish.levenshtein_distance('jellyfish', 'smellyfish')
61 2
62 >>> jellyfish.jaro_similarity('jellyfish', 'smellyfish')
63 0.89629629629629637
64 >>> jellyfish.damerau_levenshtein_distance('jellyfish', 'jellyfihs')
65 1
66
67 >>> jellyfish.metaphone('Jellyfish')
68 'JLFX'
69 >>> jellyfish.soundex('Jellyfish')
70 'J412'
71 >>> jellyfish.nysiis('Jellyfish')
72 'JALYF'
73 >>> jellyfish.match_rating_codex('Jellyfish')
74 'JLLFSH'
75 ```
76