code: public static void correctBitext(BitextReader reader,
                                     JLanguageTool sourceLt, JLanguageTool targetLt,
                                     List<BitextRule> bRules) throws IOException {
      for (StringPair srcAndTrg : reader) {
        List<RuleMatch> curMatches = Tools.checkBitext(
                srcAndTrg.getSource(), srcAndTrg.getTarget(),
                sourceLt, targetLt, bRules);
        List<RuleMatch> fixedMatches = new ArrayList<>();
        for (RuleMatch thisMatch : curMatches) {
          fixedMatches.add(
                  targetLt.adjustRuleMatchPos(thisMatch,
                          0, //don't need to adjust at all, we have zero offset related to trg sentence 
                          reader.getTargetColumnCount(),
                          reader.getLineCount(),
                          reader.getCurrentLine(), null));
        }
        if (fixedMatches.size() > 0) {
          System.out.println(correctTextFromMatches(srcAndTrg.getTarget(), fixedMatches));
        } else {
          System.out.println(srcAndTrg.getTarget());
        }
      }
    }
docs: Automatically applies suggestions to the bilingual text.
  Note: if there is more than one suggestion, always the first
  one is applied, and others ignored silently.
  Prints results to System.out.
  
  @param reader a bitext file reader
  @param sourceLt Initialized source JLanguageTool object
  @param targetLt Initialized target JLanguageTool object
  @param bRules  List of all BitextRules to use