New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

aimlparser

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aimlparser

AIML parser which supports non-English language based on aimlintepreter.

latest
Source
npmnpm
Version
1.0.5
Version published
Maintainers
1
Created
Source

aimlparser

AIML parser for Node.js which supports non-English language based on aimlinterpreter

About aimlinterpreter

  • https://www.npmjs.com/package/aimlinterpreter
  • https://github.com/raethlein/AIML.js

Sample

test-aiml.xml

<?xml version="1.0" encoding="UTF-8"?>
<aiml version="2.0">
    <category>
        <pattern>ดีจ้า</pattern>
        <template>สวัสดี</template>
    </category>

    <category>
        <pattern>HELLO</pattern>
        <template>Hello!</template>
    </category>
</aiml>

app.js

This will return 'Hello!'

const AIMLParser = require('aimlparser')
const aimlParser = new AIMLParser({ name:'HelloBot'})
aimlParser.load(['./test-aiml.xml'])
aimlParser.getResult('Hello', (answer, wildCardArray, input) => {
    console.log('Result = '+ answer)
})

Keywords

npm

FAQs

Package last updated on 20 Feb 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts