eliza_chat 1.0.1 copy "eliza_chat: ^1.0.1" to clipboard
eliza_chat: ^1.0.1 copied to clipboard

A Dart version of the classic Eliza chatbot. Eliza chat is a dart implementation of the ELIZA chatbot designed by Joseph Weizenbaum, in the sixties. ELIZA was one of the first chatbots that ever existed.

example/eliza_chat_example.dart

import 'dart:io';

import 'package:eliza_chat/eliza_chat.dart';

void main() {
  var eliza = Eliza();
  print(eliza.getHeader());
  print(eliza.getInitial());

  while (true) {
    stdout.write("You: ");
    var input = stdin.readLineSync();
    if (input == null) {
      break;
    }
    var output = eliza.processInput(input);
    if (output == null) {
      break;
    }
    print("Eliza: $output");
  }
  print(eliza.getFinal());
}
3
likes
150
points
48
downloads

Publisher

unverified uploader

Weekly Downloads

A Dart version of the classic Eliza chatbot. Eliza chat is a dart implementation of the ELIZA chatbot designed by Joseph Weizenbaum, in the sixties. ELIZA was one of the first chatbots that ever existed.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

More

Packages that depend on eliza_chat