Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

rhyme-detector

LeeMeyer47WTFPL1.1.1

Find all the rhyming words within any poem, fast.

rhyme, string, manipulation, phonemes, rhyming, rap, poetry, poem

readme

rhyme-detector

🕵 Find all the rhymes in any poem, fast.

Dependencies

Uses the CMU pronouncing dictionary

Install

Using npm:

npm install rhyme-detector --save
# or
yarn add rhyme-detector

Usage


const detectRyhmes = require("detect-rhymes");

let rhymes = detectRyhmes("overnight delight intertwine emboss mine loss shine boss refine incline");

/*
Returns:

[ [ 'overnight', 'delight' ],
[ 'intertwine', 'mine', 'shine', 'incline' ],
[ 'emboss', 'loss', 'boss' ] ]
*/

LICENSE (WTFPL)