Skip to main content

UNKNOWN

Project description

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

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.


Example
-------

.. code-block:: python

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


Tests
-----

By `Duncan McGreggor <https://github.com/oubiwann>`_

.. code-block:: shell

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

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.0.tar.gz (1.7 kB view details)

Uploaded Source

Built Distribution

phonetics-1.0.0-py2.py3-none-any.whl (2.9 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

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

File hashes

Hashes for phonetics-1.0.0.tar.gz
Algorithm Hash digest
SHA256 b3211e0acc9071907246a8219dd8ae10fac7e9fe2496aef510955276de8ca898
MD5 7ba1f63ea2250b561040a3489b398be1
BLAKE2b-256 c96977c927e01edb6afc352fb22d9722a67dc95cad06c7700577579fe229b747

See more details on using hashes here.

File details

Details for the file phonetics-1.0.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for phonetics-1.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 1c51914ae6963bfe50fea35b3eb87fbb704aa21b88d97461fc397ebcbf0eaa6e
MD5 20a68fc106f04636d5a3a52c8bb94799
BLAKE2b-256 62f9148b377eb074f716a74c89b2f3647c239398f198fd04f68f76b1155cce7a

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