Markov chains generate senseless text for the fun of it.
npm install mtextTo start, construct a new markov chain:
``js`
const mtext = require("mtext")
const myChain = mtext("my cool text here")
Then, train the chain on the data you passed.
`js`
myChain.train()
Finally, generate text of any length:
`js``
// Generate text of 10000 words based of inputs
myChain.generateText(10000);