code: def stem(word: str) -> str:
      """
      Stem each word of the Latin text.
  
      >>> stem('interdum')
      'interd'
      >>> stem('mercaturis')
      'mercatur'
      """
  
      if word not in STOPS:
          # remove '-que' suffix
          word, in_que_pass_list = _checkremove_que(word)
  
          if not in_que_pass_list:
              # remove the simple endings from the target word
              word, was_stemmed = _matchremove_simple_endings(word)
  
              # if word didn't match the simple endings, try verb endings
              if not was_stemmed:
                  word = _matchremove_verb_endings(word)
  
      return word
  
imports: import re
  from cltk.stops.lat import STOPS
label_desc: Use image node_id 4 for calling a global function with example usage: stem(word) and returns: word