Security News
The Unpaid Backbone of Open Source: Solo Maintainers Face Increasing Security Demands
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
cmu-pronouncing-dictionary
Advanced tools
All the 134,000+ words in the CMU pronouncing dictionary as a simple JSON object
All the 134,000+ words in the CMU pronouncing dictionary as a simple JSON object
The CMU Pronouncing Dictionary (also known as cmudict) is a public domain pronouncing dictionary created by Carnegie Mellon University (CMU). It defines a mapping from English words to their North American pronunciations, and is commonly used in speech processing applications
There are a handful of npm modules for working with the CMU pronouncing dictionary, but none so simple as this one. Unlike the alternatives, this module simple exports an object containing words as keys and their Arpabet transcriptions as values. Here's a sample:
{
"allergen": "AE1 L ER0 JH AH0 N",
"allergens": "AE1 L ER0 JH AH0 N Z",
"allergic": "AH0 L ER1 JH IH0 K",
"allergies": "AE1 L ER0 JH IY0 Z",
"allergist": "AE1 L ER0 JH AH0 S T",
"allergist's": "AE1 L ER0 JH AH0 S T S",
"allergist's(1)": "AE1 L ER0 JH AH0 S",
"allergists": "AE1 L ER0 JH AH0 S T S",
"allergists(1)": "AE1 L ER0 JH AH0 S",
"allergy": "AE1 L ER0 JH IY0",
"allers": "AO1 L ER0 Z",
"allert": "AE1 L ER0 T",
"allerton": "AE1 L ER0 T AH0 N",
"alles": "EY1 L Z",
"alleva": "AA0 L EY1 V AH0",
"alleviate": "AH0 L IY1 V IY0 EY2 T",
"alleviated": "AH0 L IY1 V IY0 EY2 T IH0 D",
"alleviates": "AH0 L IY1 V IY0 EY0 T S",
"alleviating": "AH0 L IY1 V IY0 EY2 T IH0 NG"
}
Download node at nodejs.org and install it, if you haven't already.
npm install cmu-pronouncing-dictionary --save
const words = require('cmu-pronouncing-dictionary')
words.length
// => 133779
words.phenomenon
// => 'F AH0 N AA1 M AH0 N AA2 N'
words.zygote
// => 'Z AY1 G OW0 T'
npm install
npm test
None
ISC
Generated by package-json-to-readme
FAQs
The 134,000+ words and their pronunciations in the CMU pronouncing dictionary
The npm package cmu-pronouncing-dictionary receives a total of 568 weekly downloads. As such, cmu-pronouncing-dictionary popularity was classified as not popular.
We found that cmu-pronouncing-dictionary demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
Security News
License exceptions modify the terms of open source licenses, impacting how software can be used, modified, and distributed. Developers should be aware of the legal implications of these exceptions.
Security News
A developer is accusing Tencent of violating the GPL by modifying a Python utility and changing its license to BSD, highlighting the importance of copyleft compliance.