The function f(x) takes a word as input and returns the capital city associated with that word, but only for words that refer to geographic locations or cities.

