@Deprecated public class Belarusian extends Language implements AutoCloseable
Constructor and Description |
---|
Belarusian()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Deprecated.
Closes the language model, if any.
|
SentenceTokenizer |
createDefaultSentenceTokenizer()
Deprecated.
Creates language specific sentence tokenizer.
|
protected SpellingCheckRule |
createDefaultSpellingRule(ResourceBundle messages)
Deprecated.
|
Tagger |
createDefaultTagger()
Deprecated.
Creates language specific part-of-speech tagger.
|
Tokenizer |
createDefaultWordTokenizer()
Deprecated.
Creates language specific word tokenizer.
|
String |
getClosingDoubleQuote()
Deprecated.
|
String |
getClosingSingleQuote()
Deprecated.
|
String[] |
getCountries()
Deprecated.
Get this language's country options , e.g.
|
Pattern |
getIgnoredCharactersRegex()
Deprecated.
|
LanguageModel |
getLanguageModel(File indexDir)
Deprecated.
|
Contributor[] |
getMaintainers()
Deprecated.
Get the name(s) of the maintainer(s) for this language or
null . |
String |
getName()
Deprecated.
Get this language's name in English, e.g.
|
String |
getOpeningDoubleQuote()
Deprecated.
|
String |
getOpeningSingleQuote()
Deprecated.
|
protected int |
getPriorityForId(String id)
Deprecated.
Returns a priority for Rule or Category Id (default: 0).
|
List<Rule> |
getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages)
Deprecated.
Get the rules classes that should run for texts in this language.
|
String |
getShortCode()
Deprecated.
Get this language's character code, e.g.
|
boolean |
isAdvancedTypographyEnabled()
Deprecated.
|
adaptSuggestion, adaptSuggestions, adjustMatch, createDefaultChunker, createDefaultDisambiguator, createDefaultJLanguageTool, createDefaultPostDisambiguationChunker, createDefaultSynthesizer, equals, equalsConsiderVariantsIfSpecified, getChunker, getCommonWordsPath, getConsistencyRulePrefix, getDefaultDisabledRulesForVariant, getDefaultEnabledRulesForVariant, getDefaultLanguageVariant, getDefaultSpellingRule, getDefaultSpellingRule, getDisambiguationUnifier, getDisambiguationUnifierConfiguration, getDisambiguator, getLocale, getLocaleWithCountryAndVariant, getMaintainedState, getPatternRules, getPostDisambiguationChunker, getRelevantLanguageModelCapableRules, getRelevantLanguageModelRules, getRelevantRemoteRules, getRelevantRulesGlobalConfig, getRemoteEnhancedRules, getRuleFileNames, 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, toString
public Pattern getIgnoredCharactersRegex()
getIgnoredCharactersRegex
in class Language
public String getName()
Language
English
or
German (Germany)
.public String getShortCode()
Language
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.getShortCode
in class Language
public String[] getCountries()
Language
US
(as in en-US
) or
PL
(as in pl-PL
).getCountries
in class Language
@NotNull public Tagger createDefaultTagger()
Language
null
,
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
public SentenceTokenizer createDefaultSentenceTokenizer()
Language
Language.getSentenceTokenizer()
if sentence tokenizer is not set.createDefaultSentenceTokenizer
in class Language
public Tokenizer createDefaultWordTokenizer()
Language
Language.getWordTokenizer()
if word tokenizer is not set.createDefaultWordTokenizer
in class Language
public Contributor[] getMaintainers()
Language
null
.getMaintainers
in class Language
public String getOpeningDoubleQuote()
getOpeningDoubleQuote
in class Language
public String getClosingDoubleQuote()
getClosingDoubleQuote
in class Language
public String getOpeningSingleQuote()
getOpeningSingleQuote
in class Language
public String getClosingSingleQuote()
getClosingSingleQuote
in class Language
public boolean isAdvancedTypographyEnabled()
isAdvancedTypographyEnabled
in class Language
public List<Rule> getRelevantRules(ResourceBundle messages, UserConfig userConfig, Language motherTongue, List<Language> altLanguages) throws IOException
Language
getRelevantRules
in class Language
IOException
public LanguageModel getLanguageModel(File indexDir) throws IOException
getLanguageModel
in class Language
indexDir
- directory with a '3grams' sub directory which contains a Lucene index with 3gram occurrence countsnull
if this language doesn't support oneIOException
public void close() throws Exception
close
in interface AutoCloseable
Exception
protected int getPriorityForId(String id)
Language
getPriorityForId
in class Language
@Nullable protected SpellingCheckRule createDefaultSpellingRule(ResourceBundle messages) throws IOException
createDefaultSpellingRule
in class Language
IOException