docs: def set_ys(self, word):
          """
          Identify Ys that are to be treated
          as consonants and make them uppercase.
          """
  
          if word[0] == 'y':
              word = 'Y' + word[1:]
  
          for match in re.finditer("[aeiou]y", word):
              y_index = match.end() - 1
              char_list = [x for x in word]
              char_list[y_index] = 'Y'
              word = ''.join(char_list)
  
          return word