class MissingGermanCompoundsFinder {

  private final GermanSpellerRule germanSpeller;

  public MissingGermanCompoundsFinder() {
    germanSpeller = new GermanSpellerRule(JLanguageTool.getMessageBundle(), new GermanyGerman());
  }

  public static void main(String[] args) throws IOException {
    if (args.length != 1) {
      System.out.println("Usage: " + MissingGermanCompoundsFinder.class.getSimpleName() + " <filename>");
      System.exit(1);
    }
    String filename = args[0];
    new MissingGermanCompoundsFinder().run(filename);
  }

  private void run(String filename) throws IOException {<FILL_FUNCTION_BODY>}

  private boolean isKnownByGermanSpeller(String word) {
    return !germanSpeller.isMisspelled(StringTools.uppercaseFirstChar(word)) ||
      !germanSpeller.isMisspelled(StringTools.lowercaseFirstChar(word));
  }

  private BufferedReader getReaderForFilename(String filename) throws FileNotFoundException {
    FileInputStream fis = new FileInputStream(filename);
    InputStreamReader isr = new InputStreamReader(fis, StandardCharsets.UTF_8);
    return new BufferedReader(isr);
  }

}

    System.out.println("# compound words not accepted by LT speller");
    BufferedReader reader = getReaderForFilename(filename);
    String line;
    GermanWordSplitter splitter = new GermanWordSplitter(false);
    Map<String,Integer> firstPartCount = new HashMap<>();
    while ((line = reader.readLine()) != null) {
      String word;
      int count;
      if (line.contains("\t")) {
        count = Integer.parseInt(line.split("\t")[0]);
        word = line.split("\t")[1];
      } else {
        count = 1;
        word = line;
      }
      if (word.length() < 50 && StringTools.startsWithUppercase(word) && !isKnownByGermanSpeller(word)) {
        List<String> wordParts = splitter.splitWord(word);
        if (wordParts.size() > 1) {
          String key = wordParts.get(0);
          if (firstPartCount.containsKey(key)) {
            firstPartCount.put(key, firstPartCount.get(key)+count);
          } else {
            firstPartCount.put(key, count);
          }
        }
      }
    }
    for (Map.Entry<String, Integer> entry : firstPartCount.entrySet()) {
      if (entry.getValue() > 0) {
        boolean known = isKnownByGermanSpeller(entry.getKey() + "test");
        System.out.println(entry.getValue() + " " + entry.getKey() + " " + known);
      } else {
        System.out.println(entry.getValue() + " " + entry.getKey());
      }
    }
  
<no_super_class>