Package org.languagetool.rules.pt
Class PortugalPortugueseReplaceRule
- java.lang.Object
-
- org.languagetool.rules.Rule
-
- org.languagetool.rules.AbstractSimpleReplaceRule
-
- org.languagetool.rules.pt.PortugalPortugueseReplaceRule
-
public class PortugalPortugueseReplaceRule extends org.languagetool.rules.AbstractSimpleReplaceRuleA rule that matches words or phrases which should not be used and suggests correct ones instead.- Since:
- 3.6
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringPORTUGAL_PORTUGUESE_SIMPLE_REPLACE_RULEprivate static java.util.LocalePT_PT_LOCALEprivate static java.util.Map<java.lang.String,java.util.List<java.lang.String>>wrongWords
-
Constructor Summary
Constructors Constructor Description PortugalPortugueseReplaceRule(java.util.ResourceBundle messages)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDescription()java.lang.StringgetId()java.util.LocalegetLocale()java.lang.StringgetMessage(java.lang.String tokenStr, java.util.List<java.lang.String> replacements)java.lang.StringgetShort()protected java.util.Map<java.lang.String,java.util.List<java.lang.String>>getWrongWords()booleanisCaseSensitive()-
Methods inherited from class org.languagetool.rules.AbstractSimpleReplaceRule
createRuleMatch, findMatches, isCheckLemmas, isTagged, loadFromPath, match, 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
-
-
-
-
Field Detail
-
PORTUGAL_PORTUGUESE_SIMPLE_REPLACE_RULE
public static final java.lang.String PORTUGAL_PORTUGUESE_SIMPLE_REPLACE_RULE
- See Also:
- Constant Field Values
-
wrongWords
private static final java.util.Map<java.lang.String,java.util.List<java.lang.String>> wrongWords
-
PT_PT_LOCALE
private static final java.util.Locale PT_PT_LOCALE
-
-
Method Detail
-
getWrongWords
protected java.util.Map<java.lang.String,java.util.List<java.lang.String>> getWrongWords()
- Specified by:
getWrongWordsin classorg.languagetool.rules.AbstractSimpleReplaceRule
-
getId
public final java.lang.String getId()
- Overrides:
getIdin classorg.languagetool.rules.AbstractSimpleReplaceRule
-
getDescription
public java.lang.String getDescription()
- Overrides:
getDescriptionin classorg.languagetool.rules.AbstractSimpleReplaceRule
-
getShort
public java.lang.String getShort()
- Overrides:
getShortin classorg.languagetool.rules.AbstractSimpleReplaceRule
-
getMessage
public java.lang.String getMessage(java.lang.String tokenStr, java.util.List<java.lang.String> replacements)- Overrides:
getMessagein classorg.languagetool.rules.AbstractSimpleReplaceRule
-
isCaseSensitive
public boolean isCaseSensitive()
- Overrides:
isCaseSensitivein classorg.languagetool.rules.AbstractSimpleReplaceRule
-
getLocale
public java.util.Locale getLocale()
- Overrides:
getLocalein classorg.languagetool.rules.AbstractSimpleReplaceRule
-
-