public class Ukrainian extends Language
| Modifier and Type | Field and Description |
|---|---|
static Ukrainian |
DEFAULT_VARIANT |
static Pattern |
IGNORED_CHARS |
| Constructor and Description |
|---|
Ukrainian() |
| Modifier and Type | Method and Description |
|---|---|
Disambiguator |
createDefaultDisambiguator()
Creates language specific disambiguator.
|
SentenceTokenizer |
createDefaultSentenceTokenizer()
Creates language specific sentence tokenizer.
|
protected SpellingCheckRule |
createDefaultSpellingRule(ResourceBundle messages) |
Synthesizer |
createDefaultSynthesizer()
Creates language specific part-of-speech synthesizer.
|
Tagger |
createDefaultTagger()
Creates language specific part-of-speech tagger.
|
Tokenizer |
createDefaultWordTokenizer()
Creates language specific word tokenizer.
|
String |
getClosingDoubleQuote() |
String |
getClosingSingleQuote() |
String[] |
getCountries()
Get this language's country options , e.g.
|
List<String> |
getDefaultDisabledRulesForVariant()
Get disabled rules different from the default ones for this language variant.
|
Pattern |
getIgnoredCharactersRegex() |
Locale |
getLocale()
Get this language's Java locale, not considering the country code.
|
LanguageMaintainedState |
getMaintainedState()
Information about whether the support for this language in LanguageTool is actively maintained.
|
Contributor[] |
getMaintainers()
Get the name(s) of the maintainer(s) for this language or
null. |
String |
getName()
Get this language's name in English, e.g.
|
String |
getOpeningDoubleQuote() |
String |
getOpeningSingleQuote() |
List<Rule> |
getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages)
Get the rules classes that should run for texts in this language.
|
List<String> |
getRuleFileNames()
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. |
String |
getShortCode()
Get this language's character code, e.g.
|
protected Rule |
getSpellingReplacementRule(ResourceBundle messages) |
boolean |
isAdvancedTypographyEnabled() |
adaptSuggestion, adaptSuggestions, adjustMatch, createDefaultChunker, createDefaultJLanguageTool, createDefaultPostDisambiguationChunker, equals, equalsConsiderVariantsIfSpecified, getChunker, getCommonWordsPath, getConsistencyRulePrefix, getDefaultEnabledRulesForVariant, getDefaultLanguageVariant, getDefaultSpellingRule, getDefaultSpellingRule, getDisambiguationUnifier, getDisambiguationUnifierConfiguration, getDisambiguator, getLanguageModel, getLocaleWithCountryAndVariant, getPatternRules, getPostDisambiguationChunker, getPriorityForId, getRelevantLanguageModelCapableRules, getRelevantLanguageModelRules, getRelevantRemoteRules, getRelevantRulesGlobalConfig, getRemoteEnhancedRules, getRulePriority, getSentenceTokenizer, getShortCodeWithCountryAndVariant, getSynthesizer, getTagger, getTranslatedName, getUnifier, getUnifierConfiguration, getVariant, getWordTokenizer, hashCode, hasMinMatchesRules, hasNGramFalseFriendRule, hasVariant, initLanguageModel, isExternal, isHiddenFromGui, isSpellcheckOnlyLanguage, isVariant, mergeSuggestions, setChunker, setDisambiguator, setPostDisambiguationChunker, setSentenceTokenizer, setSynthesizer, setTagger, setWordTokenizer, toAdvancedTypography, toStringpublic static final Pattern IGNORED_CHARS
public static final Ukrainian DEFAULT_VARIANT
public Pattern getIgnoredCharactersRegex()
getIgnoredCharactersRegex in class Languagepublic Locale getLocale()
Languagepublic String getName()
LanguageEnglish or
German (Germany).public String getShortCode()
Languageen 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.getShortCode in class Languagepublic String[] getCountries()
LanguageUS (as in en-US) or
PL (as in pl-PL).getCountries in class Language@NotNull public Tagger createDefaultTagger()
Languagenull,
but it can be a trivial pseudo-tagger that only assigns null tags.
This function will be called each time in Language.getTagger() ()} if tagger is not set.createDefaultTagger in class Language@Nullable public Synthesizer createDefaultSynthesizer()
LanguageLanguage.getSynthesizer() if synthesizer is not set.createDefaultSynthesizer in class Languagepublic Disambiguator createDefaultDisambiguator()
LanguageLanguage.getDisambiguator() if disambiguator is not set.createDefaultDisambiguator in class Languagepublic Tokenizer createDefaultWordTokenizer()
LanguageLanguage.getWordTokenizer() if word tokenizer is not set.createDefaultWordTokenizer in class Languagepublic SentenceTokenizer createDefaultSentenceTokenizer()
LanguageLanguage.getSentenceTokenizer() if sentence tokenizer is not set.createDefaultSentenceTokenizer in class Languagepublic Contributor[] getMaintainers()
Languagenull.getMaintainers in class Language@Nullable protected SpellingCheckRule createDefaultSpellingRule(ResourceBundle messages) throws IOException
createDefaultSpellingRule in class LanguageIOExceptionpublic List<Rule> getRelevantRules(ResourceBundle messages, UserConfig userConfig, Language motherTongue, List<Language> altLanguages) throws IOException
LanguagegetRelevantRules in class LanguageIOExceptionprotected Rule getSpellingReplacementRule(ResourceBundle messages) throws IOException
IOExceptionpublic List<String> getRuleFileNames()
Language/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-.getRuleFileNames in class Languagepublic LanguageMaintainedState getMaintainedState()
LanguagegetMaintainedState in class Languagepublic List<String> getDefaultDisabledRulesForVariant()
LanguagegetDefaultDisabledRulesForVariant in class Languagepublic String getOpeningDoubleQuote()
getOpeningDoubleQuote in class Languagepublic String getClosingDoubleQuote()
getClosingDoubleQuote in class Languagepublic String getOpeningSingleQuote()
getOpeningSingleQuote in class Languagepublic String getClosingSingleQuote()
getClosingSingleQuote in class Languagepublic boolean isAdvancedTypographyEnabled()
isAdvancedTypographyEnabled in class Language