Grammar is the set of principles and patterns that govern how words are formed and combined to convey meaning in a language. It can be treated as an object of study, a description of native speakers' knowledge, or a set of rules taught in schools. Historically, some of the earliest formal reflections on grammar came from classical traditions; for example, the Ancient Greeks discussed the subject as grammatikē tékhnē, and other cultures developed their own analytical methods to record language structure.

Core components of grammar

Broadly speaking, grammatical analysis looks at several interrelated systems rather than a single list of rules. Key areas include:

  • Morphology — how words are formed from smaller meaningful parts such as roots and affixes (for example, plural -s or past -ed in English).
  • Syntax — how words and phrases are arranged to make well-formed sentences; this is often what people mean when they refer to sentence structure.
  • Phonology and orthography — the sound system of a language and its written representation, which interact with grammar in predictable ways.
  • Semantics and pragmatics — how grammatical choices affect meaning and how context influences interpretation.

History and traditions

Systems for analyzing grammar have been developed independently by many linguistic cultures. Ancient grammarians framed grammar as a technical craft — a craft of letters — while scholars in South Asia produced detailed descriptive works on Sanskrit. Modern linguistics treats grammar as the systematic knowledge speakers have of their language, studied using empirical methods. When presented for learners, grammar often appears in textbooks or guides; such a manual version emphasizes standard forms and conventional usage.

Practical uses and examples

Understanding grammar is useful across many domains. Language teachers use grammar to explain patterns and support learners; editors apply it to ensure clarity and consistency; computational linguists encode grammatical rules to build parsers and language models. In daily life, most people internalize a working grammar in childhood — this native competence guides spoken fluency even when it differs from written norms.

Important distinctions

Several distinctions are central when discussing grammar. Descriptive grammar documents how language is actually used, while prescriptive grammar recommends how some people believe language should be used. The idea of competence versus performance separates a speaker's internal knowledge from their real-time language use. Linguists also contrast individual dialect grammars and standardized forms promoted in education and media. For a general overview of the comparative study, see resources on the study of language.

Finally, grammar is not a fixed code but a living system: it changes over time, varies by community, and adapts to new communicative needs. Whether approached as a descriptive science, a teaching tool, or a social norm, grammar remains central to how humans create and interpret complex messages.