Skip to main content

A simple interface for the CMU pronouncing dictionary

Project description

pronouncing

https://img.shields.io/travis/aparrish/pronouncingpy.svg https://coveralls.io/repos/github/aparrish/pronouncingpy/badge.svg?branch=master https://img.shields.io/pypi/v/pronouncing.svg

Pronouncing is a simple interface for the CMU Pronouncing Dictionary. It’s easy to use and has no external dependencies. For example, here’s how to find rhymes for a given word:

>>> import pronouncing
>>> pronouncing.rhymes("climbing")
['diming', 'liming', 'priming', 'rhyming', 'timing']

Read the documentation here: https://pronouncing.readthedocs.org.

I made Pronouncing because I wanted to be able to use the CMU Pronouncing Dictionary in my projects (and teach other people how to use it) without having to install the grand behemoth that is NLTK.

Installation

Install with pip like so:

pip install pronouncing

You can also download the source code and install manually:

python setup.py install

License

The Python code in this module is distributed with a BSD license. A full copy of the CMU Pronouncing Dictionary is included in this distribution. Learn more about the CMU Pronouncing Dictionary here: http://www.speech.cs.cmu.edu/cgi-bin/cmudict

Acknowledgements

This package was originally developed as part of my Spring 2015 research fellowship at ITP. Thank you to the program and its students for their interest and support!

History

0.1.3 (2017-01-17)

  • Various tweaks and performance improvements.

0.1.2 (2015-06-23)

  • Pre-compiled regex for improved performance. (Contributed by John Wiseman.)

0.1.1 (2015-06-12)

  • First release on PyPI.

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

pronouncing-0.1.3a.tar.gz (913.1 kB view details)

Uploaded Source

File details

Details for the file pronouncing-0.1.3a.tar.gz.

File metadata

  • Download URL: pronouncing-0.1.3a.tar.gz
  • Upload date:
  • Size: 913.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pronouncing-0.1.3a.tar.gz
Algorithm Hash digest
SHA256 aec1902658b73c73de444d3084f7bddbea4d90845a356b5363bb56640bb9296c
MD5 1e99a931d1c5d26280550f4222818a9d
BLAKE2b-256 ed74bb00defad7a92087c1ad2c8a00822a3998e8d15b7d73405c3e99ba18580f

See more details on using hashes here.

Supported by

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