In AIML, WordNet could be used for lexical chaining, based on the relationships between nouns, a kind of faceted classification using antonyms, synonyms, meronyms, hypernyms, holonyms, etc. What this means is that “supermarket” could be recognized as “shopping”, “soccer” could be recognized as “sports”, and “Chappie” could be recognized as “movie”. Lexical chaining is just one kind of semantification, or conceptualization technique, and is not built into AIML, so requires customized programming.
BTW, the new Microsoft Cortana API at(Language Understanding Intelligent Service) is much more of a “do-engine”, focused on intent, than AIML, and unlike AIML uses machine learning for inexact matching.
See also my quick and dirty webpages: