0.0.4 • Published 1 year ago

almighty-markov-words v0.0.4

Weekly downloads
-
License
CC0-1.0
Repository
github
Last release
1 year ago

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)