I’ve got a list of names which some code checks against to see if the person exists, and if so do some stuff..
My issue is that I want to handle the case of the name being entered incorrectly.. I.e. I have a list of names
Bob
Frank
Tom
Tim
John
If I type in Joohn, I want it to ask me if I meant John. If I type Tm, I get asked if I meant Tim, if I say no, it asks if i meant Tom.. Etc..
Has anyone done something like this before?
If the name doesn’t appear in the list, you can use algorithms like Levenshtein distance and Soundex to determine which entries in the list are closest and suggest those