RiveScript is a Perl module that allows you to rendering intelligence very easily.
# Create a new RiveScript interpreter.
my $rs = new RiveScript;
# Load some replies.
# Load in another file.
# Stream in even more RiveScript code.
$rs->stream (q~! global split_sentences = 1~);
# Sort all the loaded replies.
# Grab a response.
my @reply = $rs->reply ('localscript', 'Hello RiveScript!');
print join ("n", @reply), "n";
RiveScript is a simple input/response language. It has a simple, easy-to-learn syntax, yet it is more powerful even than Dr. Wallace's AIML (Artificial Intelligence Markup Language). RiveScript was created as a reply language for chatterbots, but it has been used for more complex things above and beyond that.