Answer the question
In order to leave comments, you need to log in
How to check errors in input text?
There is a database and you need to enter text data, checking the input text for errors. For example, so that the program reacts to the fact that the user entered not a ''word' but a 'solvo' and offered options for correcting errors. Are there specific examples or libraries for this?
Answer the question
In order to leave comments, you need to log in
I would look for some free spellchecker. It's too costly to do it yourself. Immediately found a couple of abandoned projects for golang.
We need a dictionary presented as a tree, where there are letters in the nodes, and any word is a passage from the root to the leaf. Then the error detection problem is reduced to checking the reachability of a leaf from the root for a given set of letters (word), and the suggested hints are derived from the nearest neighbors
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question