Package org.languagetool.language
Class BritishEnglish
java.lang.Object
org.languagetool.Language
org.languagetool.LanguageWithModel
org.languagetool.language.English
org.languagetool.language.BritishEnglish
- All Implemented Interfaces:
AutoCloseable
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBritishEnglish(boolean fakeValue) This is a fake constructor overload for the subclasses. -
Method Summary
Modifier and TypeMethodDescriptioncreateDefaultSpellingRule(ResourceBundle messages) String[]Get this language's country options , e.g.static EnglishgetName()Get this language's name in English, e.g.protected intReturns a priority for Rule or Category Id (default: 0).getRelevantLanguageModelCapableRules(ResourceBundle messages, LanguageModel lm, GlobalConfig globalConfig, UserConfig userConfig, Language motherTongue, List<Language> altLanguages) Get a list of rules that can optionally use aLanguageModel.getRelevantRules(ResourceBundle messages, UserConfig userConfig, Language motherTongue, List<Language> altLanguages) Get the rules classes that should run for texts in this language.Methods inherited from class org.languagetool.language.English
createDefaultChunker, createDefaultDisambiguator, createDefaultSentenceTokenizer, createDefaultSynthesizer, createDefaultTagger, createDefaultWordTokenizer, filterRuleMatches, getClosingDoubleQuote, getClosingSingleQuote, getDefaultLanguageVariant, getDefaultRulePriorityForStyle, getMaintainedState, getMaintainers, getMultitokenSpeller, getOpeningDoubleQuote, getOpeningSingleQuote, getRelevantLanguageModelRules, getRemoteEnhancedRules, getShortCode, hasMinMatchesRules, hasNGramFalseFriendRule, isAdvancedTypographyEnabled, prepareLineForSpellerMethods inherited from class org.languagetool.LanguageWithModel
close, getLanguageModel, initLanguageModelMethods inherited from class org.languagetool.Language
adaptSuggestion, adjustMatch, createDefaultJLanguageTool, createDefaultPostDisambiguationChunker, equals, equalsConsiderVariantsIfSpecified, getChunker, getCommonWordsPath, getConsistencyRulePrefix, getDefaultDisabledRulesForVariant, getDefaultEnabledRulesForVariant, getDefaultSpellingRule, getDefaultSpellingRule, getDisambiguationUnifier, getDisambiguationUnifierConfiguration, getDisambiguator, getIgnoredCharactersRegex, getLocale, getLocaleWithCountryAndVariant, getPatternRules, getPostDisambiguationChunker, getRelevantRemoteRules, getRelevantRulesGlobalConfig, getRuleFileNames, getRulePriority, getSentenceTokenizer, getShortCodeWithCountryAndVariant, getSynthesizer, getTagger, getTranslatedName, getUnifier, getUnifierConfiguration, getVariant, getWordTokenizer, hashCode, hasVariant, isExternal, isHiddenFromGui, isSpellcheckOnlyLanguage, isVariant, setChunker, setDisambiguator, setPostDisambiguationChunker, setSentenceTokenizer, setSynthesizer, setTagger, setWordTokenizer, toAdvancedTypography, toString
-
Field Details
-
LANGUAGE_SHORT_CODE
- See Also:
-
instantiationTrace
-
id2prio
-
-
Constructor Details
-
BritishEnglish
public BritishEnglish() -
BritishEnglish
protected BritishEnglish(boolean fakeValue) This is a fake constructor overload for the subclasses. Public constructors can only be used by the LT itself.
-
-
Method Details
-
getCountries
Description copied from class:LanguageGet this language's country options , e.g.US(as inen-US) orPL(as inpl-PL).- Overrides:
getCountriesin classEnglish- Returns:
- String[] - array of country options for the language.
-
getName
Description copied from class:LanguageGet this language's name in English, e.g.EnglishorGerman (Germany). -
getRelevantRules
public List<Rule> getRelevantRules(ResourceBundle messages, UserConfig userConfig, Language motherTongue, List<Language> altLanguages) throws IOException Description copied from class:LanguageGet the rules classes that should run for texts in this language.- Overrides:
getRelevantRulesin classEnglish- Throws:
IOException
-
createDefaultSpellingRule
- Overrides:
createDefaultSpellingRulein classEnglish- Throws:
IOException
-
getRelevantLanguageModelCapableRules
public List<Rule> getRelevantLanguageModelCapableRules(ResourceBundle messages, @Nullable LanguageModel lm, GlobalConfig globalConfig, UserConfig userConfig, Language motherTongue, List<Language> altLanguages) throws IOException Description copied from class:LanguageGet a list of rules that can optionally use aLanguageModel. Returns an empty list for languages that don't have such rules.- Overrides:
getRelevantLanguageModelCapableRulesin classEnglish- Parameters:
lm- null if no language model is available- Throws:
IOException
-
getPriorityMap
- Overrides:
getPriorityMapin classEnglish
-
getPriorityForId
Description copied from class:LanguageReturns a priority for Rule or Category Id (default: 0). Positive integers have higher priority. Negative integers have lower priority.- Overrides:
getPriorityForIdin classEnglish
-
getInstance
-