code: private static Set<String> loadWords(String path) {
      Set<String> set = new HashSet<>();
      InputStream stream = JLanguageTool.getDataBroker().getFromRulesDirAsStream(path);
      try (Scanner scanner = new Scanner(stream, "utf-8")) {
        while (scanner.hasNextLine()) {
          String line = scanner.nextLine().trim();
          if (line.isEmpty() || line.charAt(0) == '#') {
            continue;
          }
          if (line.charAt(0) == '*') {
            set.add(line.substring(1));
          } else {
            set.add(line.toLowerCase());
          }
        }
      }
      return Collections.unmodifiableSet(set);
    }
docs: Load words, normalized to lowercase unless starting with '*'.