1.1.1 ā¢ Published 3 years ago
rhyme-detector v1.1.1
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' ] ]
*/