The branch of grammar that studies the smallest meaningful units of languages and their formation into words, hence, also the structure of words.