Examples of enableDefaultOffRule()


Examples of org.languagetool.JLanguageTool.enableDefaultOffRule()

    final JLanguageTool langTool = new JLanguageTool(lang);
    for (Rule rule : langTool.getAllActiveRules()) {
      langTool.disableRule(rule.getId());
    }
    langTool.addRule(patternRule);
    langTool.enableDefaultOffRule(patternRule.getId()); // rule might be off by default
    return langTool;
  }

  class PossiblyLimitedTopDocs {
    TopDocs topDocs;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.