code: def stem(self, text):
          
  
          stemmed_text = ''
  
          for word in text.split(' '):
              if word not in self.stops:
  
                  # remove '-que' suffix
                  word, in_que_pass_list = self._checkremove_que(word)
                  if not in_que_pass_list:
  
                      # remove the simple endings from the target word
                      word, was_stemmed = self._matchremove_simple_endings(word)
  
                      # if word didn't match the simple endings, try verb endings
                      if not was_stemmed:
                          word = self._matchremove_verb_endings(word)
  
              # add the stemmed word to the text
              stemmed_text += word + ' '
  
  
          return stemmed_text
docs: Stem each word of the Latin text.