For linguists, grammar refers to cognitive information underlying language use. Speakers of a language have a set of internalized rules for using that language. These rules constitute grammar, and the vast majority of the information in the grammar is—at least in the case of one's native language—acquired not by conscious study or instruction, but by observing other speakers. Much of this work is done during early childhood; learning a language later in life usually involves a greater degree of explicit instruction.
The term "grammar" can also be used to describe the rules that govern the linguistic behaviour of a group of speakers. The term "English grammar", therefore, may have several meanings. It may refer to the whole of English grammar, that is, to the grammars of all the speakers of the language, in which case, the term encompasses a great deal of variation.Alternatively, it may refer only to what is common to the grammars of all, or of the vast majority of English speakers (such as subject–verb–object word order in simple declarative sentences). Or it may refer to the rules of a particular, relatively well-defined variety of English (such as standard English for a particular region).
A specific description, study or analysis of such rules may also be referred to as a grammar. A reference book describing the grammar of a language is called a "reference grammar" or simply "a grammar" (see History of English grammars). A fully explicit grammar that exhaustively describes the grammatical constructions of a language is called a descriptive grammar. This kind of linguistic description contrasts with linguistic prescription, an attempt to discourage or suppress some grammatical constructions, while promoting others. For example, preposition stranding occurs widely in Germanic languages and has a long history in English. John Dryden, however, objected to it (without explanation), leading other English speakers to avoid the construction and discourage its use.
Outside linguistics the term grammar is often used in a rather different sense. In some respects, it may be used more broadly, including rules of spelling and punctuation, which linguists would not typically consider to form part of grammar, but rather as a part of orthography, the set of conventions used for writing a language. In other respects, it may be used more narrowly, to refer to prescriptive grammar only and excluding those aspects of a language's grammar that are not subject to variation or debate. Jeremy Butterfield claimed that, for non-linguists, "Grammar is often a generic way of referring to any aspect of English that people object to."