class GermanSpellingReformGuesser {

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

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

    List<String> lines = Files.readAllLines(Paths.get(lemmaFile));
    Set<String> lemmas = new HashSet<>(lines);
    Set<String> result = new HashSet<>();
    for (String line : lines) {
      String oldSpelling1 = line.replace("ss", "ß");
      /*if (!oldSpelling1.equals(line) && lemmas.contains(oldSpelling1)) {
        result.add(line + ";" + oldSpelling1);
      }
      String newSpelling1 = line.replace("ß", "ss");
      if (!newSpelling1.equals(line) && lemmas.contains(newSpelling1)) {
        result.add(newSpelling1 + ";" + line);
      }*/
      String oldSpelling2 = line.replace("f", "ph");
      if (!oldSpelling2.equals(line) && lemmas.contains(oldSpelling2)) {
        result.add(line + ";" + oldSpelling2);
      }
      String newSpelling1 = line.replace("ph", "f");
      if (!newSpelling1.equals(line) && lemmas.contains(newSpelling1)) {
        result.add(newSpelling1 + ";" + line);
      }
    }
    for (String s : result) {
      System.out.println(s);
    }
    System.err.println(result.size() + " Paare gefunden");
  
<no_super_class>