Skip to main content

Compute phonetic key of strings for indexing or fuzzy matching

Project description

PyPI-Status PyPI-Versions

LICENCE

The phonetics module computes the phonetic key of a string using different algorithms.

  • Soundex

  • NYSISS

  • Metaphone

  • Double Metaphone


Installation

Latest PyPI stable release

PyPI-Status

pip install phonetics

Latest development release on github

GitHub-Status GitHub-Stars GitHub-Forks

Pull and install in the current directory:

pip install -e git+https://github.com/Zack--/phonetics.git@master#egg=phonetics

Running tests

By Duncan McGreggor

$ python -m unittest discover phonetics/tests/ -v

Or

nosetests --with-coverage --cover-package=phonetics

Usage

>>> import phonetics
>>> phonetics.dmetaphone('Danger')
('TNJR', 'TNKR')

Module Contents

The phonetics module defines the following function:

phonetics. soundex(source [, size=4])

Use the soundex algorithm to create the phonetic key of the source string.

phonetics. nysiis(source)

Use the New York State Identification and Intelligence System to create the phonetic key of the source string.

phonetics. metaphone(source)
Use the metaphone algorithm to create the phonetic key of the source string.
phonetics. dmetaphone(source)
Use the double methaphone algorithm to create the phonetic key of the source string.

Contributions

All source code is hosted on GitHub. Contributions are welcome.

See the CONTRIBUTING file for more information.

LICENCE

Open Source : LICENCE

Authors

Ranked by contributions.

  • Zack Dibe (Zack–) *

* Original author

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

phonetics-1.0.5.tar.gz (8.8 kB view details)

Uploaded Source

File details

Details for the file phonetics-1.0.5.tar.gz.

File metadata

  • Download URL: phonetics-1.0.5.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for phonetics-1.0.5.tar.gz
Algorithm Hash digest
SHA256 16263948c82fce1e257964b2ab4adc953f995e0fa7e2e60e6ba336d77a7235ba
MD5 e9e20ab13af1598b8ced18fe771bef9b
BLAKE2b-256 67a5d1b6dbcbb05477aa5f0c5e73a7d68c6d23ab098af4461072f00999ed573a

See more details on using hashes here.

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