The study of the structure of words, including how words are formed and how they can be inflected or changed.