Is there functionality to train the algorithm? Improve the answer by using Levenshtein distance between OCRed text and set of words or something? Or maybe that is something the dev who uses this library can implement themselves. :)
Using simple text correction algorithm should work just fine. However, this goes beyond this simple experiment. I just wanted to demonstrate capabilities of ocrad.js . Feel free to implement it yourself! It seems that there are multiple JS auto-correction libs, e.g. https://code.google.com/p/careti/ .