README
MiaBot
A Clean Language Coach Simulator for JS
Input a string, get a clean language coaching question in return!
Demo
See Github for a demo app and more.
Usage
Requires Node 6.0+
const mia = require("miabot")
const string = "some text here"
const options = {
'capitalise': false, // capitalise the a in 'and...'
'debug': false, // print debug info to console
'quote': false, // place quotation marks around the clients string
'rv': false // toggle random verb form flipping between gerund and infinitive, false uses clients own verb form
}
console.log(mia(string, options))
or if you want to be really fancy about it, do:
let mia = require("miabot")("Call me Ishmael...",{'capitalise': false, 'debug': false, ...})
console.log(mia)
Acknowledgements
Inspired by Eliza
Depends on Speakeasy-nlp and nlp_compromise
License
MIT