1.0.1 • Published 7 years ago

random-word-syllables v1.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

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']