Build a Chatbot!
In this assignment you will modify the Python chatbot we saw in class (posted on Blackboard). First you must choose a personality for your chatbot — pick a character from a movie or TV show. Then do the following:
- Implement at least 15 pattern-based responses using a variety of the regular expression features learned in class. Remember to account for the different ways a user might express something that should trigger a rule. At least 5 of these should use some form of grouping and replacement.
- Implement a randomized default response if none of the above match.
You will be presenting your chatbot in class, so prepare a brief set of inputs to show the class the features of your chatbot.
You are encouraged to have fun with this – the above is only a minimum set of requirements. Feel free to do more!
When you have completed your chatbot, submit it on Blackboard. If you work with a partner be sure that both names in a comment at the top of the file – only one of you need to submit it.
In order to work on your chatbot and test it, I recommend you download and use Thonny.