cmudict
A versioned python wrapper package for The CMU Pronouncing Dictionary data files.
Decision gist · record as of 2026-08-14
Yes, if you need English phonetic data. Low install friction, no security issues, active maintenance, and GPL-3.0-or-later licensing is straightforward for open-source projects. Not suitable for proprietary software without GPL compliance review. The NLTK compatibility makes it a practical choice for speech and linguistic work.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.9 or later (supports up to 3.14).
- Low friction: pure Python wheel with only two standard-library backport dependencies (importlib-metadata, importlib-resources).
- Actively maintained with recent commits and stable production status.
License · maintenance · safety
GPL-3.0-or-later (copyleft) — GPL-3.0-or-later (copyleft): any derivative work or software that links this package must be distributed under the same or compatible GPL license; proprietary or closed-source projects cannot use it without legal review.
last release 2026-01-03 (223 days) · last repo commit 2026-07-01 · 66 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 359,284 downloads/mo, #7,251 on PyPI
Alternatives
Verify before relying
pip install cmudict
import cmudict
# Access phonetic dictionary (NLTK-compatible)
dict_data = cmudict.dict()
# Or get raw string contents
dict_str = cmudict.dict_string()- Size and memory footprint of the bundled CMU dictionary data files when loaded into memory.
- Performance characteristics when querying large phonetic datasets or iterating over all entries.
What it is and what it does
cmudict is a thin Python wrapper around The CMU Pronouncing Dictionary, a linguistic dataset of English word pronunciations in phonetic notation. It bundles the dictionary data files and exposes them through a simple API with three access patterns per file: raw string, binary stream, or minimally-processed Python structures. The package maintains compatibility with NLTK's cmudict interface, making it a drop-in alternative for projects already using that corpus reader.
The main use case is looking up how words are pronounced or extracting phonetic information for speech synthesis, voice recognition, poetry analysis, or linguistic research. It requires Python 3.9+ and has minimal dependencies—only two standard-library backports—making it straightforward to install and integrate into existing projects.
Use it for
- Look up phonetic transcriptions of English words for speech synthesis or pronunciation guides.
- Extract phone inventories and phonetic symbols for linguistic analysis or NLP feature engineering.
- Build rhyming or alliteration detection tools by comparing phonetic representations.
- Migrate from NLTK's cmudict reader to a standalone, versioned dictionary package.
- Analyze poetry or song lyrics for phonetic patterns and stress patterns.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need English phonetic data.
Low install friction, no security issues, active maintenance, and GPL-3.0-or-later licensing is straightforward for open-source projects. Not suitable for proprietary software without GPL compliance review. The NLTK compatibility makes it a practical choice for speech and linguistic work.
Install
cmudict on PyPI
Before you install
Low friction: pure Python wheel with only two standard-library backport dependencies (importlib-metadata, importlib-resources). Actively maintained with recent commits and stable production status.
Requires Python 3.9 or later (supports up to 3.14).
License in practice
GPL-3.0-or-later (copyleft): any derivative work or software that links this package must be distributed under the same or compatible GPL license; proprietary or closed-source projects cannot use it without legal review.
Quickstart
pip install cmudict
import cmudict
# Access phonetic dictionary (NLTK-compatible)
dict_data = cmudict.dict()
# Or get raw string contents
dict_str = cmudict.dict_string()
Verify before relying
- Size and memory footprint of the bundled CMU dictionary data files when loaded into memory.
- Performance characteristics when querying large phonetic datasets or iterating over all entries.
Package facts
| License | GPL-3.0-or-later copyleft |
| Python support | Supports the current Python release <4.0,>=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packagesimportlib-metadataimportlib-resources |
| Maintenance | Actively maintained 223 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 359,284 / month, #7,251 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)Operating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.9Topic :: Software Development :: Libraries :: Python ModulesTopic :: Text Processing :: Linguistic |
Evidence: cmudict-1.1.3-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “phonetic transcription lookup”
- cmudictProvides Python access to the CMU Pronouncing Dictionary data files…
- misakiConverts written text to phonetic representations…
- epitranEpitran converts written text in various languages and scripts into…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also pronouncing · phonetics · g2p-en · ko-speech-tools · pyphonetics · phonemizer · Metaphone · soundex · praat-parselmouth · g2pkk