phonetics

Compute phonetic key of strings for indexing or fuzzy matching


Keywords
phonetics, metaphone, soundex, indexing, search, fuzzy
License
MIT
Install
pip install phonetics==1.0.5

Documentation

Phonetics

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