public class AvsAnRule extends Rule
det_a.txt and
det_an.txt (e.g. for an hour).| Constructor and Description |
|---|
AvsAnRule(ResourceBundle messages) |
| Modifier and Type | Method and Description |
|---|---|
int |
estimateContextForSureMatch() |
String |
getDescription() |
String |
getId() |
RuleMatch[] |
match(AnalyzedSentence sentence) |
String |
suggestAorAn(String origWord)
Adds "a" or "an" to the English noun.
|
addExamplePair, addTags, cacheAntiPatterns, getAntiPatterns, getCategory, getConfigureText, getCorrectExamples, getDefaultValue, getDistanceTokens, getErrorTriggeringExamples, getFullId, getIncorrectExamples, getLocQualityIssueType, getMaxConfigurableValue, getMinConfigurableValue, getMinPrevMatches, getSentenceWithImmunization, getSourceFile, getSubId, getTags, getUrl, hasConfigurableValue, hasTag, isDefaultOff, isDefaultTempOff, isDictionaryBasedSpellingRule, isOfficeDefaultOff, isOfficeDefaultOn, isPremium, makeAntiPatterns, setCategory, setCorrectExamples, setDefaultOff, setDefaultOn, setDefaultTempOff, setDistanceTokens, setErrorTriggeringExamples, setExamplePair, setIncorrectExamples, setLocQualityIssueType, setMinPrevMatches, setOfficeDefaultOff, setOfficeDefaultOn, setPremium, setTags, setUrl, supportsLanguage, toRuleMatchArray, useInOfficepublic AvsAnRule(ResourceBundle messages)
public String getDescription()
getDescription in class Rulepublic int estimateContextForSureMatch()
estimateContextForSureMatch in class Rulepublic RuleMatch[] match(AnalyzedSentence sentence)
public String suggestAorAn(String origWord)
origWord - Word that needs an article.