net.chayden.eliza
Class ElizaProc

java.lang.Object
  |
  +--net.chayden.eliza.ElizaProc

public class ElizaProc
extends java.lang.Object

This class provides a simplified interface for using the Eliza library as a line processor.

Author:
Ryan Michela

Constructor Summary
ElizaProc(java.lang.String scriptPath)
          Builds an ElizaProc object.
 
Method Summary
 java.lang.String mutate(java.lang.String input)
          Mutates one line of text using the Eliza algorithm.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ElizaProc

public ElizaProc(java.lang.String scriptPath)
Builds an ElizaProc object.

Parameters:
scriptPath - path of the script file to load.
Method Detail

mutate

public java.lang.String mutate(java.lang.String input)
Mutates one line of text using the Eliza algorithm.

Parameters:
input - The string to mutate.
Returns:
The resuting string.