final Polish polish = new Polish();
final English english = new English();
final JLanguageTool langTool = new JLanguageTool(english, polish);
final JLanguageTool trgTool = new JLanguageTool(polish);
final FalseFriendsAsBitextLoader ruleLoader = new FalseFriendsAsBitextLoader();
final String name = "/false-friends.xml";
final List<BitextPatternRule> rules = ruleLoader.
getFalseFriendsAsBitext(name, english, polish);
assertErrors(1, rules, "This is an absurd.", "To absurd.", langTool, trgTool);
assertErrors(1, rules, "I have to speak to my advocate.", "Muszę porozmawiać z adwokatem.", langTool, trgTool);
assertErrors(1, rules, "This is not actual.", "To nie jest aktualne.", langTool, trgTool);