grammarian

ɡrəˈmɛːrɪən

noun

a person who studies and writes about grammar.