I am hoping for a function like this:
def findSimilar(string, options):
....
return aString
Where aString
is similar to the passed string but is present in options
. I'm using this function to normalize user input from the toy application I'm working on. I read about using levenshtein distance, but I decided to ask here, as I'm hoping there is a simple solution in the Python standard libraries.