No project description provided
Project description
=========
Phonetics
=========
The phonetics module computes the phonetic key of a string using different algorithms.
* Soundex
* NYSISS
* Metaphone
* Double Metaphone
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/>`_
Installation
************
.. code-block:: shell
$ pip install phonetics
Usage
*****
.. 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
Phonetics
=========
The phonetics module computes the phonetic key of a string using different algorithms.
* Soundex
* NYSISS
* Metaphone
* Double Metaphone
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/>`_
Installation
************
.. code-block:: shell
$ pip install phonetics
Usage
*****
.. 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.2.tar.gz
(7.2 kB
view details)
Built Distribution
File details
Details for the file phonetics-1.0.2.tar.gz
.
File metadata
- Download URL: phonetics-1.0.2.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | af5a58d020f8f240f95797718fdfc1c61a816d667da2eea962c735bdb05872fe |
|
MD5 | b39fe8e04a938e6d0099beac1be6d32d |
|
BLAKE2b-256 | f80b0dba70482053dbfe756d74cf6dd53a01a1fcc95f54930722016d5e8907e2 |
File details
Details for the file phonetics-1.0.2-py2.py3-none-any.whl
.
File metadata
- Download URL: phonetics-1.0.2-py2.py3-none-any.whl
- Upload date:
- Size: 9.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4bb27715f1110c5d2bf2e4890c5473623dda49820730ea2f8302fecdd4890aa8 |
|
MD5 | 752a8ad684a82e09b28fbfdfad906d80 |
|
BLAKE2b-256 | 4c92cad1e5fac97039142bfb0368fef0cd9c4dadfc914b8b5c0f9512fbc7b646 |