docs: def loaddict(filename=DICTIONARY):
      """
      Load the dictionary from a specific JSON file.
      """
      global zhcdicts
      if zhcdicts:
          return
      if filename == _DEFAULT_DICT:
          zhcdicts = json.loads(get_module_res(filename).read().decode('utf-8'))
      else:
          with open(filename, 'rb') as f:
              zhcdicts = json.loads(f.read().decode('utf-8'))
      zhcdicts['SIMPONLY'] = frozenset(zhcdicts['SIMPONLY'])
      zhcdicts['TRADONLY'] = frozenset(zhcdicts['TRADONLY'])