AIML Unicode for Node.js which supports non-English language (now it is only Thai) based on aimlinterpreter and aimlparser. This is the upgrade version of aimlparser. There are some bugs appeared in the latest version of AIML Intepreter and AIML Parser bu
npm install aimlunicode
$ npm install aimlunicode
`
Dependencies
`
fs
dom-js
`
Description
AIMLUnicode for Node.js which supports non-English language (now it is only Thai) based on aimlinterpreter and aimlparser. This is the upgrade version of aimlparser. There are some bugs appeared in the latest version of AIMLIntepreter and AIMLParser but already fixed in this npm package.
Latest AIMLIntepreter and AIMLParser bugs:
AIMLIntepreter appears a bug in condition AIML tag.
AIMLParser appears a bug in non-English Language Reading.
About aimlinterpreter
- https://www.npmjs.com/package/aimlinterpreter
- https://github.com/raethlein/AIML.js
About aimlparser
- https://www.npmjs.com/package/aimlaimlparser
- https://github.com/ingkwanv/aimlparser
Example XML File:
`
สวัสดี
สบายดีไหม
Hello
How Are You
`
Example JS File:
`
AIMLUnicode = require('./AIMLUnicode');
var aimlUnicode = new AIMLUnicode({name:'AIMLUnicode', age:'21'});
AIMLUnicode.loadAIMlFile(['./test.aiml.xml']);
var callback = function(answer, wildCardArray, input){
console.log(answer + ' | ' + wildCardArray + ' | ' + input);
};
AIMLUnicode.findAnswer('What is your name?', callback);
AIMLUnicode.findAnswer('My name is Ben.', callback);
AIMLUnicode.findAnswer('What is my name?', callback);
`
Supported AIML tags:
`
TEXT
A B C
PATTERN TEXT
TEXT
TEXT
TEXT TEXT TEXT
TEXT TEXT TEXT
``