grammar vs semantics

grammar

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

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

  • A formal system defining a formal language 

  • A formal system specifying the syntax of a language. 

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

  • A grammar school. 

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

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

semantics

noun
  • The study of the relationship between words and their meanings. 

  • A branch of linguistics studying the meaning of words. 

  • The individual meanings of words, as opposed to the overall meaning of a passage. 

  • The meaning of computer language constructs, in contrast to their form or syntax. 

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