Grammatically has 2 different meanings across 1 category:
Adverb
in a grammatical manner
"this child already speaks grammatically"