docs: def load_glossary(file_path: str, read_json=False) -> List[str]:
          """
          A glossary is a text file, one entry per line.
  
          Args:
              file_path (str): path to a text file containing a glossary.
              read_json (bool): set True if the glossary is in json format
          Returns: List of the strings in the glossary.
          """
          if read_json:
              if file_path.endswith(".gz"):
                  return json.load(gzip.open(file_path))
              return json.load(open(file_path))
  
          return open(file_path).read().splitlines()