grammatically
adv. manner B2 Upper Intermediate UK //ɡɹæmˈætɪkli// gram·mat·i·cal·ly
adv. in a way that follows the rules of grammar. You use this to describe how a sentence is built or how someone speaks.
adv. in a manner that conforms to the rules of a specific language's grammar. Often used to describe the structure of a sentence or the correctness of a linguistic construction.
The sentence is grammatically correct, but it sounds a bit strange.
While the student's ideas were clear, her writing was often grammatically incorrect because she forgot to use articles.
The linguist argued that the phrase was grammatically possible within the dialect, even though it violated the standard rules of the national language.