"Provide explanations to help them understand their mistakes"? Maybe. Like I know how to write programs that, especially if you're talking about second language learners, can say, hey, look, it's like the sentence has an agreement error or something and you can like flag it. >>