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
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)
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | b3211e0acc9071907246a8219dd8ae10fac7e9fe2496aef510955276de8ca898 |
|
MD5 | 7ba1f63ea2250b561040a3489b398be1 |
|
BLAKE2b-256 | c96977c927e01edb6afc352fb22d9722a67dc95cad06c7700577579fe229b747 |
File details
Details for the file phonetics-1.0.0-py2.py3-none-any.whl
.
File metadata
- Download URL: phonetics-1.0.0-py2.py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c51914ae6963bfe50fea35b3eb87fbb704aa21b88d97461fc397ebcbf0eaa6e |
|
MD5 | 20a68fc106f04636d5a3a52c8bb94799 |
|
BLAKE2b-256 | 62f9148b377eb074f716a74c89b2f3647c239398f198fd04f68f76b1155cce7a |