generates markov chain words powered by kuromoji.js
npm install markov-chain-kuromoji
process.env.KUROMOJI_DIC_PATH
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);
});