public class BritishEnglish extends English
Constructor and Description |
---|
BritishEnglish() |
Modifier and Type | Method and Description |
---|---|
SpellingCheckRule |
createDefaultSpellingRule(ResourceBundle messages) |
String[] |
getCountries()
Get this language's country options , e.g.
|
String |
getName()
Get this language's name in English, e.g.
|
protected int |
getPriorityForId(String id)
Returns a priority for Rule or Category Id (default: 0).
|
List<Rule> |
getRelevantLanguageModelCapableRules(ResourceBundle messages,
LanguageModel lm,
GlobalConfig globalConfig,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages)
Get a list of rules that can optionally use a
LanguageModel . |
List<Rule> |
getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages)
Get the rules classes that should run for texts in this language.
|
adaptSuggestions, close, createDefaultChunker, createDefaultDisambiguator, createDefaultSentenceTokenizer, createDefaultSynthesizer, createDefaultTagger, createDefaultWordTokenizer, getClosingDoubleQuote, getClosingSingleQuote, getDefaultLanguageVariant, getLanguageModel, getMaintainedState, getMaintainers, getOpeningDoubleQuote, getOpeningSingleQuote, getRelevantLanguageModelRules, getRemoteEnhancedRules, getRulePriority, getShortCode, hasMinMatchesRules, hasNGramFalseFriendRule, isAdvancedTypographyEnabled
adaptSuggestion, adjustMatch, createDefaultJLanguageTool, createDefaultPostDisambiguationChunker, equals, equalsConsiderVariantsIfSpecified, getChunker, getCommonWordsPath, getConsistencyRulePrefix, getDefaultDisabledRulesForVariant, getDefaultEnabledRulesForVariant, getDefaultSpellingRule, getDefaultSpellingRule, getDisambiguationUnifier, getDisambiguationUnifierConfiguration, getDisambiguator, getIgnoredCharactersRegex, getLocale, getLocaleWithCountryAndVariant, getPatternRules, getPostDisambiguationChunker, getRelevantRemoteRules, getRelevantRulesGlobalConfig, getRuleFileNames, getSentenceTokenizer, getShortCodeWithCountryAndVariant, getSynthesizer, getTagger, getTranslatedName, getUnifier, getUnifierConfiguration, getVariant, getWordTokenizer, hashCode, hasVariant, initLanguageModel, isExternal, isHiddenFromGui, isSpellcheckOnlyLanguage, isVariant, mergeSuggestions, setChunker, setDisambiguator, setPostDisambiguationChunker, setSentenceTokenizer, setSynthesizer, setTagger, setWordTokenizer, toAdvancedTypography, toString
public String[] getCountries()
Language
US
(as in en-US
) or
PL
(as in pl-PL
).getCountries
in class English
public String getName()
Language
English
or
German (Germany)
.public List<Rule> getRelevantRules(ResourceBundle messages, UserConfig userConfig, Language motherTongue, List<Language> altLanguages) throws IOException
Language
getRelevantRules
in class English
IOException
public SpellingCheckRule createDefaultSpellingRule(ResourceBundle messages) throws IOException
createDefaultSpellingRule
in class English
IOException
public List<Rule> getRelevantLanguageModelCapableRules(ResourceBundle messages, @Nullable LanguageModel lm, GlobalConfig globalConfig, UserConfig userConfig, Language motherTongue, List<Language> altLanguages) throws IOException
Language
LanguageModel
. Returns an empty list for
languages that don't have such rules.getRelevantLanguageModelCapableRules
in class English
lm
- null if no language model is availableIOException
protected int getPriorityForId(String id)
Language
getPriorityForId
in class English