Package org.languagetool
Class DynamicLanguage
java.lang.Object
org.languagetool.Language
org.languagetool.DynamicLanguage
- Direct Known Subclasses:
DynamicHunspellLanguage
,DynamicMorfologikLanguage
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionA file with commons words, either in the classpath or as a filename in the file system.String[]
Get this language's country options , e.g.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()
.Get the location of the rule file(s) in a form like/org/languagetool/rules/de/grammar.xml
, i.e.Get this language's character code, e.g.boolean
Whether this language supports spell checking only and no advanced grammar and style checking.Methods inherited from class org.languagetool.Language
equals, equalsConsiderVariantsIfSpecified, getChunker, getDefaultDisabledRulesForVariant, getDefaultEnabledRulesForVariant, getDefaultLanguageVariant, getDisambiguationUnifier, getDisambiguationUnifierConfiguration, getDisambiguator, getIgnoredCharactersRegex, getLanguageModel, getLocale, getLocaleWithCountryAndVariant, getMaintainedState, getPostDisambiguationChunker, getPriorityForId, getRelevantLanguageModelCapableRules, getRelevantLanguageModelRules, getRelevantNeuralNetworkModels, getRelevantRules, getRelevantRulesGlobalConfig, getRelevantWord2VecModelRules, getSentenceTokenizer, getShortCodeWithCountryAndVariant, getSynthesizer, getTagger, getTranslatedName, getUnifier, getUnifierConfiguration, getVariant, getWord2VecModel, getWordTokenizer, hashCode, hasNGramFalseFriendRule, hasVariant, initLanguageModel, isExternal, isHiddenFromGui, isVariant, toString
-
Field Details
-
name
-
code
-
dictPath
-
-
Constructor Details
-
DynamicLanguage
-
-
Method Details
-
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
-
getName
Description copied from class:Language
Get this language's name in English, e.g.English
orGerman (Germany)
. -
getRuleFileNames
Description copied from class:Language
Get the location of the rule file(s) in a form like/org/languagetool/rules/de/grammar.xml
, i.e. a path in the classpath. The files must exist or an exception will be thrown, unless the filename contains the string-test-
.- Overrides:
getRuleFileNames
in classLanguage
-
getPatternRules
Description copied from class:Language
Get the pattern rules as defined in the files returned byLanguage.getRuleFileNames()
.- Overrides:
getPatternRules
in classLanguage
-
getCommonWordsPath
Description copied from class:Language
A file with commons words, either in the classpath or as a filename in the file system.- Overrides:
getCommonWordsPath
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.
-
getMaintainers
Description copied from class:Language
Get the name(s) of the maintainer(s) for this language ornull
.- Specified by:
getMaintainers
in classLanguage
-
isSpellcheckOnlyLanguage
public boolean isSpellcheckOnlyLanguage()Description copied from class:Language
Whether this language supports spell checking only and no advanced grammar and style checking.- Overrides:
isSpellcheckOnlyLanguage
in classLanguage
-