What choices does a chatbot have when it matches several responses?
1. Randomly choose a response.
2. Rank responses by the most words matched?
For example:
VISITOR: Hello, can I have a computer?
CHAT: PERHAPS YOU DON'T WANT TO*
RANK: 2
WITH: CAN I
CHAT: DO COMPUTERS WORRY YOU?
RANK: 1
WITH: COMPUTER
CHAT: HOW DO YOU DO? PLEASE STATE YOUR PROBLEM.
RANK: 1
WITH: HELLO
This implementation is in progress. It lets you choose: Ranked or Random,
and remembers the choice you made. However, if there is a tie, it chooses Random.
Ranked is more accurate, but it chooses the best response repeatedly which is a drawback.
Random is less accurate, but it varies the responses, which is a benefit.
http://chatbot.altervista.org/implementation