I am trying to compare two texts (predefined text and user input text).
Every misspelled char must be rated as a mistake.
Example:
Answer is "Handtuchhalter montieren"
"Handtochhalter montieren" = 1 mistake
"Handtuchhalter Montieren" = 1 mistake
"Handtuchhaltermontieren" = 1 mistake
"Hundtochhalter montieren" = 2 mistakes
"Handtochhalter montieren" = 2 mistakes (2 spaces = 1 mistake)
"Handtochhalter muntieren" = 3 mistakes (2 spaces)
"Hundtochhalter muntieren" = 5 mistakes (3 spaces)
The problem is, that you cannot check every char and you cannot check every word. At least the way I did it you could not.
I am programming in C# but I would be happy about algorithms from other languages too.