class_docstr: Helper class that creates a search index based on the doctrees
  passed to the `feed` method.
class_docstr_tok: ["Helper","class","that","creates","a","search","index","based","on","the","doctrees","passed","to","the","`","feed","`","method","."]
docstr: Returns JS code that will be inserted into language_data.js.
docstr_tok: ["Returns","JS","code","that","will","be","inserted","into","language_data.js","."]
code: def get_js_stemmer_code(self) -> str:
      """Returns JS code that will be inserted into language_data.js."""
      if self.lang.js_stemmer_rawcode:
          js_dir = path.join(package_dir, "search", "minified-js")
          with open(
              path.join(js_dir, "base-stemmer.js"), encoding="utf-8"
          ) as js_file:
              base_js = js_file.read()
          with open(
              path.join(js_dir, self.lang.js_stemmer_rawcode),
              encoding="utf-8",
          ) as js_file:
              language_js = js_file.read()
          return "%s\n%s\nStemmer = %sStemmer;" % (
              base_js,
              language_js,
              self.lang.language_name,
          )
      else:
          return self.lang.js_stemmer_code
  
imports: from __future__ import annotations
  import dataclasses
  import functools
  import html
  import json
  import pickle
  import re
  from importlib import import_module
  from os import path
  from typing import IO, TYPE_CHECKING, Any
  from docutils import nodes
  from docutils.nodes import Element, Node
  from sphinx import addnodes, package_dir
  from sphinx.environment import BuildEnvironment
  from sphinx.util.index_entries import split_index_msg
  from sphinx.search.en import SearchEnglish
label_desc: Use image node_id 14 for calling the IndexBuilder obj's underlying member method code with example usage: obj.get_js_stemmer_code() and returns: unknown, self