No project description provided
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.
Based on `Lawrence Philips' Metaphone Algorithm <http://aspell.net/metaphone/>`_
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.
Based on `Lawrence Philips' Metaphone Algorithm <http://aspell.net/metaphone/>`_
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.1.tar.gz
(1.7 kB
view details)
Built Distribution
File details
Details for the file phonetics-1.0.1.tar.gz
.
File metadata
- Download URL: phonetics-1.0.1.tar.gz
- Upload date:
- Size: 1.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a61fac96b52257532e5a5f7f773917e3fe0e7ae91d89a4149ae6b9ee2b70a8d |
|
MD5 | 0e9b65728601dff264d26dbb9020f3b1 |
|
BLAKE2b-256 | d096672d4a3a458293ce3f3298d26af7be30e28c5f11daad862e988354f3d720 |
File details
Details for the file phonetics-1.0.1-py2.py3-none-any.whl
.
File metadata
- Download URL: phonetics-1.0.1-py2.py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a3f6852388bd76688709d6e9a2d77a0231ea7d73a081037959540d3bb023453 |
|
MD5 | 9e1198761fcaf9d7ad425c109babaabb |
|
BLAKE2b-256 | 244dbd0c32fdbdc44e8670a64a3ffad2cd05a0a2d9faa78e7b1c7c44fcbaf024 |