code: def _check_spelling(self, text, lang="en_US"):
          
  
          chkr = SpellChecker(lang)
  
          chkr.set_text(text)
  
          word_starts_ends = []
  
          for err in chkr:
              start = err.wordpos
              stop = err.wordpos + len(err.word) + 1
              word_starts_ends.append((start, stop))
  
          return word_starts_ends
docs: Returns a list of start stop tuples that have spelling errors
  
          Parameters
          ----------
          text: Unicode or string
          \tThe text that is checked
          lang: String, defaults to "en_US"
          \tName of spell checking dictionary