Package org.languagetool.noop
Class NoopLanguage
java.lang.Object
org.languagetool.Language
org.languagetool.noop.NoopLanguage
A language that is part of languagetool-core but that hasn't any rules.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Chunker
private Disambiguator
private static final String
private Tagger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet this language's chunker implementation ornull
.String[]
Get this language's country options , e.g.Get this language's part-of-speech disambiguator implementation.Get this language's Java locale, not considering the country code.Get the name(s) of the maintainer(s) for this language ornull
.getName()
Get this language's name in English, e.g.protected List<AbstractPatternRule>
Get the pattern rules as defined in the files returned byLanguage.getRuleFileNames()
.getRelevantRules
(ResourceBundle messages, UserConfig userConfig, Language motherTongue, List<Language> altLanguages) Get the rules classes that should run for texts in this language.Get this language's sentence tokenizer implementation.Get this language's character code, e.g.Get this language's part-of-speech tagger implementation.Get this language's word tokenizer implementation.Methods inherited from class org.languagetool.Language
equals, equalsConsiderVariantsIfSpecified, getCommonWordsPath, getDefaultDisabledRulesForVariant, getDefaultEnabledRulesForVariant, getDefaultLanguageVariant, getDisambiguationUnifier, getDisambiguationUnifierConfiguration, getIgnoredCharactersRegex, getLanguageModel, getLocaleWithCountryAndVariant, getMaintainedState, getPostDisambiguationChunker, getPriorityForId, getRelevantLanguageModelCapableRules, getRelevantLanguageModelRules, getRelevantNeuralNetworkModels, getRelevantRulesGlobalConfig, getRelevantWord2VecModelRules, getRuleFileNames, getShortCodeWithCountryAndVariant, getSynthesizer, getTranslatedName, getUnifier, getUnifierConfiguration, getVariant, getWord2VecModel, hashCode, hasNGramFalseFriendRule, hasVariant, initLanguageModel, isExternal, isHiddenFromGui, isSpellcheckOnlyLanguage, isVariant, toString
-
Field Details
-
SHORT_CODE
- See Also:
-
tagger
-
chunker
-
disambiguator
-
-
Constructor Details
-
NoopLanguage
public NoopLanguage()
-
-
Method Details
-
getLocale
Description copied from class:Language
Get this language's Java locale, not considering the country code. -
getDisambiguator
Description copied from class:Language
Get this language's part-of-speech disambiguator implementation.- Overrides:
getDisambiguator
in classLanguage
-
getName
Description copied from class:Language
Get this language's name in English, e.g.English
orGerman (Germany)
. -
getShortCode
Description copied from class:Language
Get this language's character code, e.g.en
for English. For most languages this is a two-letter code according to ISO 639-1, but for those languages that don't have a two-letter code, a three-letter code according to ISO 639-2 is returned. The country parameter (e.g. "US"), if any, is not returned.- Specified by:
getShortCode
in classLanguage
-
getCountries
Description copied from class:Language
Get this language's country options , e.g.US
(as inen-US
) orPL
(as inpl-PL
).- Specified by:
getCountries
in classLanguage
- Returns:
- String[] - array of country options for the language.
-
getTagger
Description copied from class:Language
Get this language's part-of-speech tagger implementation. The tagger must not benull
, but it can be a trivial pseudo-tagger that only assignsnull
tags. -
getChunker
Description copied from class:Language
Get this language's chunker implementation ornull
.- Overrides:
getChunker
in classLanguage
-
getMaintainers
Description copied from class:Language
Get the name(s) of the maintainer(s) for this language ornull
.- Specified by:
getMaintainers
in classLanguage
-
getRelevantRules
public List<Rule> getRelevantRules(ResourceBundle messages, UserConfig userConfig, Language motherTongue, List<Language> altLanguages) Description copied from class:Language
Get the rules classes that should run for texts in this language.- Specified by:
getRelevantRules
in classLanguage
-
getPatternRules
Description copied from class:Language
Get the pattern rules as defined in the files returned byLanguage.getRuleFileNames()
.- Overrides:
getPatternRules
in classLanguage
-
getSentenceTokenizer
Description copied from class:Language
Get this language's sentence tokenizer implementation.- Overrides:
getSentenceTokenizer
in classLanguage
-
getWordTokenizer
Description copied from class:Language
Get this language's word tokenizer implementation.- Overrides:
getWordTokenizer
in classLanguage
-