jsmegahal
Implementation of the MegaHAL AI in JS for consumption with node.js
Installation
npm install jsmegahal
Sample Usage
jsmegahal = ; //you can pass in the markov order you want to use. it defaults to 4.var megahal = 4; //add a single sentencemegahal; //add a lot of datamegahal; //get a string based on the markov data -- this picks a random token in the sentenceconsole; //get a string based on the markob data -- this can take a token, or nothing at allconsole;