lundi 1 juin 2015

Check for text matching with leniency?

I'm working on a application that reads a trivia question to the user and then asks the user to type an answer to see if they are correct. I want to be able to compare the user answer to the actual answer to see if there if they match to a certain degree with some leniency. For example, if an answer is "rachmaninoff" and the user enters "rakmaninoff" or "rachmaninof"... I want them to be counted as correct. Is there any method or software that does this?




Aucun commentaire:

Enregistrer un commentaire