Skip to main content

No project description provided

Project description

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

Installation

$ pip install phonetics

Usage

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

Tests

By Duncan McGreggor

$ 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.3.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

phonetics-1.0.3-py2.py3-none-any.whl (9.4 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file phonetics-1.0.3.tar.gz.

File metadata

  • Download URL: phonetics-1.0.3.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for phonetics-1.0.3.tar.gz
Algorithm Hash digest
SHA256 6bd105e856f89568eb553e01921f7f3d3b75f2cab3933220f1a103475ed719bb
MD5 f29dc040275a0fd32dd63ea70a78aa25
BLAKE2b-256 836624e174c1c9f3cec434e70851b46612e3df2b5a074138422110c7b2641f91

See more details on using hashes here.

File details

Details for the file phonetics-1.0.3-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for phonetics-1.0.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 6b8f60765c5bc7c0541578463cf0fb6fe658c01991a93fc9d002bbed8c0e82e0
MD5 b8c93b65cc194eb9863f4c932d8520e6
BLAKE2b-256 fe8eac504c8bfda6e718e231b83480257252256532338e15ef1bc2dfcc1b5636

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page