Answer the question
In order to leave comments, you need to log in
How to implement the correction of errors that occur when writing the names of countries (states)?
I am writing a program in C#. In this program, the user must enter the name of the country, and then the program will search for data in the XML file by the entered country name (I will make a reservation that the XML files will be taken from the UN website).
For example, if the user enters "Russian Federation", then the program will find and extract all data from the XML file related to "Russian Federation" respectively.
But such a situation may arise that the user enters the name of the country he needs in Russian "Russian Federation", or abbreviates the name of the country ("Russia"). Also, the user can write the name of the country with errors: "Russia", "Russia", "Russian Federation".
How to implement error correction,
Answer the question
In order to leave comments, you need to log in
-Looking for a full match
-Looking for a full match in the dictionary of synonyms
-Looking for the closest levenstein distance
www.codeproject.com/Articles/13525/Fast-memory-eff...
blog.softwx.net/2015/01/optimizing-damerau- levensh...
-Looking for the nearest levenshtein distance in the dictionary of synonyms
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question