Hi, seems to me you need to: - split both texts into words (split on spaces and puctuation); - match the words (resync when a word is missing in one of the texts); - count the differences (each pair of matching words that are not identical count as one mistake). Why match words: the sucker under test may connect two words, split a word in two, just forget one, etc. remaining problems: - punctuation: do you check those chars too? can you hear the difference between say a semi-colon and a period? - capitals: are the rules strict in your language? is it the same for the first letter following a semi-colon and a period? :)
Luc Pattyn [Forum Guidelines] [My Articles]
This month's tips: - before you ask a question here, search CodeProject, then Google; - the quality and detail of your question reflects on the effectiveness of the help you are likely to get; - use PRE tags to preserve formatting when showing multi-line code snippets.