I would like to calculate the percentage of error between two strings, that means if we assume that one string is the ground truth and the other string is a typed string, then I would like to calculate the number of mistakes in the typed string.
Let's make an example:
ground truth = "This is a test"
typed = " Thisi is atest"
In typed
there are 2 errors (additional i and missing space).
I think this can be done using some distance metric. Is there a library in Java for calculating such an error rate?