simple-markov
v1.0.2
Published
Generate text using a Markov chain
Downloads
5
Readme
simple-markov
Generate text using a Markov chain
Installation
$ npm install --save simple-markov
Usage
var SimpleMarkov = require('simple-markov');
var markov = new SimpleMarkov(3, 'I really like markov chains. They make generating text very hilarious.');
markov.learn('We can keep making it learn, too.');
console.log(markov.generateText(100));
License
MIT © Brian Simon