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 intFields inherited from class org.languagetool.rules.Rule
messages -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate booleanfinal StringgetId()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:
getIdin classorg.languagetool.rules.Rule
-
getDescription
- Specified by:
getDescriptionin classorg.languagetool.rules.Rule
-
match
public org.languagetool.rules.RuleMatch[] match(org.languagetool.AnalyzedSentence sentence) - Specified by:
matchin classorg.languagetool.rules.Rule
-
allWordsUppercase
-