What is a treatise on the principles of language; a book containing the principles and rules for correctness in speaking or writing called?

grammar — A treatise on the principles of language; a book containing the principles and rules for correctness in speaking or writing. (Webster's 1913.)

Sources