grammar vs syntactics

grammar

noun
  • A formal system specifying the syntax of a language. 

  • The basic rules or principles of a field of knowledge or a particular skill. 

  • A formal system defining a formal language 

  • A system of rules and principles for speaking and writing a language. 

  • A grammar school. 

  • The study of the internal structure of words (morphology) and the use of words in the construction of phrases and sentences (syntax). 

  • A book describing the rules of grammar of a language. 

  • Actual or presumed prescriptive notions about the correct use of a language. 

syntactics

noun
  • syntax 

How often have the words grammar and syntactics occurred in a corpus of books? (source: Google Ngram Viewer )