public class Persian extends Language
Constructor and Description |
---|
Persian() |
Modifier and Type | Method and Description |
---|---|
SentenceTokenizer |
createDefaultSentenceTokenizer()
Creates language specific sentence tokenizer.
|
Tokenizer |
createDefaultWordTokenizer()
Creates language specific word tokenizer.
|
String[] |
getCountries()
Get this language's country options , e.g.
|
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.
|
List<Rule> |
getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages)
Get the rules classes that should run for texts in this language.
|
String |
getShortCode()
Get this language's character code, e.g.
|
adaptSuggestion, adaptSuggestions, adjustMatch, createDefaultChunker, createDefaultDisambiguator, createDefaultJLanguageTool, createDefaultPostDisambiguationChunker, createDefaultSpellingRule, createDefaultSynthesizer, createDefaultTagger, equals, equalsConsiderVariantsIfSpecified, getChunker, getClosingDoubleQuote, getClosingSingleQuote, getCommonWordsPath, getConsistencyRulePrefix, getDefaultDisabledRulesForVariant, getDefaultEnabledRulesForVariant, getDefaultLanguageVariant, getDefaultSpellingRule, getDefaultSpellingRule, getDisambiguationUnifier, getDisambiguationUnifierConfiguration, getDisambiguator, getIgnoredCharactersRegex, getLanguageModel, getLocale, getLocaleWithCountryAndVariant, getMaintainedState, getOpeningDoubleQuote, getOpeningSingleQuote, getPatternRules, getPostDisambiguationChunker, getPriorityForId, getRelevantLanguageModelCapableRules, getRelevantLanguageModelRules, getRelevantRemoteRules, getRelevantRulesGlobalConfig, getRemoteEnhancedRules, getRuleFileNames, getRulePriority, getSentenceTokenizer, getShortCodeWithCountryAndVariant, getSynthesizer, getTagger, getTranslatedName, getUnifier, getUnifierConfiguration, getVariant, getWordTokenizer, hashCode, hasMinMatchesRules, hasNGramFalseFriendRule, hasVariant, initLanguageModel, isAdvancedTypographyEnabled, isExternal, isHiddenFromGui, isSpellcheckOnlyLanguage, isVariant, mergeSuggestions, setChunker, setDisambiguator, setPostDisambiguationChunker, setSentenceTokenizer, setSynthesizer, setTagger, setWordTokenizer, toAdvancedTypography, toString
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
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 List<Rule> getRelevantRules(ResourceBundle messages, UserConfig userConfig, Language motherTongue, List<Language> altLanguages) throws IOException
Language
getRelevantRules
in class Language
IOException