Code Monkey home page Code Monkey logo

eliza's Introduction

This is a Processing library based on the Java implementation of the Eliza program by Charles Hayden. Hayden's code is a complete and faithful implementation of the original program described by Joseph Weizenbaum in the Communications of the ACM in January 1966.

ACKNOWLEDGMENTS

  1. Charles Hayden's Java implementation of Eliza: http://chayden.net/eliza/Eliza.html

  2. Processing Library Template: https://github.com/processing/processing-library-template

INSTRUCTIONS

The library is easy to use. Just import it, and then create an Eliza object:

import codeanticode.eliza.*;

Eliza eliza;
eliza = new Eliza(this);

String response = eliza.processInput("Hello");
println(response);

You can use the readScript() function to change the script that Eliza uses to construct its answers:

eliza.readScript("script");
eliza.readScript("http://chayden.net/eliza/script");

To go back to the default script that is loaded when Eliza is initialized, call the readDefaultScript() function.

For detailed instructions on how to modify the script file that determines Eliza's "behavior", read the following notes by Charles Hayden:
http://chayden.net/eliza/instructions.txt

FURTHER REFERENCES

  1. Wikipedia article about Eliza: http://en.wikipedia.org/wiki/ELIZA

  2. Article from the Jul-Aug 1977 issue of the Creative Computing magazine, with a complete listing in Altair BASIC of a version of Eliza by Jeff Schrager: http://vintagecomputer.net/cisc367/Creative%20Computing%20Jul-Aug%201977%20Eliza%20BASIC%20listing.pdf

eliza's People

Contributors

codeanticode avatar jpvega-github avatar prisonerjohn avatar reas avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.