code: def _matchremove_noun_endings(word: str) -> str:
      """Remove the noun and adverb word endings"""
  
      was_stemmed = False
  
      """common and proper noun and adjective word endings sorted by charlen, then alph"""
      noun_endings = [
          "arons",
          "ains",
          "aron",
          "ment",
          "ain",
          "age",
          "on",
          "es",
          "ée",
          "ee",
          "ie",
          "s",
      ]
  
      for ending in noun_endings:
          """ignore exceptions"""
          if word in EXCEPTIONS:
              word = word
              was_stemmed = True
              break
          if word == ending:
              word = word
              was_stemmed = True
              break
          """removes noun endings"""
          if word.endswith(ending):
              word = re.sub(r"{0}$".format(ending), "", word)
              was_stemmed = True
              break
  
      return word, was_stemmed
  
label_desc: Use image node_id 1 for calling a global function with example usage: _matchremove_noun_endings(word) and returns: word,  was_stemmed