Package org.languagetool.rules.en
Class SpecificCaseRule
java.lang.Object
org.languagetool.rules.Rule
org.languagetool.rules.en.SpecificCaseRule
public class SpecificCaseRule
extends org.languagetool.rules.Rule
A rule that matches words which are complex and suggests easier to understand alternatives.
- Since:
- 4.8
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static int
Fields inherited from class org.languagetool.rules.Rule
messages
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate boolean
final String
getId()
loadPhrases
(String path) org.languagetool.rules.RuleMatch[]
match
(org.languagetool.AnalyzedSentence sentence) 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 Details
-
phrases
-
maxLen
private static int maxLen -
lcToProperSpelling
-
-
Constructor Details
-
SpecificCaseRule
-
-
Method Details
-
loadPhrases
-
getId
- Specified by:
getId
in classorg.languagetool.rules.Rule
-
getDescription
- Specified by:
getDescription
in classorg.languagetool.rules.Rule
-
match
public org.languagetool.rules.RuleMatch[] match(org.languagetool.AnalyzedSentence sentence) - Specified by:
match
in classorg.languagetool.rules.Rule
-
allWordsUppercase
-