grammarian (n.)
late 14c., "writer on (Latin) grammar; philologist, etymologist;" in general use, "learned man," from Old French gramairien "wise man, person who knows Latin; magician" (Modern French grammairien), agent noun from grammaire (see grammar).