Class AbstractSimpleReplaceLemmasRule

java.lang.Object
org.languagetool.rules.Rule
org.languagetool.rules.AbstractSimpleReplaceRule
org.languagetool.rules.ca.AbstractSimpleReplaceLemmasRule
Direct Known Subclasses:
SimpleReplaceDNVColloquialRule, SimpleReplaceDNVRule, SimpleReplaceDNVSecondaryRule

public abstract class AbstractSimpleReplaceLemmasRule extends org.languagetool.rules.AbstractSimpleReplaceRule
Adds simple replacement using lemmas
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static final Locale
     
     
    protected Map<String,List<String>>
     

    Fields inherited from class org.languagetool.rules.AbstractSimpleReplaceRule

    ignoreTaggedWords

    Fields inherited from class org.languagetool.rules.Rule

    messages
  • Constructor Summary

    Constructors
    Constructor
    Description
    AbstractSimpleReplaceLemmasRule(ResourceBundle messages, org.languagetool.Language language)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    protected Map<String,List<String>>
     
    boolean
     
    final org.languagetool.rules.RuleMatch[]
    match(org.languagetool.AnalyzedSentence sentence)
     

    Methods inherited from class org.languagetool.rules.AbstractSimpleReplaceRule

    createRuleMatch, findMatches, getDescription, getId, getMessage, getShort, isCheckLemmas, isTagged, loadFromPath, setCheckLemmas, setIgnoreTaggedWords

    Methods inherited from class org.languagetool.rules.Rule

    addExamplePair, estimateContextForSureMatch, getAntiPatterns, getCategory, getConfigureText, getCorrectExamples, getDefaultValue, getErrorTriggeringExamples, getIncorrectExamples, getLocQualityIssueType, getMaxConfigurableValue, getMinConfigurableValue, getSentenceWithImmunization, getUrl, hasConfigurableValue, isDefaultOff, isDefaultTempOff, isDictionaryBasedSpellingRule, isOfficeDefaultOff, isOfficeDefaultOn, makeAntiPatterns, setCategory, setCorrectExamples, setDefaultOff, setDefaultOn, setDefaultTempOff, setErrorTriggeringExamples, setIncorrectExamples, setLocQualityIssueType, setOfficeDefaultOff, setOfficeDefaultOn, setUrl, supportsLanguage, toRuleMatchArray, useInOffice

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

  • Method Details

    • getWrongWords

      protected Map<String,List<String>> getWrongWords()
      Specified by:
      getWrongWords in class org.languagetool.rules.AbstractSimpleReplaceRule
    • isCaseSensitive

      public boolean isCaseSensitive()
      Overrides:
      isCaseSensitive in class org.languagetool.rules.AbstractSimpleReplaceRule
    • getLocale

      public Locale getLocale()
      Overrides:
      getLocale in class org.languagetool.rules.AbstractSimpleReplaceRule
    • match

      public final org.languagetool.rules.RuleMatch[] match(org.languagetool.AnalyzedSentence sentence)
      Overrides:
      match in class org.languagetool.rules.AbstractSimpleReplaceRule