Class AbstractSimpleReplaceLemmasRule

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.util.Locale CA_LOCALE  
      private CatalanSynthesizer synth  
      protected java.util.Map<java.lang.String,​java.util.List<java.lang.String>> wrongLemmas  
      • Fields inherited from class org.languagetool.rules.AbstractSimpleReplaceRule

        ignoreTaggedWords
      • Fields inherited from class org.languagetool.rules.Rule

        messages
    • Constructor Summary

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Locale getLocale()  
      protected java.util.Map<java.lang.String,​java.util.List<java.lang.String>> getWrongWords()  
      boolean isCaseSensitive()  
      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 Detail

      • wrongLemmas

        protected java.util.Map<java.lang.String,​java.util.List<java.lang.String>> wrongLemmas
      • CA_LOCALE

        private static final java.util.Locale CA_LOCALE
    • Constructor Detail

      • AbstractSimpleReplaceLemmasRule

        public AbstractSimpleReplaceLemmasRule​(java.util.ResourceBundle messages,
                                               org.languagetool.Language language)
                                        throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • getWrongWords

        protected java.util.Map<java.lang.String,​java.util.List<java.lang.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 java.util.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