
Research
Security News
The Landscape of Malicious Open Source Packages: 2025 Mid‑Year Threat Report
A look at the top trends in how threat actors are weaponizing open source packages to deliver malware and persist across the software supply chain.
|PyPI-Status| |PyPI-Versions|
|LICENCE|
The phonetics module computes the phonetic key of a string using different algorithms.
.. contents:: Table of contents :backlinks: top :local:
|PyPI-Status|
.. code:: sh
pip install phonetics
|GitHub-Status| |GitHub-Stars| |GitHub-Forks|
Pull and install in the current directory:
.. code:: sh
pip install -e git+https://github.com/Zack--/phonetics.git@master#egg=phonetics
By Duncan McGreggor <https://github.com/oubiwann>
_
.. code-block:: shell
$ python -m unittest discover phonetics/tests/ -v
Or
.. code:: sh
nosetests --with-coverage --cover-package=phonetics
.. code-block:: python
>>> import phonetics
>>> phonetics.dmetaphone('Danger')
('TNJR', 'TNKR')
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.
| Based on Lawrence Philips' Metaphone Algorithm <http://aspell.net/metaphone/>
__.
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/>
__.
All source code is hosted on GitHub <https://github.com/ToasterCo/apiaiassistant>
__.
Contributions are welcome.
See the
CONTRIBUTING <https://raw.githubusercontent.com/Zack--/apiaiassistant/master/CONTRIBUTING.md>
__
file for more information.
Open Source : |LICENCE|
Ranked by contributions.
*
Original author
.. |PyPI-Status| image:: https://img.shields.io/pypi/v/phonetics.svg :target: https://pypi.python.org/pypi/phonetics
.. |PyPI-Downloads| image:: https://img.shields.io/pypi/dm/phonetics.svg :target: https://pypi.python.org/pypi/phonetics
.. |PyPI-Versions| image:: https://img.shields.io/pypi/pyversions/phonetics.svg :target: https://pypi.python.org/pypi/phonetics
.. |LICENCE| image:: https://img.shields.io/pypi/l/phonetics.svg :target: https://raw.githubusercontent.com/Zack--/phonetics/master/LICENCE
.. |GitHub-Status| image:: https://img.shields.io/github/tag/Zack--/phonetics.svg?maxAge=2592000 :target: https://github.com/Zack--/phonetics/releases
.. |GitHub-Forks| image:: https://img.shields.io/github/forks/Zack--/phonetics.svg :target: https://github.com/Zack--/phonetics/network
.. |GitHub-Stars| image:: https://img.shields.io/github/stars/Zack--/phonetics.svg :target: https://github.com/Zack--/phonetics/stargazers
FAQs
Compute phonetic key of strings for indexing or fuzzy matching
We found that phonetics demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A look at the top trends in how threat actors are weaponizing open source packages to deliver malware and persist across the software supply chain.
Security News
ESLint now supports HTML linting with 48 new rules, expanding its language plugin system to cover more of the modern web development stack.
Security News
CISA is discontinuing official RSS support for KEV and cybersecurity alerts, shifting updates to email and social media, disrupting automation workflows.