code: def spellcheck(self, words, suggestions=True):
          
          if isinstance(words, six.string_types):
              words = words.split()
  
          # convert words to native strings
          words = [convert(w) for w in words]
  
          spellresults = self._morf.spellcheck(words, suggestions)
          results = []
          for spellresult in spellresults:
              suggestions = [deconvert(s) for s in spellresult.suggestions]
              result = {
                  'text': deconvert(spellresult.word),
                  'spelling': spellresult.spelling,
                  'suggestions': suggestions
              }
              results.append(result)
          return results
docs: Spellcheck given sentence.
  
          Note that spellchecker does not respect pre-tokenized words and concatenates
          token sequences such as "New York".
  
          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.
          suggestions: boolean (default: True)
              Add spell suggestions to result.
  
          Returns
          -------
          list of dict
              Each dictionary contains following values:
                  'word': the original word
                  'spelling': True, if the word was spelled correctly
                  'suggestions': list of suggested strings in case of incorrect spelling