Grammar and semantics are closely related but also distinct. Grammar is concerned with the formal properties of language, focusing on categories such as tense, gender, number, and syntactic functions. These categories are indicated through form words, morphemes, or word order. However, the relationship between grammatical and semantic categories is complex, as grammatical categories do not always correspond directly to semantic distinctions. For example, notions like gender, number, and person vary across languages and do not always map neatly to concepts like biological sex or quantity. This demonstrates the intertwined but separate nature of grammar and semantics.