The function f(x) appears to return the input word if it is a country name, and 'undefined' otherwise.

