on Writing Forward:
Let’s get technical for a minute. What, exactly, is grammar?
Here’s what Wikipedia says:
In linguistics, grammar is the set of structural rules that govern the composition of sentences, phrases, and words in any given natural language. The term refers also to the study of such rules….Linguists do not normally use the term to refer to orthographical rules, although usage books and style guides that call themselves grammars may also refer to spelling and punctuation.