f(x) takes a word x and returns the language spoken in the place denoted by x, if such a place exists. If the input word does not denote a place, the function returns "undefined".

