detect if a combination of string objects from an array matches against any commands
问题 Please be patient and read my current scenario. My question is below. My application takes in speech input and is successfully able to group words that match together to form either one word or a group of words - called phrases; be it a name , an action , a pet , or a time frame. I have a master list of the phrases that are allowed and are stored in their respective arrays. So I have the following arrays validNamesArray , validActionsArray , validPetsArray , and a validTimeFramesArray . A new