Correcting grammatical syntax