The function applies a rule that takes a word as input and returns a label or category related to the word, based on its location or origin.
