How does Dr. Eliza work?

The specific algorithms that Dr. Eliza uses to solve your problems are a carefully guarded secret. The overall methods are well known in knowledge engineering circles, but there are countless new "little tricks" that make this all work well.