The function applies a rule based on word frequency, but there are some edge cases where the rule does not hold.
