High level abstraction of maslow pyramid of needs, for use with AI
$ npm install --save maslow
const {Maslow} = require('maslow');
let pyramidStage = 'physiological';
let trainingData = [
{
"phrase": "cannot breathe",
"need": "air"
},
{
"phrase": "need to drink",
"need": "water"
},
{
"phrase": "need to eat",
"need": "food"
}
];
let person = new Maslow(pyramidStage, trainingData);
See the test.js for example of function calls to the library
Run node test.js
. If you get no errors and see the full scenario text play out then everything is fine.
ISC © Wade Penistone