Problems with a Chatbot

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By aagoldberg

I’m building a chatbot for one of my games, and I’ve run into a few problems. My chatbot works by checking user input (in LineEdit), and matching each word to a tag in a dictionary (like hi would be tagged to greeting, why would be tagged to question). Hypothetically, the tags would be appended to an empty list (greeting question), which would then be checked against another dictionary, which would have combinations of tags matched to responses. The problem with this is that the tags being appended to the list are appended at different times, since Godot does not support the .extend() feature, and the whole chatbot doesn’t work. I know this is a big ask, but does anyone have any ideas on either how to fix this or to change it completely? I’m open to any suggestions and thanks in advance.