The set of rules that govern how words are put together to form sentences in a language
Examples:
The teacher explained the basic rules of grammar to the class.Grammar is the set of rules that govern how words are used.She studied grammar extensively to improve her writing skills.
Synonyms:
Antonyms:
Syntax
The arrangement of words and phrases to create well-formed sentences in a language.
Examples:
The syntax of the programming language was elegant.Syntax rules differ between spoken and written forms.He struggled to grasp the syntax of ancient texts.
Synonyms:
Antonyms:
Ways to tell them apart:
Syntax refers to the arrangement of words to form a sentence, while grammar covers the whole set of rules including syntax, morphology, and punctuation.
To remember the difference, think of syntax as a subset of grammar focused on sentence structure.
Grammar can include syntax, but also deals with word forms and sentence meanings.
Syntax is about the order of words, while grammar is about rules that govern how language works.
Imagine syntax as the blueprint of sentence construction and grammar as the blueprint of the entire language system.