The rule applied by f(x) appears to be that it returns 1 for words that refer to cities in the United States, and 0 for words that refer to cities outside of the United States.

