markov-chain-kuromoji
v1.0.1
Published
generates markov chain words powered by kuromoji.js
Downloads
13
Readme
markov-chain-kuromoji
generates markov chain words powered by kuromoji.js
Install
npm install markov-chain-kuromoji
Usage
var fs = require('fs');
var MarkovChain = require('markov-chain-kuromoji');
var markov = new MarkovChain(fs.readFileSync('sample.txt', 'utf8'));
markov.start(5, function(output) {
console.log(output);
});