Gramatical correction implementation