code: def replace_suffixes_2(self, word):
          
          has_vowel = False
  
          if word.endswith('eed'):
              if len(word) >= self.r1:
                  word = word[:-3] + 'ee'
              return word
  
          elif word.endswith('eedly'):
              if len(word) >= self.r1:
                  word = word[:-5] + 'ee'
              return word
  
          elif word.endswith('ed'):
              for vowel in self.vowels:
                  if vowel in word[:-2]:
                      has_vowel = True
                      word = word[:-2]
                      break
  
          elif word.endswith('edly'):
              for vowel in self.vowels:
                  if vowel in word[:-4]:
                      has_vowel = True
                      word = word[:-4]
                      break
  
          elif word.endswith('ing'):
              for vowel in self.vowels:
                  if vowel in word[:-3]:
                      has_vowel = True
                      word = word[:-3]
                      break
  
          elif word.endswith('ingly'):
              for vowel in self.vowels:
                  if vowel in word[:-5]:
                      has_vowel = True
                      word = word[:-5]
                      break
  
          # Be sure to only perform one of these.
          if has_vowel:
              length = len(word)
              if word[length - 2:] in ['at', 'bl', 'iz']:
                  word += 'e'
              elif word[length - 2:] in self.doubles:
                  word = word[:-1]
              elif self.is_short(word):
                  word += 'e'
  
          return word
docs: Find the longest suffix among the ones specified
          and perform the required action.