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 Chunkerprivate Disambiguatorprivate static final Stringprivate 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:LanguageGet this language's Java locale, not considering the country code. -
getDisambiguator
Description copied from class:LanguageGet this language's part-of-speech disambiguator implementation.- Overrides:
getDisambiguatorin classLanguage
-
getName
Description copied from class:LanguageGet this language's name in English, e.g.EnglishorGerman (Germany). -
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
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
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
Description copied from class:LanguageGet this language's chunker implementation ornull.- Overrides:
getChunkerin classLanguage
-
getMaintainers
Description copied from class:LanguageGet the name(s) of the maintainer(s) for this language ornull.- Specified by:
getMaintainersin classLanguage
-
getRelevantRules
public List<Rule> getRelevantRules(ResourceBundle messages, UserConfig userConfig, Language motherTongue, List<Language> altLanguages) Description copied from class:LanguageGet the rules classes that should run for texts in this language.- Specified by:
getRelevantRulesin classLanguage
-
getPatternRules
Description copied from class:LanguageGet the pattern rules as defined in the files returned byLanguage.getRuleFileNames().- Overrides:
getPatternRulesin classLanguage
-
getSentenceTokenizer
Description copied from class:LanguageGet this language's sentence tokenizer implementation.- Overrides:
getSentenceTokenizerin classLanguage
-
getWordTokenizer
Description copied from class:LanguageGet this language's word tokenizer implementation.- Overrides:
getWordTokenizerin classLanguage
-