The function applies a set of predefined rules to map words to their descriptions.
