grammatical (adj.)
1520s, "of or pertaining to grammar," from Middle French grammatical and directly from Late Latin grammaticalis "of a scholar," from grammaticus "pertaining to grammar" (see grammar). Related: Grammatically (c. 1400).