To add pairs of words to confusion_sets.txt, a factor is necessary. To find that factor, “Open ConfusionRuleEvaluator.java in your IDE and set TOKEN and TOKEN_HOMOPHONE to the two words that can easily be confused. Then run the main method of the class” (http://wiki.languagetool.org/adding-n-gram-data-rules).
Is it possible to find the factor using the command line? If yes, how?