rhyme-detector
v1.1.1
Published
Find all the rhyming words within any poem, fast.
Downloads
30
Maintainers
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' ] ]
*/