code: def fix_spelling(self):
          
          if not self.is_tagged(WORDS):
              self.tokenize_words()
          text = self.text
          fixed = vabamorf.fix_spelling(self.word_texts, join=False)
          spans = self.word_spans
          assert len(fixed) == len(spans)
          if len(spans) > 0:
              newtoks = []
              lastend = 0
              for fix, (start, end) in zip(fixed, spans):
                  newtoks.append(text[lastend:start])
                  newtoks.append(fix)
                  lastend = end
              newtoks.append(text[lastend:])
              return Text(''.join(newtoks), **self.__kwargs)
          return self
docs: Fix spelling of the text.
  
          Note that this method uses the first suggestion that is given for each misspelled word.
          It does not perform any sophisticated analysis to determine which one of the suggestions
          fits best into the context.
  
          Returns
          -------
          Text
              A copy of this instance with automatically fixed spelling.