Skip to content

ZackDibe/phonetics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Phonetics

PyPI-Status PyPI-Versions

LICENCE

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

  • Soundex
  • NYSISS
  • Metaphone
  • Double Metaphone

PyPI-Status

pip install phonetics

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

By Duncan McGreggor

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

Or

nosetests --with-coverage --cover-package=phonetics
>>> import phonetics
>>> phonetics.dmetaphone('Danger')
('TNJR', 'TNKR')

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.

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

See the CONTRIBUTING file for more information.

Open Source : LICENCE

Ranked by contributions.

  • Zack Dibe (Zack--) *

* Original author

About

Implementation of phonetic algorithm in python

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages