The function applies its rule on the names of geographical locations. The rule does not hold when the input is not a geographical location, like "Fidelio," "Bear," "López Obrador," or "The Barber of Seville."