code: def text_to_phonemes(self, word: str) -> list:
          
          phonemes = []
          is_repeted = False
          if len(word) >= 2:
              for index in range(len(word) - 1):
                  if is_repeted:
                      is_repeted = False
                      continue
                  if word[index:index + 2] in self.diphthongs_ipa:  # diphthongs
                      phonemes.append(self.diphthongs_ipa_class[word[index] + word[index + 1]])
                      is_repeted = True
                  elif word[index] == word[index + 1]:
                      phonemes.append(self.ipa_class[word[index]].lengthen())
                      is_repeted = True
                  else:
                      phonemes.append(self.ipa_class[word[index]])
              if not is_repeted:
                  phonemes.append(self.ipa_class[word[len(word) - 1]])
          else:
              phonemes.append(self.ipa_class[word[0]])
          return phonemes
docs: Give a greedy approximation of the pronunciation of word
          :param word:
          :return: