The rule implemented by f(x) appears to be returning the capital city of the country where the input word is located.
