code: def fix_spelling(self, words, join=True, joinstring=' '):
          
  
          fixed_words = []
          for word in self.spellcheck(words, suggestions=True):
              if word['spelling']:
                  fixed_words.append(word['text'])
              else:
                  suggestions = word['suggestions']
                  if len(suggestions) > 0:
                      fixed_words.append(suggestions[0])
                  else:
                      fixed_words.append(word['text'])
          if join:
              return joinstring.join(fixed_words)
          else:
              return fixed_words
docs: Simple function for quickly correcting misspelled words.
  
          Parameters
          ----------
          words: list of str or str
              Either a list of pretokenized words or a string. In case of a string, it will be splitted using
              default behaviour of string.split() function.
          join: boolean (default: True)
              Should we join the list of words into a single string.
          joinstring: str (default: ' ')
              The string that will be used to join together the fixed words.
  
          Returns
          -------
          str
              In case join is True
          list of str
              In case join is False.