Package org.languagetool.rules.pt
Class EnglishContractionSpellingRule
java.lang.Object
org.languagetool.rules.Rule
org.languagetool.rules.AbstractSimpleReplaceRule
org.languagetool.rules.pt.EnglishContractionSpellingRule
A rule that matches words or phrases which should not be used and suggests
correct ones instead, e.g.
Hasnt instead of Hasn't.
This was copied to Portuguese from English to help users with code-switching and improve
tagging tokens with _english_ignore_.- Since:
- 2.5
- Author:
- Marcin MiĆkowski
-
Field Summary
FieldsFields inherited from class org.languagetool.rules.AbstractSimpleReplaceRule
ignoreTaggedWords, subRuleSpecificIds -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.languagetool.rules.AbstractSimpleReplaceRule
createRuleMatch, findMatches, getSynthesizer, isCheckLemmas, isTagged, isTokenException, loadFromPath, loadFromPath, match, setCheckLemmas, setIgnoreTaggedWords, useSubRuleSpecificIdsMethods inherited from class org.languagetool.rules.Rule
addExamplePair, addTags, addToneTags, cacheAntiPatterns, estimateContextForSureMatch, getAntiPatterns, getCategory, getCorrectExamples, getDistanceTokens, getErrorTriggeringExamples, getFullId, getIncorrectExamples, getLocQualityIssueType, getMinPrevMatches, getPriority, getRuleOptions, getSentenceWithImmunization, getSourceFile, getSubId, getTags, getToneTags, getUrl, hasTag, hasToneTag, isDefaultOff, isDefaultTempOff, isDictionaryBasedSpellingRule, isGoalSpecific, isIncludedInHiddenMatches, isOfficeDefaultOff, isOfficeDefaultOn, isPremium, makeAntiPatterns, setCategory, setCorrectExamples, setDefaultOff, setDefaultOn, setDefaultTempOff, setDistanceTokens, setErrorTriggeringExamples, setExamplePair, setGoalSpecific, setIncludedInHiddenMatches, setIncorrectExamples, setLocQualityIssueType, setMinPrevMatches, setOfficeDefaultOff, setOfficeDefaultOn, setPremium, setPriority, setTags, setToneTags, setUrl, supportsLanguage, toRuleMatchArray, useInOffice
-
Field Details
-
ENGLISH_CONTRACTION_SPELLING_RULE
- See Also:
-
-
Constructor Details
-
EnglishContractionSpellingRule
-
-
Method Details
-
getWrongWords
- Specified by:
getWrongWordsin classAbstractSimpleReplaceRule
-
getId
- Overrides:
getIdin classAbstractSimpleReplaceRule
-
getDescription
- Overrides:
getDescriptionin classAbstractSimpleReplaceRule
-
getShort
- Overrides:
getShortin classAbstractSimpleReplaceRule
-
getMessage
- Overrides:
getMessagein classAbstractSimpleReplaceRule
-
isCaseSensitive
public boolean isCaseSensitive()- Overrides:
isCaseSensitivein classAbstractSimpleReplaceRule
-
getLocale
- Overrides:
getLocalein classAbstractSimpleReplaceRule
-