Get spelling suggestions
Level: Intermediate (score: 3)
Complete the get_spelling_suggestions()
function that takes a word and returns a list of SuggestedWord
tuples (see type hints) that have at least a minimum confidence (min_confidence
).
Use the textblob
module that is already installed and the 'Spelling Correction' section of the docs.
Note that you have to write the SuggestedWord
namedtuple too, see the starter code.
By the way, running textblob
(nltk
) on an AWS Lambda function turns out to be a bit slow, so please be patient when submitting your code, thanks.
Good luck and keep calm and code in Python!