Etymology is the study of the historical development and origin of words, tracing their meanings and forms through time. Analogy compares similar things, phonology studies speech sounds, and allegory is a literary device - none refer to word origins.