Did you mean “grammatically”?
In a way that relates to grammar or the rules of grammar
The correct word is grammatically
The correct pronunciation is ɡrəˈmatɪkli