Click here to Skip to main content
16,015,973 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am working on a typing tutor software. GUI is complete. I am having problem in comparing the text typed by user with the original text. I am not able to think of an algorithm for this. There are variety of cases, like Misspelt words, missed/skipped words, skipped sentences etc.
How do I proceed for comparison. Also. Please do I need to capture Unicode ? I am working in ASP.net (VB).

I have tokenized both the texts, original and user's text. Now specifically, my problem is how to compare both. In user's text some words may be missing, or there may be some extra words (not found in original text). So i am stuck at : how do I compare both.

Kindly help. Thanks.

What I have tried:

Honestly, not tried anything yet. having problem to find an algorithm about this.
Posted
Updated 28-May-23 2:02am
v2
Comments
Ralf Meier 28-May-23 15:27pm    
It could be useful if you give some samples of both texts ... how are they looking like ...?

THis should help: vb diff algorithm - Google Search[^] .. there are several results that could meet your requirements.
 
Share this answer
 
Quote:
Honestly, not tried anything yet. having problem to find an algorithm about this.

Are you looking for something like this ?
Longest common substring - Wikipedia[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900