Applications – Letter correction checking.

I'm doing an Android letter tracking application
But I am looking for a way to verify if the child wrote the letter correctly or not to give him a message of success
Could someone tell me how to do that …

No specific code is required, just one example would suffice, thank you.