public class ArabicInflectedOneWordReplaceRule extends AbstractSimpleReplaceRule2
AbstractSimpleReplaceRule2.CaseSensitivy
Modifier and Type | Field and Description |
---|---|
static String |
AR_INFLECTED_ONE_WORD_REPLACE |
subRuleSpecificIds
Constructor and Description |
---|
ArabicInflectedOneWordReplaceRule(ResourceBundle messages) |
Modifier and Type | Method and Description |
---|---|
String |
getDescription()
A short description of the error this rule can detect, usually in the language of the text
that is checked.
|
List<String> |
getFileNames() |
String |
getId()
A string used to identify the rule in e.g. configuration files.
|
Locale |
getLocale()
locale used on case-conversion
|
String |
getMessage() |
String |
getShort() |
String |
getSuggestionsSeparator() |
RuleMatch[] |
match(AnalyzedSentence sentence)
Check whether the given sentence matches this error rule, i.e. whether it
contains the error detected by this rule.
|
addToQueue, checkKeyWordsAreKnownToSpeller, checkKeyWordsAreUnknownToSpeller, getCaseSensitivy, getDescription, getFilePaths, getWrongWords, isException, isTokenException, separateKeyWordsBySpeller, useSubRuleSpecificIds
addExamplePair, addTags, addToneTags, cacheAntiPatterns, estimateContextForSureMatch, getAntiPatterns, getCategory, getConfigureText, getCorrectExamples, getDefaultValue, getDistanceTokens, getErrorTriggeringExamples, getFullId, getIncorrectExamples, getLocQualityIssueType, getMaxConfigurableValue, getMinConfigurableValue, getMinPrevMatches, getSentenceWithImmunization, getSourceFile, getSubId, getTags, getToneTags, getUrl, hasConfigurableValue, hasTag, hasToneTag, isDefaultOff, isDefaultTempOff, isDictionaryBasedSpellingRule, isGoalSpecific, isOfficeDefaultOff, isOfficeDefaultOn, isPremium, makeAntiPatterns, setCategory, setCorrectExamples, setDefaultOff, setDefaultOn, setDefaultTempOff, setDistanceTokens, setErrorTriggeringExamples, setExamplePair, setGoalSpecific, setIncorrectExamples, setLocQualityIssueType, setMinPrevMatches, setOfficeDefaultOff, setOfficeDefaultOn, setPremium, setTags, setToneTags, setUrl, supportsLanguage, toRuleMatchArray, useInOffice
public static final String AR_INFLECTED_ONE_WORD_REPLACE
public ArabicInflectedOneWordReplaceRule(ResourceBundle messages)
public String getId()
Rule
A-Z
and the underscore.getId
in class AbstractSimpleReplaceRule2
public final List<String> getFileNames()
getFileNames
in class AbstractSimpleReplaceRule2
public String getDescription()
Rule
getDescription
in class AbstractSimpleReplaceRule2
$match
will be replaced with the matching word.public String getShort()
getShort
in class AbstractSimpleReplaceRule2
public String getMessage()
getMessage
in class AbstractSimpleReplaceRule2
$match
will be replaced with the matching word
and $suggestions
will be replaced with the alternatives. This is the string
shown to the user.public String getSuggestionsSeparator()
getSuggestionsSeparator
in class AbstractSimpleReplaceRule2
public Locale getLocale()
AbstractSimpleReplaceRule2
getLocale
in class AbstractSimpleReplaceRule2
public RuleMatch[] match(AnalyzedSentence sentence)
Rule
match
in class AbstractSimpleReplaceRule2
sentence
- a pre-analyzed sentenceRuleMatch
objects