Examples of RuleMatch


Examples of org.languagetool.rules.RuleMatch

        //now do some spell-checking:
      if (!(errMessage.contains("<pleasespellme/>") && errMessage
          .contains("<mistake/>"))) {
        final String clearMsg = errMessage.replaceAll("<pleasespellme/>", "")
            .replaceAll("<mistake/>", "");
        return new RuleMatch(rule, fromPos, toPos, clearMsg,
            rule.getShortMessage(), startsWithUppercase, suggestionsOutMsg);
      }
      } // failed to create any rule match...
      return null;
    }
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.