Auto-correct text

Correcting typos in a word based on the frequency dictionary.

This algorithm is based on the distance between words according to the Levenshtein-Damerau algorithm, and the frequency of words in the language.

There is a choice of three functions for calculating the best option: linear, exponential and exponential. The parameters for these functions are user-definable.

05.12.2021

Python 3.9.4

Package: csv, logging, typing

Author: https://github.com/anton2yakovlev

GitHub

View Github