code: def stemmer_for_language(lang):
      if lang == "en_porter":
          # Original porter stemming algorithm is several times faster than the
          # more correct porter2 algorithm in snowball package
          from .porter import stem as porter_stem
  
          return porter_stem
  
      tlc = two_letter_code(lang)
  
      if tlc == "ar":
          from .isri import ISRIStemmer
  
          return ISRIStemmer().stem
  
      from .snowball import classes as snowball_classes
  
      if tlc in snowball_classes:
          return snowball_classes[tlc]().stem
  
      raise NoStemmer("No stemmer available for %r" % lang)
  
file_path: whoosh/src/whoosh/lang/__init__.py
label_desc: Use image node_id 4 for calling a global function with example usage: stemmer_for_language(lang) and returns: porter_stem, ISRIStemmer, snowball_classes