eliza-core
TypeScript icon, indicating that this package has built-in type declarations

1.2.0-beta.0 • Public • Published

Eliza: Implementation for JavaScript

NPM version tested with jest

A JavaScript(TypeScript) code version of Eliza ported from Charles Hayden's Java implementation: http://chayden.net/eliza/Eliza.html.

This rendition of ELIZA in TypeScript/JavaScript is designed as a complete and faithful implementation of the original design that was described by Joseph Weizenbaum: https://doi.org/10.1145/365153.365168. The psychologist script that was attached on that paper is included as well, though the format is a little revised for clarity and the possibility in other languages that is not segmented with spaces in design, such as Japanese and Chinese. Additionally, a Japanese script package as a deliberate example for this interpreter has been released as well: https://www.npmjs.com/package/eliza-jp

Usage

const eliza = require('eliza-core');
const util = require('eliza-util');
loadEliza(util.fromFile(util.SCRIPT_PATH + '/eliza.script')).then(eliza => {
  console.log(eliza.processInput('Hello, Eliza'));
});

Package Sidebar

Install

npm i eliza-core

Homepage

eliza.js.org

Weekly Downloads

0

Version

1.2.0-beta.0

License

MIT

Unpacked Size

127 kB

Total Files

91

Last publish

Collaborators

  • chigix