code: public static List<RuleMatch> checkBitext(String src, String trg,
                                              JLanguageTool srcLt, JLanguageTool trgLt,
                                              List<BitextRule> bRules) throws IOException {
      AnalyzedSentence srcText = srcLt.getAnalyzedSentence(src);
      AnalyzedSentence trgText = trgLt.getAnalyzedSentence(trg);
      List<Rule> nonBitextRules = trgLt.getAllRules();
      List<RuleMatch> ruleMatches = trgLt.checkAnalyzedSentence(JLanguageTool.ParagraphHandling.NORMAL, nonBitextRules, trgText);
      for (BitextRule bRule : bRules) {
        RuleMatch[] curMatch = bRule.match(srcText, trgText);
        if (curMatch != null && curMatch.length > 0) {
          // adjust positions for bitext rules
          for (RuleMatch match : curMatch) {
            if (match.getColumn() < 0) {
              match.setColumn(1);
            }
            if (match.getEndColumn() < 0) {
              match.setEndColumn(trg.length() + 1); // we count from 0
            }
            if (match.getLine() < 0) {
              match.setLine(1);
            }
            if (match.getEndLine() < 0) {
              match.setEndLine(1);
            }
            ruleMatches.add(match);
          }
        }
      }
      return ruleMatches;
    }
docs: Checks the bilingual input (bitext).
  
  @param src   Source text.
  @param trg   Target text.
  @param srcLt Source JLanguageTool (used to analyze the text).
  @param trgLt Target JLanguageTool (used to analyze the text).
  @param bRules  Bilingual rules used in addition to target standard rules.
  @return  The list of rule matches on the bitext.
  @since 1.0.1