Yo whats up. I need help building a chat bot in python.
I put together a 'special engine' (terms I found while searching the web- special and matrix engine(they translate user input))
basicly the special engine is a bunch of sentences that each have a few responses attached to them. If you say the sentence it uses random.choice to pick one of the responses and then sends it to you.
then I have a past response engine. It records what you say and what the responses were, and if you say it again it will give you the same answer it gave you last time but with some text at the front like : 'I already told you that ...'.
But what im trying to figure out is how to build some code that can understand and respond to the input in different ways.
Take the word hate: If you say I hate you, it recognizes hate and responds with anger, but if you say I hate myself it still responds with anger because its only recognizing the word hate. The rest of the sentence does not matter.
So can you guys please give me any tips to help me design my chatbot?