I'm working on a client-side web application and I want to retrieve an answer for a trivia question from the user, but I want to deem it a correct answer even if the spelling is slightly off. I'm wondering if there is a good way of using fuzzywuzzy (when I wrangle the data originally in python) to return a list of words that would have a matching score greater than .9, for instance. So, if I pass "chicken" and .9 to the function, it returns all words that have a similarity score of over .9 for "chicken" ("chickenn, "chiken", etc.). Any thoughts would be helpful, thank you!
source https://stackoverflow.com/questions/71992025/return-list-of-words-with-match-score-x-in-fuzzywuzzy-python
Comments
Post a Comment