1
1
12rbah2020-05-03 11:35:10
go
12rbah, 2020-05-03 11:35:10

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

2 answer(s)
V
Vasily Melnikov, 2020-05-07
@12rbah

I would look for some free spellchecker. It's too costly to do it yourself. Immediately found a couple of abandoned projects for golang.

D
Dmitry Belyaev, 2020-05-03
@bingo347

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 question

Ask a Question

731 491 924 answers to any question