The study of the structure, principles, and rules governing the arrangement of words and phrases in a language.