Package org.languagetool.rules.pt
Class PortugueseUnitConversionRule
java.lang.Object
org.languagetool.rules.Rule
org.languagetool.rules.AbstractUnitConversionRule
org.languagetool.rules.pt.PortugueseUnitConversionRule
Localized from the German version by Tiago F. Santos
- Since:
- 4.3
-
Nested Class Summary
Nested classes/interfaces inherited from class org.languagetool.rules.AbstractUnitConversionRule
AbstractUnitConversionRule.Message -
Field Summary
FieldsFields inherited from class org.languagetool.rules.AbstractUnitConversionRule
convertedPatterns, FAHRENHEIT, FEET, IMP_FL_OUNCE, IMP_GALLON, IMP_PINT, IMP_QUART, INCH, metricUnits, MILE, NUMBER_REGEX, NUMBER_REGEX_WITH_BOUNDARY, numberRangePart, OUNCE, POUND, specialPatterns, unitPatterns, unitSymbols, US_CUP, US_FL_OUNCE, US_GALLON, US_PINT, US_QUART, YARD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringOverride in subclasses.A short description of the error this rule can detect, usually in the language of the text that is checked.getId()A string used to identify the rule in e.g.protected StringOverride in subclassesprotected NumberFormatOverride in subclassesprotected StringOverride in subclassesMethods inherited from class org.languagetool.rules.AbstractUnitConversionRule
addUnit, detectNumberRange, formatMeasurement, getMetricEquivalent, getSuggestion, matchMethods 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
-
format
-
-
Constructor Details
-
PortugueseUnitConversionRule
-
-
Method Details
-
getId
Description copied from class:RuleA string used to identify the rule in e.g. configuration files. This string is supposed to be unique and to stay the same in all upcoming versions of LanguageTool. It's supposed to contain only the charactersA-Zand the underscore. -
formatRounded
Description copied from class:AbstractUnitConversionRuleOverride in subclasses.- Overrides:
formatRoundedin classAbstractUnitConversionRule- Returns:
- formatting of rounded numbers according to locale
-
getDescription
Description copied from class:RuleA short description of the error this rule can detect, usually in the language of the text that is checked.- Specified by:
getDescriptionin classRule
-
getMessage
Description copied from class:AbstractUnitConversionRuleOverride in subclasses- Overrides:
getMessagein classAbstractUnitConversionRule
-
getShortMessage
Description copied from class:AbstractUnitConversionRuleOverride in subclasses- Overrides:
getShortMessagein classAbstractUnitConversionRule
-
getNumberFormat
Description copied from class:AbstractUnitConversionRuleOverride in subclasses- Overrides:
getNumberFormatin classAbstractUnitConversionRule- Returns:
- locale-specific number format
-