Package org.languagetool.noop
Class NoopLanguage
- java.lang.Object
-
- org.languagetool.Language
-
- org.languagetool.noop.NoopLanguage
-
public class NoopLanguage extends Language
A language that is part of languagetool-core but that hasn't any rules.
-
-
Constructor Summary
Constructors Constructor Description NoopLanguage()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Chunker
getChunker()
Get this language's chunker implementation ornull
.String[]
getCountries()
Get this language's country options , e.g.Disambiguator
getDisambiguator()
Get this language's part-of-speech disambiguator implementation.Locale
getLocale()
Get this language's Java locale, not considering the country code.Contributor[]
getMaintainers()
Get the name(s) of the maintainer(s) for this language ornull
.String
getName()
Get this language's name in English, e.g.protected List<AbstractPatternRule>
getPatternRules()
Get the pattern rules as defined in the files returned byLanguage.getRuleFileNames()
.List<Rule>
getRelevantRules(ResourceBundle messages, UserConfig userConfig, Language motherTongue, List<Language> altLanguages)
Get the rules classes that should run for texts in this language.SentenceTokenizer
getSentenceTokenizer()
Get this language's sentence tokenizer implementation.String
getShortCode()
Get this language's character code, e.g.Tagger
getTagger()
Get this language's part-of-speech tagger implementation.Tokenizer
getWordTokenizer()
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
-
-
-
-
Method Detail
-
getLocale
public Locale getLocale()
Description copied from class:Language
Get this language's Java locale, not considering the country code.
-
getDisambiguator
public Disambiguator getDisambiguator()
Description copied from class:Language
Get this language's part-of-speech disambiguator implementation.- Overrides:
getDisambiguator
in classLanguage
-
getName
public String getName()
Description copied from class:Language
Get this language's name in English, e.g.English
orGerman (Germany)
.
-
getShortCode
public String 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
public String[] 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
public Tagger 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
public Chunker getChunker()
Description copied from class:Language
Get this language's chunker implementation ornull
.- Overrides:
getChunker
in classLanguage
-
getMaintainers
public Contributor[] 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
protected List<AbstractPatternRule> getPatternRules()
Description copied from class:Language
Get the pattern rules as defined in the files returned byLanguage.getRuleFileNames()
.- Overrides:
getPatternRules
in classLanguage
-
getSentenceTokenizer
public SentenceTokenizer getSentenceTokenizer()
Description copied from class:Language
Get this language's sentence tokenizer implementation.- Overrides:
getSentenceTokenizer
in classLanguage
-
getWordTokenizer
public Tokenizer getWordTokenizer()
Description copied from class:Language
Get this language's word tokenizer implementation.- Overrides:
getWordTokenizer
in classLanguage
-
-