The function does not always apply this rule perfectly, as it fails to identify "Tokyo" as a city in Japan and "Chichen Itza" as a Mexican pyramid.