grammarian (grammar + -ian; agent_person)
A person who studies grammar