code: protected List<DisambiguationPatternRule> loadPatternRules(String filename) throws ParserConfigurationException, SAXException, IOException {
      DisambiguationRuleLoader ruleLoader = new DisambiguationRuleLoader();
      return ruleLoader.getRules(JLanguageTool.getDataBroker().getFromResourceDirAsStream(filename));
    }
docs: Load disambiguation rules from an XML file. Use {@link JLanguageTool#addRule} to add
  these rules to the checking process.
  @return a List of {@link DisambiguationPatternRule} objects