Etymology
gook (n.)
1899, U.S. military slang for "Filipino" during the insurrection there, probably from a native word, or imitative of the babbling sound of a strange language to American ears (compare barbarian). The term goo-goo eyes "soft, seductive eyes" was in vogue c. 1900 and may have contributed to this somehow. Extended over time to "Nicaraguan" (U.S. intervention there early 20c.), "any Pacific Islander" (World War II), "Korean" (1950s), "Vietnamese" and "any Asian" (1960s).
Related entries & more 
wog (n.)
c. 1920, "a lower-class babu shipping clerk" [Partridge]; but popularized in World War II British armed forces slang for "Arab," also "native of India" (especially as a servant or laborer), roughly equivalent to American gook; possibly shortened from golliwog. Many acronym origins have been proposed, but none has been found satisfactory. Related: Wogland.
Related entries & more