Skip to main content

PyPI-Status PyPI-Versions

LICENCE

The phonetics module computes the phonetic key of a string using different algorithms.

  • Soundex

  • NYSISS

  • Metaphone

  • Double Metaphone


Installation

Latest PyPI stable release

PyPI-Status

pip install phonetics

Latest development release on github

GitHub-Status GitHub-Stars GitHub-Forks

Pull and install in the current directory:

pip install -e git+https://github.com/Zack--/phonetics.git@master#egg=phonetics

Running tests

By Duncan McGreggor

$ python -m unittest discover phonetics/tests/ -v

Or

nosetests --with-coverage --cover-package=phonetics

Usage

>>> import phonetics
>>> phonetics.dmetaphone('Danger')
('TNJR', 'TNKR')

Module Contents

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.

Contributions

All source code is hosted on GitHub. Contributions are welcome.

See the CONTRIBUTING file for more information.

LICENCE

Open Source : LICENCE

Authors

Ranked by contributions.

  • Zack Dibe (Zack–) *

* Original author

Metadata

Release files for phonetics 1.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for phonetics 1.0.5
File Size Uploaded
phonetics-1.0.5.tar.gz 8.8 kB Details

Release files / phonetics-1.0.5.tar.gz

Download URL phonetics-1.0.5.tar.gz
Size 8.8 kB
Tags Source
SHA-256 checksum
How to use checksums
16263948c82fce1e257964b2ab4adc953f995e0fa7e2e60e6ba336d77a7235ba
BLAKE2b-256 checksum
How to use checksums
67a5d1b6dbcbb05477aa5f0c5e73a7d68c6d23ab098af4461072f00999ed573a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.0.5 This release

1 release file

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page