Package org.languagetool.rules.en
Class UnitConversionRuleImperial
java.lang.Object
org.languagetool.rules.Rule
org.languagetool.rules.AbstractUnitConversionRule
org.languagetool.rules.en.UnitConversionRule
org.languagetool.rules.en.UnitConversionRuleImperial
- Since:
- 4.3
-
Nested Class Summary
Nested classes/interfaces inherited from class org.languagetool.rules.AbstractUnitConversionRule
AbstractUnitConversionRule.Message -
Field Summary
Fields inherited from class org.languagetool.rules.en.UnitConversionRule
formatFields 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
Methods inherited from class org.languagetool.rules.en.UnitConversionRule
getDescription, getNumberFormatMethods inherited from class org.languagetool.rules.AbstractUnitConversionRule
addUnit, detectNumberRange, formatMeasurement, formatRounded, getMessage, getMetricEquivalent, getShortMessage, 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
-
Constructor Details
-
UnitConversionRuleImperial
-
-
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.- Overrides:
getIdin classUnitConversionRule
-