grammarian

A person who studies and explains the rules of language.