docs: def apply_text(self):
          """
          Apply text around doge
  
          """
  
          # Calculate a random sampling of lines that are to have text applied
          # onto them. Return value is a sorted list of line index integers.
          linelen = len(self.lines)
          affected = sorted(random.sample(range(linelen), int(linelen / 3.5)))
  
          for i, target in enumerate(affected, start=1):
              line = self.lines[target]
              line = re.sub('\n', ' ', line)
  
              word = self.words.get()
  
              # If first or last line, or a random selection, use standalone wow.
              if i == 1 or i == len(affected) or random.choice(range(20)) == 0:
                  word = 'wow'
  
              # Generate a new DogeMessage, possibly based on a word.
              self.lines[target] = DogeMessage(self, line, word).generate()