 As the Empire of Japan extended to Korea and to Taiwan, the term "naikokujin" ("inside country people") came to refer to nationals of other imperial territories.While other terms fell out of use after World War II, "gaikokujin" remained the official term for non-Japanese people.Some hold that the modern "gaijin" is a contraction of "gaikokujin".