Read my book

I wrote books about Webpack and React. Check them out!
Showing posts with label eliza. Show all posts
Showing posts with label eliza. Show all posts

Monday, January 11, 2010

Placidity - Part 10, Eliza

I know I mentioned in the first part of this series that I am not going to write an Eliza bot.

The truth is that it would be a great feature to have, for lulz at least. And besides it's a great part of the history of computing. :) It also forces us to re-evaluate the design a bit as the bot has to be able to run as an entity of its own.

Instead of coming up with my own implementation of Eliza, I'm going to use an existing one I found here. Even though the code is old, it works after the references to a deprecated module, whrandom, are replaced with references to random.

I'm going to start out by writing a scenario describing how Eliza should work user interface wise. As it's not quite possible to predict what she will answer, I will define concept of ellipsis (...) which allows the input to be anything. After this I will look into encapsulating the bot in a command of its own and make the adjustments needed to the interpreter.