sparkai
v0.1.3
Published
AI
Downloads
5
Readme
Spark
AI In Javascript
Get Started
npm install sparkai
var Spark = require('sparkai');
Documentation
Markov Chains
Spark comes built in with a Markov Chain generator.
Example:
var Spark = require('sparkai');
var bot = new Spark.MarkovChain({
sentences: 1 // number of sentences (default = 3)
});
bot.train(['some data', 'more data']); // can be an array, or a single string
console.log(bot.generate()); // generates text
License
Licensed under the MIT License