class NaturalLanguageUnderstanding:

    dictionary = {
        "Cześć," : "welcomemsg()",
        "imię?" : "request(name)"
    }

    def convertTextToFrame(self, text: str):
        frame = ""
        text = text.split(" ")
        for word in text:
            if(word in self.dictionary):
                    frame+=self.dictionary[word]+"&"
        return frame[0:-1]