1.0.3 • Published 8 years ago

treta v1.0.3

Weekly downloads
4
License
MIT
Repository
github
Last release
8 years ago

Treta has been planted!

const Tretas = require('treta');

// if you want to train
const treta = new Tretas();

treta.learn('phrase with treta', 'treta');
treta.learn('another phrase with treta', 'treta');
treta.learn('another other phrase with treta', 'treta');
treta.learn('phrase without treta', 'noTreta');

// for save your train
treta.saveData('data');
// => data.json

// else - use a data.json

const treta = new Tretas().loadData('data');

// return if the phrase have or not Treta (treta or noTreta)
treta.analizer('kind of treta');