avatar Bite 351. Get spelling suggestions

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!

Login and get coding
go back Intermediate level
Bitecoin 3X

19 out of 19 users completed this Bite.
Will you be Pythonista #20 to crack this Bite?
Resolution time: ~41 min. (avg. submissions of 5-240 min.)

Focus on this Bite hiding sidebars, turn on Focus Mode.

Ask for Help