Get a random English word with a specific number of syllables
npm install random-word-syllablesGet a random English word with a specific number of syllables
MIT
``Javascript
// Generate 1 word
var generator = require("random-word-syllables");
console.log(generator.randword(2)); //Random word of 2 syllables
// returns
'hello'
// Generate array of words
var generator = require("random-word-syllables");
console.log(generator.randwords(2,4)); //Array of 4 random words of 2 syllables
// returns
[ 'obvious',
'flower',
'tablet',
'apple']
``