The function f(x) takes a word as input and returns the word if it corresponds to a place, leaving all other inputs as undefined.

