(1):

(n.) One who writes on, or teaches, grammar.

(2):

(n.) One versed in grammar, or the construction of languages; a philologist.