code: def get_words(self):
          
  
          words = []
          block = self.document().findBlockByLineNumber(0)
          while block.isValid():
              blockWords = foundations.strings.get_words(foundations.strings.to_string(block.text()))
              if blockWords:
                  words.extend(blockWords)
              block = block.next()
          return words
docs: Returns the document words.
  
          :return: Document words.
          :rtype: list