grammar
This term encompasses both the abstract internal logic of a language and the formal academic study of those rules. It carries a dual connotation: it can refer to the prescriptive standards of correctness taught in schools or the descriptive patterns of how people actually speak in real-world settings.
As a noun, it is typically used as an uncountable mass noun when referring to the system of rules. However, it becomes countable when referring to a specific textbook or a specific linguistic system among many, such as when comparing the grammars of different languages.
Meanings
The whole system and set of rules about how words are used to form sentences in a language.
The teacher spent the lesson explaining English grammar.
Examples
The teacher spent the lesson explaining English grammar.
I bought a comprehensive grammar to help me learn Spanish.
The local dialect has its own unique grammar.