Syntax; the grammar of how words combine in sentences.
Morphology, accidence; the grammatical science of word-forms and inflection.
Rules or principles; specifically the rules of grammar.