public List<BitextPatternRule> getFalseFriendsAsBitext(
final String filename, final Language motherTongue,
final Language language) throws ParserConfigurationException,
SAXException, IOException {
final FalseFriendRuleLoader ruleLoader = new FalseFriendRuleLoader();
final List<BitextPatternRule> bRules = new ArrayList<>();
final List<PatternRule> rules1 = ruleLoader.getRules(JLanguageTool
.getDataBroker().getFromRulesDirAsStream(filename),
motherTongue, language);
final List<PatternRule> rules2 = ruleLoader.getRules(JLanguageTool
.getDataBroker().getFromRulesDirAsStream(filename),
language, motherTongue);
final HashMap<String, PatternRule> srcRules = new HashMap<>();
for (PatternRule rule : rules1) {
srcRules.put(rule.getId(), rule);