Get the part of a word that rhymes with other words
Uses the CMU Pronouncing Dictionary (4MB) to get the rhyming part of a word's pronounciation. This can be used to check if words rhyme with each other, or group together words that rhyme.
Install
$ npm install rhyming-part
Usage
const rhymingPart = ; ;//=> 'OW1' ;//=> 'OW1' ;//=> 'IY1 T' ;//=> 'IY1 T' ;//=> 'IY1 T' ;//=> '' ;//=> ['AE1 K S AH0 Z', 'AE1 K S IH0 Z'] ;//=> ['EY1 P T'] ;//=> []
API
rhymingPart(input, [options])
input
Type: string
The word to get the rhyming part from. Uses the last word from the input.
options
Type: object
multiple
Type: boolean
Default: false
If true
, returns an array of unique rhyming parts for all pronounciations of the word.
License
MIT © Faraz