almighty-markov-words
v0.0.4
Published
Generate words based off an input list (i.e. list of names)
Downloads
5
Maintainers
Readme
almighty-markov-words
Generate words based off an input list (i.e. list of names)
Installing
npm install --save almighty-markov-words
Usage
const Markov = require('almighty-markov-words').default
// or
import Markov from 'almighty-markov-words'
const data = [
/* insert a few hundreds/thousands sentences here */
]
// Build the Markov generator
const markov = new Markov(data)
// Generate a word
const result = markov.generate()
console.log(result)