The function f(x) seems to associate words with their related geographical locations. For example, cities are associated with their respective countries, and historical figures are associated with the countries they are most known for.

