random-word-syllables
v1.0.1
Published
Get a random English word with a specific number of syllables
Downloads
5
Maintainers
Readme
Random Words Syllables
Get a random English word with a specific number of syllables
License
MIT
Usage
Basic usage
// 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']