{"id":28478830,"url":"https://github.com/prosegrinder/python-cmudict","last_synced_at":"2025-07-03T09:31:14.610Z","repository":{"id":47508292,"uuid":"120095208","full_name":"prosegrinder/python-cmudict","owner":"prosegrinder","description":"A versioned python wrapper package for cmudict (https://github.com/cmusphinx/cmudict). ","archived":false,"fork":false,"pushed_at":"2025-04-12T15:21:18.000Z","size":351,"stargazers_count":63,"open_issues_count":1,"forks_count":6,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-06-07T18:07:18.888Z","etag":null,"topics":["cmudict","counting","python","syllables"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/prosegrinder.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-02-03T13:49:46.000Z","updated_at":"2025-04-28T15:21:30.000Z","dependencies_parsed_at":"2023-01-29T22:46:11.152Z","dependency_job_id":"eeb379a5-667c-4bdf-a248-e74a17432f98","html_url":"https://github.com/prosegrinder/python-cmudict","commit_stats":{"total_commits":193,"total_committers":7,"mean_commits":"27.571428571428573","dds":0.08290155440414504,"last_synced_commit":"c464b85bf10de93d5ca7fd74ac06bfc5ef0a685f"},"previous_names":[],"tags_count":39,"template":false,"template_full_name":null,"purl":"pkg:github/prosegrinder/python-cmudict","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prosegrinder%2Fpython-cmudict","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prosegrinder%2Fpython-cmudict/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prosegrinder%2Fpython-cmudict/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prosegrinder%2Fpython-cmudict/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/prosegrinder","download_url":"https://codeload.github.com/prosegrinder/python-cmudict/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prosegrinder%2Fpython-cmudict/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263300176,"owners_count":23445195,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cmudict","counting","python","syllables"],"created_at":"2025-06-07T18:07:14.463Z","updated_at":"2025-07-03T09:31:14.601Z","avatar_url":"https://github.com/prosegrinder.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CMUdict: Python wrapper for cmudict\n\n[![Latest PyPI version](https://img.shields.io/pypi/v/cmudict.svg)](https://pypi.python.org/pypi/cmudict)\n[![GitHub Workflow Status](https://github.com/prosegrinder/python-cmudict/workflows/Python%20CI/badge.svg?branch=main)](https://github.com/prosegrinder/python-cmudict/actions?query=workflow%3A%22Python+CI%22+branch%3Amain)\n\nCMUdict is a versioned python wrapper package for\n[The CMU Pronouncing Dictionary](https://github.com/cmusphinx/cmudict) data\nfiles. The main purpose is to expose the data with little or no assumption on\nhow it is to be used.\n\n## Installation\n\n`cmudict` is available on PyPI. Simply install it with `pip`:\n\n```bash\npip install cmudict\n```\n\n## Usage\n\nThe cmudict data set includes 4 data files: cmudict.dict, cmudict.phones,\ncmudict.symbols, and cmudict.vp. See\n[The CMU Pronouncing Dictionary](https://github.com/cmusphinx/cmudict) for\ndetails on the data. Chances are, if you're here, you already know what's in the\nfiles.\n\nEach file can be accessed through three functions, one which returns the raw\n(string) contents, one which returns a binary stream of the file, and one which\ndoes minimal processing of the file into an appropriate structure:\n\n```python\n\u003e\u003e\u003e import cmudict\n\n\u003e\u003e\u003e cmudict.dict() # Compatible with NLTK\n\u003e\u003e\u003e cmudict.dict_string()\n\u003e\u003e\u003e cmudict.dict_stream()\n\n\u003e\u003e\u003e cmudict.phones()\n\u003e\u003e\u003e cmudict.phones_string()\n\u003e\u003e\u003e cmudict.phones_stream()\n\n\u003e\u003e\u003e cmudict.symbols()\n\u003e\u003e\u003e cmudict.symbols_string()\n\u003e\u003e\u003e cmudict.symbols_stream()\n\n\u003e\u003e\u003e cmudict.vp()\n\u003e\u003e\u003e cmudict.vp_string()\n\u003e\u003e\u003e cmudict.vp_stream()\n```\n\nThree additional functions are included to maintain compatibility with NLTK:\ncmudict.entries(), cmudict.raw(), and cmudict.words(). See the\n[nltk.corpus.reader.cmudict](http://www.nltk.org/_modules/nltk/corpus/reader/cmudict.html)\ndocumentation for details:\n\n```python\n\u003e\u003e\u003e cmudict.entries() # Compatible with NLTK\n\u003e\u003e\u003e cmudict.raw() # Compatible with NLTK\n\u003e\u003e\u003e cmudict.words() # Compatible with NTLK\n```\n\nAnd finally, the license for the cmudict data set is available as well:\n\n```python\n\u003e\u003e\u003e cmudict.license_string() # Returns the cmudict license as a string\n```\n\n## Credits\n\nBuilt on or modeled after the following open source projects:\n\n- [The CMU Pronouncing Dictionary](https://github.com/cmusphinx/cmudict)\n- [NLTK](https://github.com/nltk/nltk)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprosegrinder%2Fpython-cmudict","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprosegrinder%2Fpython-cmudict","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprosegrinder%2Fpython-cmudict/lists"}