Word and letter prediction library with configurable error tolerance using PPM (Prediction by Partial Matching)