Bayesian spelling corrector