Class QuestionWhitespaceStrictRule
java.lang.Object
org.languagetool.rules.Rule
org.languagetool.rules.fr.QuestionWhitespaceStrictRule
public class QuestionWhitespaceStrictRule
extends org.languagetool.rules.Rule
A rule that matches spaces before ?,:,; and ! (required for correct French
punctuation).
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.languagetool.Languageprivate static final PatternFields inherited from class org.languagetool.rules.Rule
messages -
Constructor Summary
ConstructorsConstructorDescriptionQuestionWhitespaceStrictRule(ResourceBundle messages, org.languagetool.Language language) -
Method Summary
Methods inherited from class org.languagetool.rules.Rule
addExamplePair, estimateContextForSureMatch, 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
-
urlPattern
-
FRENCH
private final org.languagetool.Language FRENCH -
ANTI_PATTERNS
-
-
Constructor Details
-
QuestionWhitespaceStrictRule
-
-
Method Details
-
getAntiPatterns
public List<org.languagetool.tagging.disambiguation.rules.DisambiguationPatternRule> getAntiPatterns()- Overrides:
getAntiPatternsin classorg.languagetool.rules.Rule
-
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
-