Skip to main content

Approximate and phonetic matching of strings.

Project description

Overview

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

PyPI badge Test badge Coveralls Test Rust

Included Algorithms

String comparison:

  • Levenshtein Distance
  • Damerau-Levenshtein Distance
  • 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_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'

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jellyfish-0.11.1.tar.gz (364.8 kB view hashes)

Uploaded Source

Built Distributions

jellyfish-0.11.1-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.2 MB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

jellyfish-0.11.1-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.1 MB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ ARM64

jellyfish-0.11.1-pp39-pypy39_pp73-macosx_11_0_arm64.whl (323.1 kB view hashes)

Uploaded PyPy macOS 11.0+ ARM64

jellyfish-0.11.1-pp39-pypy39_pp73-macosx_10_7_x86_64.whl (328.9 kB view hashes)

Uploaded PyPy macOS 10.7+ x86-64

jellyfish-0.11.1-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.2 MB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

jellyfish-0.11.1-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.1 MB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ ARM64

jellyfish-0.11.1-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.2 MB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

jellyfish-0.11.1-pp37-pypy37_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.1 MB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ ARM64

jellyfish-0.11.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.1 MB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ ARM64

jellyfish-0.11.1-cp311-none-win_amd64.whl (207.1 kB view hashes)

Uploaded CPython 3.11 Windows x86-64

jellyfish-0.11.1-cp311-none-win32.whl (204.1 kB view hashes)

Uploaded CPython 3.11 Windows x86

jellyfish-0.11.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.2 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

jellyfish-0.11.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.1 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ ARM64

jellyfish-0.11.1-cp311-cp311-macosx_11_0_arm64.whl (322.3 kB view hashes)

Uploaded CPython 3.11 macOS 11.0+ ARM64

jellyfish-0.11.1-cp311-cp311-macosx_10_7_x86_64.whl (327.7 kB view hashes)

Uploaded CPython 3.11 macOS 10.7+ x86-64

jellyfish-0.11.1-cp310-none-win_amd64.whl (207.1 kB view hashes)

Uploaded CPython 3.10 Windows x86-64

jellyfish-0.11.1-cp310-none-win32.whl (204.1 kB view hashes)

Uploaded CPython 3.10 Windows x86

jellyfish-0.11.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.2 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

jellyfish-0.11.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.1 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ ARM64

jellyfish-0.11.1-cp310-cp310-macosx_11_0_arm64.whl (322.3 kB view hashes)

Uploaded CPython 3.10 macOS 11.0+ ARM64

jellyfish-0.11.1-cp310-cp310-macosx_10_7_x86_64.whl (327.7 kB view hashes)

Uploaded CPython 3.10 macOS 10.7+ x86-64

jellyfish-0.11.1-cp39-none-win_amd64.whl (207.1 kB view hashes)

Uploaded CPython 3.9 Windows x86-64

jellyfish-0.11.1-cp39-none-win32.whl (204.1 kB view hashes)

Uploaded CPython 3.9 Windows x86

jellyfish-0.11.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.2 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

jellyfish-0.11.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.1 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ ARM64

jellyfish-0.11.1-cp39-cp39-macosx_11_0_arm64.whl (322.4 kB view hashes)

Uploaded CPython 3.9 macOS 11.0+ ARM64

jellyfish-0.11.1-cp39-cp39-macosx_10_7_x86_64.whl (327.8 kB view hashes)

Uploaded CPython 3.9 macOS 10.7+ x86-64

jellyfish-0.11.1-cp38-none-win_amd64.whl (207.2 kB view hashes)

Uploaded CPython 3.8 Windows x86-64

jellyfish-0.11.1-cp38-none-win32.whl (204.2 kB view hashes)

Uploaded CPython 3.8 Windows x86

jellyfish-0.11.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.2 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

jellyfish-0.11.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.1 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ ARM64

jellyfish-0.11.1-cp38-cp38-macosx_11_0_arm64.whl (322.5 kB view hashes)

Uploaded CPython 3.8 macOS 11.0+ ARM64

jellyfish-0.11.1-cp38-cp38-macosx_10_7_x86_64.whl (328.1 kB view hashes)

Uploaded CPython 3.8 macOS 10.7+ x86-64

jellyfish-0.11.1-cp37-none-win_amd64.whl (207.1 kB view hashes)

Uploaded CPython 3.7 Windows x86-64

jellyfish-0.11.1-cp37-none-win32.whl (204.2 kB view hashes)

Uploaded CPython 3.7 Windows x86

jellyfish-0.11.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.2 MB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.17+ x86-64

jellyfish-0.11.1-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.1 MB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.17+ ARM64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page