Grammar is the system of patterns and constraints that organizes a language, especially the formation of words and their combination into phrases, clauses, and sentences. The term also denotes the study of these patterns or a written description of them, such as a reference grammar. In linguistics, grammar is generally understood as a system underlying language use, not simply a collection of rules about correct writing. Its scope varies: narrower definitions emphasize morphology and syntax, while broader definitions also include sound structure and aspects of meaning.
Components and structural organization
Morphology examines the internal structure of words. It distinguishes inflection, which expresses grammatical information without ordinarily creating a new lexical item, from derivation, which forms new words. In English, the plural ending in cats is inflectional, whereas -ness in kindness is derivational. Languages differ considerably in how much information they express through word structure.
Syntax concerns how words combine and how the resulting units relate. In “The child opened the door,” word order helps distinguish the subject from the object. Other languages rely more heavily on case marking, agreement, or combinations of these devices. Grammatical categories such as tense, number, person, and gender do not have identical functions or distributions across languages.
Grammar is hierarchical rather than merely sequential. In “the student with the red notebook,” the words form nested units, and the entire phrase can function as a subject. This structure helps explain agreement and ambiguity: “old men and women” may describe elderly men together with women of unspecified age, or elderly people of both groups.
Phonology studies the organization of speech sounds and, in signed languages, the organization of contrastive formational units. Semantics concerns meaning, while pragmatics examines interpretation in context. These domains interact with grammar, although theoretical frameworks draw their boundaries differently.
Grammar, usage, and correctness
Descriptive grammar records and analyzes patterns found in a language or variety. Prescriptive grammar establishes conventions regarded as appropriate for particular settings, especially formal writing and institutional communication. These activities answer different questions: what speakers systematically do, and what a community or institution expects them to do.
A construction can be grammatical in one variety but excluded from another variety’s formal standard. For example, some varieties of English permit negative concord, in which multiple negative expressions convey a single negation. Such patterns have regular constraints; they are not evidence that speakers lack grammar. The study of dialects and sociolinguistics distinguishes structural variation from judgments associated with prestige and social identity.
Grammaticality also differs from acceptability. A structurally well-formed sentence may be difficult to understand because it is long, ambiguous, or contextually unusual. Conversely, fragments can be entirely appropriate in conversation. Grammar does not determine every aspect of effective communication.
Speech, signing, writing, and acquisition
Spoken languages have grammar regardless of whether they possess a writing system. Sign languages likewise have systematic word formation and sentence structure, using manual and nonmanual features. Grammar therefore cannot be equated with punctuation or spelling. Those written conventions principally belong to orthography, although they may signal grammatical distinctions.
Through language acquisition, children develop substantial grammatical knowledge without first learning explicit terminology. A child may produce goed instead of went, extending a productive past-tense pattern to an irregular verb. Such forms demonstrate pattern learning rather than random imitation.
Explicit grammatical instruction in education serves different purposes, including analysis of sentence structure and familiarity with formal conventions. Knowing labels such as “relative clause” is distinct from the largely implicit knowledge used to produce and understand utterances. Additional-language learners may combine explicit instruction with learning through exposure and interaction.
Historical development
Systematic grammatical analysis developed in several intellectual traditions. Pāṇini’s Aṣṭādhyāyī, generally dated to the first millennium BCE, presents a highly organized rule system for Sanskrit. It remains important in the history of linguistic analysis because of its detailed treatment of word formation and rule interaction.
In Ancient Greece, grammatical inquiry was connected with philosophical investigation and interpretation of literary texts. Greek and later Latin scholarship helped establish grammatical terminology that influenced European teaching. During the Middle Ages, grammar was taught alongside logic and rhetoric in the trivium.
Modern linguistic research broadened analysis beyond classical written languages. Documentation of diverse languages challenged the assumption that categories developed for Greek or Latin could be transferred unchanged to every language.
Theoretical approaches and variation
Different theories explain grammatical organization in different ways. Generative grammar seeks explicit systems capable of characterizing possible linguistic structures, often treating grammar as part of human mental knowledge. Functional approaches emphasize relationships between structure, meaning, discourse, and communicative use. Construction grammar treats conventional pairings of form and meaning, from words to sentence patterns, as central units.
Linguistic typology compares structural properties across languages. Familiar distinctions include predominant subject–verb–object and subject–object–verb orders, but such labels describe tendencies rather than every sentence. Languages also differ in inflection, agreement, and whether subjects can remain unexpressed. No single grammatical feature provides a general measure of a language’s complexity.
Grammar changes over time. Historical linguistics investigates developments such as the loss of inflectional endings and the emergence of new constructions. Change can redistribute grammatical information rather than simply eliminate it.
Evidence and computational applications
Grammatical research uses recorded language, elicited examples, speaker judgments, experiments, and corpus linguistics. Each provides different evidence: a corpus reveals attested patterns and frequencies, but absence from a corpus does not by itself establish impossibility.
In natural language processing, grammatical analysis supports tasks such as parsing and identifying relationships between words. In a programming language, a formal grammar specifies permitted syntactic structures; separate rules determine their interpretation and execution. Unlike natural-language grammars, these systems are generally deliberately designed and explicitly specified.