Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/codeanticode/eliza
The classic Eliza psychologist program, implemented as a Processing library.
https://github.com/codeanticode/eliza
Last synced: 24 days ago
JSON representation
The classic Eliza psychologist program, implemented as a Processing library.
- Host: GitHub
- URL: https://github.com/codeanticode/eliza
- Owner: codeanticode
- License: other
- Created: 2013-08-30T00:35:39.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2019-07-28T19:15:08.000Z (over 5 years ago)
- Last Synced: 2023-10-25T17:09:28.820Z (about 1 year ago)
- Language: Java
- Homepage: http://processing.andrescolubri.net/libraries/eliza/
- Size: 307 KB
- Stars: 167
- Watchers: 15
- Forks: 64
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: license.txt
Awesome Lists containing this project
README
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.html2) Processing Library Template:
https://github.com/processing/processing-library-templateINSTRUCTIONS
The library is easy to use. Just import it, and then create an Eliza object:
```java
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:
```java
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.txtFURTHER 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