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
Metadata
Release files for phonetics 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| phonetics-1.0.2.tar.gz | 7.2 kB | Without provenance | Details for phonetics-1.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| phonetics-1.0.2-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for phonetics-1.0.2-py2.py3-none-any.whl |
Total release size: 16.7 kB
Release files / phonetics-1.0.2.tar.gz
| Download URL | phonetics-1.0.2.tar.gz |
|---|---|
| Size | 7.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
af5a58d020f8f240f95797718fdfc1c61a816d667da2eea962c735bdb05872fe
|
|
BLAKE2b-256 checksum How to use checksums |
f80b0dba70482053dbfe756d74cf6dd53a01a1fcc95f54930722016d5e8907e2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / phonetics-1.0.2-py2.py3-none-any.whl
| Download URL | phonetics-1.0.2-py2.py3-none-any.whl |
|---|---|
| Size | 9.4 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
4bb27715f1110c5d2bf2e4890c5473623dda49820730ea2f8302fecdd4890aa8
|
|
BLAKE2b-256 checksum How to use checksums |
4c92cad1e5fac97039142bfb0368fef0cd9c4dadfc914b8b5c0f9512fbc7b646
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for phonetics 1.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.