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.
-
-
Field Summary
Fields Modifier and Type Field Description private Chunkerchunkerprivate Disambiguatordisambiguatorprivate static java.lang.StringSHORT_CODEprivate Taggertagger
-
Constructor Summary
Constructors Constructor Description NoopLanguage()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ChunkergetChunker()Get this language's chunker implementation ornull.java.lang.String[]getCountries()Get this language's country options , e.g.DisambiguatorgetDisambiguator()Get this language's part-of-speech disambiguator implementation.java.util.LocalegetLocale()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.java.lang.StringgetName()Get this language's name in English, e.g.protected java.util.List<AbstractPatternRule>getPatternRules()Get the pattern rules as defined in the files returned byLanguage.getRuleFileNames().java.util.List<Rule>getRelevantRules(java.util.ResourceBundle messages, UserConfig userConfig, Language motherTongue, java.util.List<Language> altLanguages)Get the rules classes that should run for texts in this language.SentenceTokenizergetSentenceTokenizer()Get this language's sentence tokenizer implementation.java.lang.StringgetShortCode()Get this language's character code, e.g.TaggergetTagger()Get this language's part-of-speech tagger implementation.TokenizergetWordTokenizer()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 Detail
-
SHORT_CODE
private static final java.lang.String SHORT_CODE
- See Also:
- Constant Field Values
-
tagger
private Tagger tagger
-
chunker
private Chunker chunker
-
disambiguator
private Disambiguator disambiguator
-
-
Method Detail
-
getLocale
public java.util.Locale getLocale()
Description copied from class:LanguageGet this language's Java locale, not considering the country code.
-
getDisambiguator
public Disambiguator getDisambiguator()
Description copied from class:LanguageGet this language's part-of-speech disambiguator implementation.- Overrides:
getDisambiguatorin classLanguage
-
getName
public java.lang.String getName()
Description copied from class:LanguageGet this language's name in English, e.g.EnglishorGerman (Germany).
-
getShortCode
public java.lang.String getShortCode()
Description copied from class:LanguageGet this language's character code, e.g.enfor 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:
getShortCodein classLanguage
-
getCountries
public java.lang.String[] getCountries()
Description copied from class:LanguageGet this language's country options , e.g.US(as inen-US) orPL(as inpl-PL).- Specified by:
getCountriesin classLanguage- Returns:
- String[] - array of country options for the language.
-
getTagger
public Tagger getTagger()
Description copied from class:LanguageGet this language's part-of-speech tagger implementation. The tagger must not benull, but it can be a trivial pseudo-tagger that only assignsnulltags.
-
getChunker
public Chunker getChunker()
Description copied from class:LanguageGet this language's chunker implementation ornull.- Overrides:
getChunkerin classLanguage
-
getMaintainers
public Contributor[] getMaintainers()
Description copied from class:LanguageGet the name(s) of the maintainer(s) for this language ornull.- Specified by:
getMaintainersin classLanguage
-
getRelevantRules
public java.util.List<Rule> getRelevantRules(java.util.ResourceBundle messages, UserConfig userConfig, Language motherTongue, java.util.List<Language> altLanguages)
Description copied from class:LanguageGet the rules classes that should run for texts in this language.- Specified by:
getRelevantRulesin classLanguage
-
getPatternRules
protected java.util.List<AbstractPatternRule> getPatternRules()
Description copied from class:LanguageGet the pattern rules as defined in the files returned byLanguage.getRuleFileNames().- Overrides:
getPatternRulesin classLanguage
-
getSentenceTokenizer
public SentenceTokenizer getSentenceTokenizer()
Description copied from class:LanguageGet this language's sentence tokenizer implementation.- Overrides:
getSentenceTokenizerin classLanguage
-
getWordTokenizer
public Tokenizer getWordTokenizer()
Description copied from class:LanguageGet this language's word tokenizer implementation.- Overrides:
getWordTokenizerin classLanguage
-
-