Skip to content

almightynassar/markov-words

Repository files navigation

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)

About

Generate words based off an input list (i.e. list of names)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published