@rfprodz/client-util-eliza
TypeScript icon, indicating that this package has built-in type declarations

1.4.1 • Public • Published

Angular Eliza Chatbot Module

This library was generated with Nx.

Description

The Angular chatbot service based on an early natural language processing program called Eliza.

ELIZA is an early natural language processing computer program created from 1964 to 1966 at the MIT Artificial Intelligence Laboratory by Joseph Weizenbaum. Created to demonstrate the superficiality of communication between humans and machines, Eliza simulated conversation by using a "pattern matching" and substitution methodology that gave users an illusion of understanding on the part of the program, but had no built in framework for contextualizing events.

Source and more information about the Elisa program: https://en.wikipedia.org/wiki/ELIZA

Usage

Within the development workspace

Import the charts module

import { AppElizaModule } from '@app/client-util-eliza';

Example client.module.ts

As an external package

Install the package

yarn add @rfprodz/client-util-eliza @angular/core

With the default configuration

Import in your application root module

import { AppElizaModule } from '@rfprodz/client-util-eliza';

@NgModule({
...
  imports: [
    ...
    AppElizaModule.forRoot(),
    ...
  ],
...
})
export class AppModule {
  ...
}

With a custom configuration

Import in your application root module

import { AppElizaModule, IElizaData } from '@rfprodz/client-util-eliza';

const customElizaData: IElizaData = {
  ...
};

@NgModule({
...
  imports: [
    ...
    AppElizaModule.forRoot(customElizaData),
    ...
  ],
...
})
export class AppModule {
  ...
}

Chatbot component

Example chatbot-root.component.ts

Developer commands reference

npx nx run tools:help --search client-util-eliza:

References

Package Sidebar

Install

npm i @rfprodz/client-util-eliza

Weekly Downloads

55

Version

1.4.1

License

MIT

Unpacked Size

312 kB

Total Files

42

Last publish

Collaborators

  • rfprodz