Modifier and Type | Method and Description |
---|---|
static Language |
Languages.addLanguage(String name,
String code,
File dictPath) |
Language |
Language.getDefaultLanguageVariant()
Languages that have country variants need to overwrite this to select their most common variant.
|
Language |
DetectedLanguage.getDetectedLanguage() |
Language |
DetectedLanguage.getGivenLanguage() |
Language |
JLanguageTool.getLanguage()
Get the language that was used to configure this instance.
|
static Language |
Languages.getLanguageForLocale(Locale locale)
Get the best match for a locale, using American English as the final fallback if nothing
else fits.
|
static Language |
Languages.getLanguageForName(String languageName)
Get the Language object for the given language name.
|
static Language |
Languages.getLanguageForShortCode(String langCode)
Get the Language object for the given language code.
|
static Language |
Languages.getLanguageForShortCode(String langCode,
List<String> noopLanguageCodes)
Get the Language object for the given language code.
|
static Language |
Languages.getOrAddLanguageByClassName(String className)
Get the Language object for the given language class name or try to create it and add to dynamic languages.
|
Modifier and Type | Method and Description |
---|---|
static List<Language> |
Languages.get()
Language classes are detected at runtime by searching the classpath for files named
META-INF/org/languagetool/language-module.properties . |
static Map<String,Language> |
Languages.getLongCodeToLangMapping()
For internal use only.
|
static List<Language> |
Languages.getWithDemoLanguage()
Like
Languages.get() but the list contains also LanguageTool's internal 'Demo'
language, if available. |
Modifier and Type | Method and Description |
---|---|
List<FragmentWithLanguage> |
LanguageAnnotator.detectLanguages(String input,
Language mainLang,
List<Language> secondLangs) |
boolean |
Language.equalsConsiderVariantsIfSpecified(Language otherLanguage)
Return true if this is the same language as the given one, considering country
variants only if set for both languages.
|
static ResourceBundle |
ResourceBundleTools.getMessageBundle(Language lang)
Gets the ResourceBundle (i18n strings) for the given user interface language.
|
static ResourceBundle |
JLanguageTool.getMessageBundle(Language lang)
Gets the ResourceBundle (i18n strings) for the given user interface language.
|
int |
LinguServices.getNumberOfSyllables(String word,
Language lang)
Returns the number of syllable of a word
Returns -1 if the word was not found or anything goes wrong
|
List<Rule> |
Language.getRelevantLanguageModelCapableRules(ResourceBundle messages,
LanguageModel languageModel,
GlobalConfig globalConfig,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages)
Get a list of rules that can optionally use a
LanguageModel . |
List<Rule> |
Language.getRelevantRemoteRules(ResourceBundle messageBundle,
List<RemoteRuleConfig> configs,
GlobalConfig globalConfig,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages,
boolean inputLogging)
For rules that depend on a remote server; based on
RemoteRule
will be executed asynchronously, with timeout, retries, etc. |
abstract List<Rule> |
Language.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages)
Get the rules classes that should run for texts in this language.
|
List<Rule> |
Language.getRelevantRulesGlobalConfig(ResourceBundle messages,
GlobalConfig globalConfig,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages)
Get the rules classes that should run for texts in this language.
|
Function<Rule,Rule> |
Language.getRemoteEnhancedRules(ResourceBundle messageBundle,
List<RemoteRuleConfig> configs,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages,
boolean inputLogging)
For rules whose results are extended using some remote service, e.g.
|
String |
ShortDescriptionProvider.getShortDescription(String word,
Language lang) |
List<String> |
LinguServices.getSynonyms(String word,
Language lang)
Get all synonyms of a word as list of strings.
|
boolean |
Language.hasNGramFalseFriendRule(Language motherTongue)
Return true if language has ngram-based false friend rule returned by
getRelevantLanguageModelCapableRules(java.util.ResourceBundle, org.languagetool.languagemodel.LanguageModel, org.languagetool.GlobalConfig, org.languagetool.UserConfig, org.languagetool.Language, java.util.List<org.languagetool.Language>) . |
boolean |
LinguServices.isCorrectSpell(String word,
Language lang)
Returns true if the spell check is positive
|
Modifier and Type | Method and Description |
---|---|
List<FragmentWithLanguage> |
LanguageAnnotator.detectLanguages(String input,
Language mainLang,
List<Language> secondLangs) |
List<Rule> |
Language.getRelevantLanguageModelCapableRules(ResourceBundle messages,
LanguageModel languageModel,
GlobalConfig globalConfig,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages)
Get a list of rules that can optionally use a
LanguageModel . |
List<Rule> |
Language.getRelevantRemoteRules(ResourceBundle messageBundle,
List<RemoteRuleConfig> configs,
GlobalConfig globalConfig,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages,
boolean inputLogging)
For rules that depend on a remote server; based on
RemoteRule
will be executed asynchronously, with timeout, retries, etc. |
abstract List<Rule> |
Language.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages)
Get the rules classes that should run for texts in this language.
|
List<Rule> |
Language.getRelevantRulesGlobalConfig(ResourceBundle messages,
GlobalConfig globalConfig,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages)
Get the rules classes that should run for texts in this language.
|
Function<Rule,Rule> |
Language.getRemoteEnhancedRules(ResourceBundle messageBundle,
List<RemoteRuleConfig> configs,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages,
boolean inputLogging)
For rules whose results are extended using some remote service, e.g.
|
Constructor and Description |
---|
DetectedLanguage(Language givenLanguage,
Language detectedLanguage) |
DetectedLanguage(Language givenLanguage,
Language detectedLanguage,
float detectionConfidence,
String detectionSource) |
JLanguageTool(Language language)
Create a JLanguageTool and setup the built-in Java rules for the
given language.
|
JLanguageTool(Language lang,
Language motherTongue)
Create a JLanguageTool and setup the built-in rules for the
given language and false friend rules for the text language / mother tongue pair.
|
JLanguageTool(Language language,
Language motherTongue,
ResultCache cache)
Create a JLanguageTool and setup the built-in rules for the
given language and false friend rules for the text language / mother tongue pair.
|
JLanguageTool(Language language,
Language motherTongue,
ResultCache cache,
UserConfig userConfig)
Create a JLanguageTool and setup the built-in rules for the
given language and false friend rules for the text language / mother tongue pair.
|
JLanguageTool(Language language,
List<Language> altLanguages,
Language motherTongue,
ResultCache cache,
GlobalConfig globalConfig,
UserConfig userConfig) |
JLanguageTool(Language language,
List<Language> altLanguages,
Language motherTongue,
ResultCache cache,
GlobalConfig globalConfig,
UserConfig userConfig,
boolean inputLogging)
Create a JLanguageTool and setup the built-in rules for the
given language and false friend rules for the text language / mother tongue pair.
|
JLanguageTool(Language language,
ResultCache cache,
UserConfig userConfig)
Create a JLanguageTool and setup the built-in rules for the
given language and false friend rules for the text language / mother tongue pair.
|
MultiThreadedJLanguageTool(Language language) |
MultiThreadedJLanguageTool(Language language,
int threadPoolSize) |
MultiThreadedJLanguageTool(Language language,
Language motherTongue) |
MultiThreadedJLanguageTool(Language language,
Language motherTongue,
int threadPoolSize,
GlobalConfig globalConfig,
UserConfig userConfig) |
MultiThreadedJLanguageTool(Language language,
Language motherTongue,
int threadPoolSize,
UserConfig userConfig) |
MultiThreadedJLanguageTool(Language language,
Language motherTongue,
UserConfig userConfig) |
Constructor and Description |
---|
JLanguageTool(Language language,
List<Language> altLanguages,
Language motherTongue,
ResultCache cache,
GlobalConfig globalConfig,
UserConfig userConfig) |
JLanguageTool(Language language,
List<Language> altLanguages,
Language motherTongue,
ResultCache cache,
GlobalConfig globalConfig,
UserConfig userConfig,
boolean inputLogging)
Create a JLanguageTool and setup the built-in rules for the
given language and false friend rules for the text language / mother tongue pair.
|
Modifier and Type | Method and Description |
---|---|
Language |
CommandLineOptions.getLanguage() |
Language |
CommandLineOptions.getMotherTongue() |
Modifier and Type | Method and Description |
---|---|
static void |
CommandLineTools.printMatches(List<RuleMatch> ruleMatches,
int prevMatches,
String contents,
int contextSize,
Language lang,
boolean verbose)
Displays matches in a simple text format.
|
void |
CommandLineOptions.setLanguage(Language language) |
void |
CommandLineOptions.setMotherTongue(Language motherTongue) |
Constructor and Description |
---|
RuleDetails(Language lang,
String ngramPath) |
Constructor and Description |
---|
ResultToHtml(Language lang) |
Modifier and Type | Method and Description |
---|---|
static MixingSentenceSource |
MixingSentenceSource.create(List<String> dumpFileNames,
Language language) |
static MixingSentenceSource |
MixingSentenceSource.create(List<String> dumpFileNames,
Language language,
Pattern filter) |
Constructor and Description |
---|
PlainTextSentenceSource(InputStream textInput,
Language language) |
PlainTextSentenceSource(InputStream textInput,
Language language,
Pattern filter) |
Modifier and Type | Method and Description |
---|---|
SearcherResult |
Searcher.findRuleMatchesOnIndex(PatternRule rule,
Language language) |
SearcherResult |
Searcher.findRuleMatchesOnIndex(PatternRule rule,
Language language,
String fieldName) |
static void |
Indexer.run(String content,
org.apache.lucene.store.Directory dir,
Language language) |
Constructor and Description |
---|
Indexer(org.apache.lucene.store.Directory dir,
Language language) |
Indexer(org.apache.lucene.store.Directory dir,
Language language,
org.apache.lucene.analysis.Analyzer analyzer) |
PatternRuleNotFoundException(String ruleId,
Language language) |
PatternRuleQueryBuilder(Language language,
org.apache.lucene.search.IndexSearcher indexSearcher) |
PatternRuleQueryBuilder(Language language,
org.apache.lucene.search.IndexSearcher indexSearcher,
String searchFieldName) |
Modifier and Type | Method and Description |
---|---|
Language |
WikipediaQuickCheck.getLanguage(URL url) |
Modifier and Type | Method and Description |
---|---|
WikipediaQuickCheckResult |
WikipediaQuickCheck.checkPage(String plainText,
Language lang) |
Modifier and Type | Method and Description |
---|---|
Language |
Configuration.getDefaultLanguage() |
Language |
Configuration.getFixedLanguage() |
Language |
Configuration.getLanguage() |
Language |
Configuration.getMotherTongue() |
Modifier and Type | Method and Description |
---|---|
void |
Configuration.saveConfiguration(Language lang) |
void |
Configuration.saveNoBackgroundCheck(boolean noBackgroundCheck,
Language lang)
set option to switch off background check
and save configuration
|
void |
Configuration.setFixedLanguage(Language fixedLanguage) |
void |
Configuration.setLanguage(Language language) |
void |
Configuration.setMotherTongue(Language motherTongue) |
Constructor and Description |
---|
Configuration(File baseDir,
Language lang) |
Configuration(File baseDir,
String filename,
File oldConfigFile,
Language lang,
boolean isOffice) |
Configuration(File baseDir,
String filename,
Language lang) |
Configuration(Language lang)
Uses the configuration file from the default location.
|
Constructor and Description |
---|
LanguageManagerDialog(Frame owner,
List<Language> languages) |
Modifier and Type | Class and Description |
---|---|
class |
AmericanEnglish |
class |
AngolaPortuguese |
class |
Arabic
Support for Arabic.
|
class |
Asturian
Deprecated.
this language is unmaintained in LT and might be removed in a future release if we cannot find contributors for it (deprecated since 3.6)
|
class |
AustralianEnglish |
class |
AustrianGerman |
class |
BalearicCatalan |
class |
Belarusian
Deprecated.
this language is unmaintained in LT and might be removed in a future release if we cannot find contributors for it (deprecated since 3.6)
|
class |
BelgianDutch |
class |
BelgianFrench |
class |
BrazilianPortuguese |
class |
Breton |
class |
BritishEnglish |
class |
CanadianEnglish |
class |
CanadianFrench |
class |
Catalan |
class |
Chinese |
class |
Danish
Deprecated.
this language is unmaintained in LT and might be removed in a future release if we cannot find contributors for it (deprecated since 3.6)
|
class |
Dutch |
class |
English
Support for English - use the sub classes
BritishEnglish , AmericanEnglish ,
etc. if you need spell checking. |
class |
Esperanto |
class |
French |
class |
Galician |
class |
German
Support for German - use the sub classes
GermanyGerman , SwissGerman , or AustrianGerman
if you need spell checking. |
class |
GermanyGerman |
class |
Greek |
class |
Icelandic
Deprecated.
this language is unmaintained in LT and might be removed in a future release if we cannot find contributors for it (deprecated since 3.6)
|
class |
Irish |
class |
Italian |
class |
Japanese |
class |
Khmer |
class |
Lithuanian
Deprecated.
this language hasn't been maintained for years, it will be removed from LanguageTool after release 3.6
|
class |
Malayalam
Deprecated.
this language hasn't been maintained for years, it will be removed from LanguageTool after release 3.6
|
class |
MozambiquePortuguese |
class |
NewZealandEnglish |
class |
NonSwissGerman |
class |
Persian
Support for Persian.
|
class |
Polish |
class |
PortugalPortuguese |
class |
Portuguese
Post-spelling-reform Portuguese.
|
class |
Romanian |
class |
Russian |
class |
SimpleGerman
Simple German (see e.g.
|
class |
Slovak |
class |
Slovenian
Deprecated.
this language is unmaintained in LT and might be removed in a future release if we cannot find contributors for it (deprecated since 3.6)
|
class |
SouthAfricanEnglish |
class |
Spanish |
class |
SpanishVoseo |
class |
Swedish
Deprecated.
this language is unmaintained in LT and might be removed in a future release if we cannot find contributors for it (deprecated since 3.6)
Actively maintained since v6.2+
|
class |
SwissFrench |
class |
SwissGerman |
class |
Tagalog
Deprecated.
this language is unmaintained in LT and might be removed in a future release if we cannot find contributors for it (deprecated since 3.6)
|
class |
Tamil |
class |
Ukrainian |
class |
Ukrainian1992 |
class |
ValencianCatalan |
Modifier and Type | Method and Description |
---|---|
Language |
Irish.getDefaultLanguageVariant() |
Language |
Spanish.getDefaultLanguageVariant() |
Language |
Portuguese.getDefaultLanguageVariant() |
Language |
Dutch.getDefaultLanguageVariant() |
Language |
Catalan.getDefaultLanguageVariant() |
Language |
German.getDefaultLanguageVariant() |
Language |
French.getDefaultLanguageVariant() |
Language |
English.getDefaultLanguageVariant() |
static Language |
LanguageBuilder.makeAdditionalLanguage(File file) |
Modifier and Type | Method and Description |
---|---|
List<Rule> |
SimpleGerman.getRelevantLanguageModelCapableRules(ResourceBundle messages,
LanguageModel languageModel,
GlobalConfig globalConfig,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
SwissGerman.getRelevantLanguageModelCapableRules(ResourceBundle messages,
LanguageModel languageModel,
GlobalConfig globalConfig,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
GermanyGerman.getRelevantLanguageModelCapableRules(ResourceBundle messages,
LanguageModel languageModel,
GlobalConfig globalConfig,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
AustrianGerman.getRelevantLanguageModelCapableRules(ResourceBundle messages,
LanguageModel languageModel,
GlobalConfig globalConfig,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
CanadianEnglish.getRelevantLanguageModelCapableRules(ResourceBundle messages,
LanguageModel lm,
GlobalConfig globalConfig,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
English.getRelevantLanguageModelCapableRules(ResourceBundle messages,
LanguageModel lm,
GlobalConfig globalConfig,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
SouthAfricanEnglish.getRelevantLanguageModelCapableRules(ResourceBundle messages,
LanguageModel lm,
GlobalConfig globalConfig,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
AustralianEnglish.getRelevantLanguageModelCapableRules(ResourceBundle messages,
LanguageModel lm,
GlobalConfig globalConfig,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
BritishEnglish.getRelevantLanguageModelCapableRules(ResourceBundle messages,
LanguageModel lm,
GlobalConfig globalConfig,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
NewZealandEnglish.getRelevantLanguageModelCapableRules(ResourceBundle messages,
LanguageModel lm,
GlobalConfig globalConfig,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
AmericanEnglish.getRelevantLanguageModelCapableRules(ResourceBundle messages,
LanguageModel lm,
GlobalConfig globalConfig,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
SwissGerman.getRelevantRemoteRules(ResourceBundle messageBundle,
List<RemoteRuleConfig> configs,
GlobalConfig globalConfig,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages,
boolean inputLogging) |
List<Rule> |
Irish.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
SimpleGerman.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
Ukrainian.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
Tagalog.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages)
Deprecated.
|
List<Rule> |
Tamil.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
Swedish.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages)
Deprecated.
|
List<Rule> |
Spanish.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
Slovenian.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages)
Deprecated.
|
List<Rule> |
Slovak.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
Romanian.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
Malayalam.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages)
Deprecated.
|
List<Rule> |
Lithuanian.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages)
Deprecated.
|
List<Rule> |
Khmer.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
Japanese.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
Icelandic.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages)
Deprecated.
|
List<Rule> |
Greek.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
Galician.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
Esperanto.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
Danish.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages)
Deprecated.
|
List<Rule> |
Chinese.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
Belarusian.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages)
Deprecated.
|
List<Rule> |
Asturian.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages)
Deprecated.
|
List<Rule> |
Russian.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
Portuguese.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
PortugalPortuguese.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
MozambiquePortuguese.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
BrazilianPortuguese.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
AngolaPortuguese.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
Dutch.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
Breton.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
Italian.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
Catalan.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
Polish.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
SwissGerman.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
NonSwissGerman.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
GermanyGerman.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
German.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
AustrianGerman.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
French.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
Arabic.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
Persian.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
CanadianEnglish.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
English.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
SouthAfricanEnglish.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
AustralianEnglish.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
BritishEnglish.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
NewZealandEnglish.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
AmericanEnglish.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
French.getRelevantRulesGlobalConfig(ResourceBundle messages,
GlobalConfig globalConfig,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
Function<Rule,Rule> |
English.getRemoteEnhancedRules(ResourceBundle messageBundle,
List<RemoteRuleConfig> configs,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages,
boolean inputLogging) |
boolean |
English.hasNGramFalseFriendRule(Language motherTongue) |
Modifier and Type | Method and Description |
---|---|
List<Rule> |
SimpleGerman.getRelevantLanguageModelCapableRules(ResourceBundle messages,
LanguageModel languageModel,
GlobalConfig globalConfig,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
SwissGerman.getRelevantLanguageModelCapableRules(ResourceBundle messages,
LanguageModel languageModel,
GlobalConfig globalConfig,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
GermanyGerman.getRelevantLanguageModelCapableRules(ResourceBundle messages,
LanguageModel languageModel,
GlobalConfig globalConfig,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
AustrianGerman.getRelevantLanguageModelCapableRules(ResourceBundle messages,
LanguageModel languageModel,
GlobalConfig globalConfig,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
CanadianEnglish.getRelevantLanguageModelCapableRules(ResourceBundle messages,
LanguageModel lm,
GlobalConfig globalConfig,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
English.getRelevantLanguageModelCapableRules(ResourceBundle messages,
LanguageModel lm,
GlobalConfig globalConfig,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
SouthAfricanEnglish.getRelevantLanguageModelCapableRules(ResourceBundle messages,
LanguageModel lm,
GlobalConfig globalConfig,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
AustralianEnglish.getRelevantLanguageModelCapableRules(ResourceBundle messages,
LanguageModel lm,
GlobalConfig globalConfig,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
BritishEnglish.getRelevantLanguageModelCapableRules(ResourceBundle messages,
LanguageModel lm,
GlobalConfig globalConfig,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
NewZealandEnglish.getRelevantLanguageModelCapableRules(ResourceBundle messages,
LanguageModel lm,
GlobalConfig globalConfig,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
AmericanEnglish.getRelevantLanguageModelCapableRules(ResourceBundle messages,
LanguageModel lm,
GlobalConfig globalConfig,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
SwissGerman.getRelevantRemoteRules(ResourceBundle messageBundle,
List<RemoteRuleConfig> configs,
GlobalConfig globalConfig,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages,
boolean inputLogging) |
List<Rule> |
Irish.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
SimpleGerman.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
Ukrainian.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
Tagalog.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages)
Deprecated.
|
List<Rule> |
Tamil.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
Swedish.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages)
Deprecated.
|
List<Rule> |
Spanish.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
Slovenian.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages)
Deprecated.
|
List<Rule> |
Slovak.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
Romanian.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
Malayalam.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages)
Deprecated.
|
List<Rule> |
Lithuanian.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages)
Deprecated.
|
List<Rule> |
Khmer.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
Japanese.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
Icelandic.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages)
Deprecated.
|
List<Rule> |
Greek.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
Galician.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
Esperanto.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
Danish.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages)
Deprecated.
|
List<Rule> |
Chinese.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
Belarusian.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages)
Deprecated.
|
List<Rule> |
Asturian.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages)
Deprecated.
|
List<Rule> |
Russian.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
Portuguese.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
PortugalPortuguese.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
MozambiquePortuguese.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
BrazilianPortuguese.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
AngolaPortuguese.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
Dutch.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
Breton.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
Italian.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
Catalan.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
Polish.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
SwissGerman.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
NonSwissGerman.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
GermanyGerman.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
German.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
AustrianGerman.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
French.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
Arabic.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
Persian.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
CanadianEnglish.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
English.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
SouthAfricanEnglish.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
AustralianEnglish.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
BritishEnglish.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
NewZealandEnglish.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
AmericanEnglish.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
List<Rule> |
French.getRelevantRulesGlobalConfig(ResourceBundle messages,
GlobalConfig globalConfig,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
Function<Rule,Rule> |
English.getRemoteEnhancedRules(ResourceBundle messageBundle,
List<RemoteRuleConfig> configs,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages,
boolean inputLogging) |
Modifier and Type | Method and Description |
---|---|
abstract Language |
LanguageIdentifier.detectLanguage(String cleanText) |
Language |
SimpleLanguageIdentifier.detectLanguage(String cleanText) |
Language |
DefaultLanguageIdentifier.detectLanguage(String cleanText) |
Modifier and Type | Method and Description |
---|---|
Map<Language,Integer> |
CommonWordsDetector.getKnownWordsPerLanguage(String text) |
Constructor and Description |
---|
MorfologikAsturianSpellerRule(ResourceBundle messages,
Language language,
UserConfig userConfig,
List<Language> altLanguages) |
Constructor and Description |
---|
MorfologikAsturianSpellerRule(ResourceBundle messages,
Language language,
UserConfig userConfig,
List<Language> altLanguages) |
Constructor and Description |
---|
MorfologikTagalogSpellerRule(ResourceBundle messages,
Language language,
UserConfig userConfig,
List<Language> altLanguages) |
Constructor and Description |
---|
MorfologikTagalogSpellerRule(ResourceBundle messages,
Language language,
UserConfig userConfig,
List<Language> altLanguages) |
Modifier and Type | Class and Description |
---|---|
class |
NoopLanguage
A language that is part of languagetool-core but that hasn't any rules.
|
Modifier and Type | Method and Description |
---|---|
List<Rule> |
NoopLanguage.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
Modifier and Type | Method and Description |
---|---|
List<Rule> |
NoopLanguage.getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages) |
Modifier and Type | Method and Description |
---|---|
Language |
MultiDocumentsHandler.getLanguage()
Checks the language under the cursor.
|
Language |
SwJLanguageTool.getLanguage()
Get the language from LT
|
Language |
SingleDocument.getLanguage()
get language of the document
|
static Language |
MultiDocumentsHandler.getLanguage(com.sun.star.lang.Locale locale)
Get language from locale
|
Modifier and Type | Method and Description |
---|---|
static com.sun.star.lang.Locale |
LinguisticServices.getLocale(Language lang)
Get a Locale from a LT defined language
|
int |
LinguisticServices.getNumberOfSyllables(String word,
Language lang)
Returns the number of syllable of a word
Returns -1 if the word was not found or anything goes wrong
|
String[] |
LinguisticServices.getSpellAlternatives(String word,
Language lang)
Returns Alternatives to wrong spelled word
|
List<String> |
LinguisticServices.getSynonyms(String word,
Language lang)
Get all synonyms of a word as list of strings.
|
static boolean |
OfficeTools.hasStatisticalStyleRules(Language lang) |
boolean |
LinguisticServices.isCorrectSpell(String word,
Language lang)
Returns true if the spell check is positive
|
Constructor and Description |
---|
SwJLanguageTool(Language language,
Language motherTongue,
UserConfig userConfig,
Configuration config,
List<Rule> extraRemoteRules,
boolean testMode) |
Modifier and Type | Field and Description |
---|---|
protected Language |
AbstractStyleRepeatedWordRule.lang |
protected Language |
AbstractCompoundRule.lang |
protected Language |
AbstractSuppressMisspelledSuggestionsFilter.language |
protected Language |
LanguageDependentFilter.language |
protected Language |
AbstractNumberInWordFilter.language |
protected Language |
RemoteRule.ruleLanguage |
Modifier and Type | Method and Description |
---|---|
protected static Supplier<List<DisambiguationPatternRule>> |
Rule.cacheAntiPatterns(Language language,
List<List<PatternToken>> antiPatterns) |
static void |
GRPCPostProcessing.configure(Language lang,
List<RemoteRuleConfig> configs) |
static GRPCRule |
GRPCRule.create(Language language,
RemoteRuleConfig config,
boolean inputLogging,
String id,
String description,
Map<String,String> messagesByID)
Helper method to create instances of RemoteMLRule
|
static GRPCRule |
GRPCRule.create(Language language,
ResourceBundle messages,
RemoteRuleConfig config,
boolean inputLogging,
String id,
String descriptionKey,
Map<String,String> messagesByID)
Helper method to create instances of RemoteMLRule
|
static List<GRPCRule> |
GRPCRule.createAll(Language language,
List<RemoteRuleConfig> configs,
boolean inputLogging) |
static List<GRPCRule> |
GRPCRule.createAll(Language language,
List<RemoteRuleConfig> configs,
boolean inputLogging,
String prefix,
String defaultDescription) |
static List<RuleMatch> |
RemoteRuleFilters.filterMatches(Language lang,
AnalyzedSentence sentence,
List<RuleMatch> matches) |
static List<GRPCPostProcessing> |
GRPCPostProcessing.get(Language lang) |
static Predicate<RemoteRuleConfig> |
RemoteRuleConfig.isRelevantConfig(String type,
Language language) |
protected static List<DisambiguationPatternRule> |
Rule.makeAntiPatterns(List<List<PatternToken>> patternList,
Language language)
Helper for implementing
Rule.getAntiPatterns() . |
boolean |
Rule.supportsLanguage(Language language)
Whether this rule can be used for text in the given language.
|
Constructor and Description |
---|
ArabicConfusionProbabilityRule(ResourceBundle messages,
LanguageModel languageModel,
Language language) |
Constructor and Description |
---|
MorfologikBelarusianSpellerRule(ResourceBundle messages,
Language language,
UserConfig userConfig,
List<Language> altLanguages) |
Constructor and Description |
---|
MorfologikBelarusianSpellerRule(ResourceBundle messages,
Language language,
UserConfig userConfig,
List<Language> altLanguages) |
Modifier and Type | Method and Description |
---|---|
Language |
BitextRule.getSourceLanguage() |
Modifier and Type | Method and Description |
---|---|
void |
BitextRule.setSourceLanguage(Language lang)
Set the source language.
|
Constructor and Description |
---|
BretonCompoundRule(ResourceBundle messages,
Language lang,
UserConfig userConfig) |
MorfologikBretonSpellerRule(ResourceBundle messages,
Language language,
UserConfig userConfig,
List<Language> altLanguages) |
Constructor and Description |
---|
MorfologikBretonSpellerRule(ResourceBundle messages,
Language language,
UserConfig userConfig,
List<Language> altLanguages) |
Constructor and Description |
---|
MorfologikCatalanSpellerRule(ResourceBundle messages,
Language language,
UserConfig userConfig,
List<Language> altLanguages) |
Modifier and Type | Method and Description |
---|---|
protected static MorfologikMultiSpeller |
GermanSpellerRule.getSpeller(Language language,
UserConfig userConfig,
String languageVariantPlainTextDict) |
Constructor and Description |
---|
GermanSpellerRule(ResourceBundle messages,
German language,
UserConfig userConfig,
String languageVariantPlainTextDict,
List<Language> altLanguages,
LanguageModel languageModel) |
MorfologikGermanyGermanSpellerRule(ResourceBundle messages,
Language language,
UserConfig userConfig,
List<Language> altLanguages)
Deprecated.
|
Constructor and Description |
---|
GreekRedundancyRule(ResourceBundle messages,
Language language) |
GreekWordRepeatBeginningRule(ResourceBundle messages,
Language language) |
MorfologikGreekSpellerRule(ResourceBundle messages,
Language language,
UserConfig userConfig,
List<Language> altLanguages) |
ReplaceHomonymsRule(ResourceBundle messages,
Language language) |
Constructor and Description |
---|
MorfologikGreekSpellerRule(ResourceBundle messages,
Language language,
UserConfig userConfig,
List<Language> altLanguages) |
Constructor and Description |
---|
CompoundRule(ResourceBundle messages,
Language lang,
UserConfig userConfig) |
MorfologikSpanishSpellerRule(ResourceBundle messages,
Language language,
UserConfig userConfig,
List<Language> altLanguages) |
SimpleReplaceRule(ResourceBundle messages,
Language language) |
SimpleReplaceVerbsRule(ResourceBundle messages,
Language language) |
SpanishConfusionProbabilityRule(ResourceBundle messages,
LanguageModel languageModel,
Language language) |
SpanishWordRepeatBeginningRule(ResourceBundle messages,
Language language) |
SpanishWordRepeatRule(ResourceBundle messages,
Language language) |
Constructor and Description |
---|
MorfologikSpanishSpellerRule(ResourceBundle messages,
Language language,
UserConfig userConfig,
List<Language> altLanguages) |
Constructor and Description |
---|
PersianSpaceBeforeRule(ResourceBundle messages,
Language language) |
PersianWordRepeatBeginningRule(ResourceBundle messages,
Language language) |
PersianWordRepeatRule(ResourceBundle messages,
Language language) |
SimpleReplaceRule(ResourceBundle messages,
Language language) |
Constructor and Description |
---|
CompoundRule(ResourceBundle messages,
Language lang,
UserConfig userConfig) |
FrenchConfusionProbabilityRule(ResourceBundle messages,
LanguageModel languageModel,
Language language) |
MorfologikFrenchSpellerRule(ResourceBundle messages,
Language language,
UserConfig userConfig,
List<Language> altLanguages) |
QuestionWhitespaceRule(ResourceBundle messages,
Language language) |
QuestionWhitespaceStrictRule(ResourceBundle messages,
Language language) |
SimpleReplaceRule(ResourceBundle messages,
Language language) |
Constructor and Description |
---|
MorfologikFrenchSpellerRule(ResourceBundle messages,
Language language,
UserConfig userConfig,
List<Language> altLanguages) |
Constructor and Description |
---|
CompoundRule(ResourceBundle messages,
Language lang,
UserConfig userConfig) |
DativePluralStandardReplaceRule(ResourceBundle messages,
Language language) |
EnglishHomophoneRule(ResourceBundle messages,
Language language) |
IrishFGBEqReplaceRule(ResourceBundle messages,
Language language) |
IrishReplaceRule(ResourceBundle messages,
Language language) |
LogainmRule(ResourceBundle messages,
Language language) |
MorfologikIrishSpellerRule(ResourceBundle messages,
Language language,
UserConfig userConfig,
List<Language> altLanguages) |
PeopleRule(ResourceBundle messages,
Language language) |
PrestandardReplaceRule(ResourceBundle messages,
Language language) |
SpacesRule(ResourceBundle messages,
Language language) |
Constructor and Description |
---|
MorfologikIrishSpellerRule(ResourceBundle messages,
Language language,
UserConfig userConfig,
List<Language> altLanguages) |
Constructor and Description |
---|
CastWordsRule(ResourceBundle messages,
Language language) |
SimpleReplaceRule(ResourceBundle messages,
Language language) |
Constructor and Description |
---|
ItalianConfusionProbabilityRule(ResourceBundle messages,
LanguageModel languageModel,
Language language) |
ItalianWordRepeatRule(ResourceBundle messages,
Language language) |
MorfologikItalianSpellerRule(ResourceBundle messages,
Language language,
UserConfig userConfig,
List<Language> altLanguages) |
Constructor and Description |
---|
MorfologikItalianSpellerRule(ResourceBundle messages,
Language language,
UserConfig userConfig,
List<Language> altLanguages) |
Constructor and Description |
---|
KhmerSpaceBeforeRule(ResourceBundle messages,
Language language) |
KhmerUnpairedBracketsRule(ResourceBundle messages,
Language language) |
KhmerWordRepeatRule(ResourceBundle messages,
Language language) |
Constructor and Description |
---|
MorfologikLithuanianSpellerRule(ResourceBundle messages,
Language language,
UserConfig userConfig,
List<Language> altLanguages) |
Constructor and Description |
---|
MorfologikLithuanianSpellerRule(ResourceBundle messages,
Language language,
UserConfig userConfig,
List<Language> altLanguages) |
Constructor and Description |
---|
MorfologikMalayalamSpellerRule(ResourceBundle messages,
Language language,
UserConfig userConfig,
List<Language> altLanguages) |
Constructor and Description |
---|
MorfologikMalayalamSpellerRule(ResourceBundle messages,
Language language,
UserConfig userConfig,
List<Language> altLanguages) |
Modifier and Type | Method and Description |
---|---|
static double |
LanguageModelUtils.get3gramProbabilityFor(Language lang,
LanguageModel lm,
int position,
AnalyzedSentence sentence,
String candidate) |
static double |
LanguageModelUtils.get4gramProbabilityFor(Language lang,
LanguageModel lm,
int position,
AnalyzedSentence sentence,
String candidate) |
static List<String> |
GoogleTokenUtil.getGoogleTokensForString(String sentence,
boolean addStartToken,
Language language) |
Constructor and Description |
---|
ConfusionProbabilityRule(ResourceBundle messages,
LanguageModel languageModel,
Language language) |
ConfusionProbabilityRule(ResourceBundle messages,
LanguageModel languageModel,
Language language,
int grams) |
ConfusionProbabilityRule(ResourceBundle messages,
LanguageModel languageModel,
Language language,
int grams,
List<String> exceptions) |
ConfusionProbabilityRule(ResourceBundle messages,
LanguageModel languageModel,
Language language,
int grams,
List<String> exceptions,
List<List<PatternToken>> antiPatterns) |
NgramProbabilityRule(ResourceBundle messages,
LanguageModel languageModel,
Language language) |
Constructor and Description |
---|
CheckCaseRule(ResourceBundle messages,
Language language) |
CompoundRule(ResourceBundle messages,
Language lang,
UserConfig userConfig) |
DutchConfusionProbabilityRule(ResourceBundle messages,
LanguageModel languageModel,
Language language) |
DutchConfusionProbabilityRule(ResourceBundle messages,
LanguageModel languageModel,
Language language,
int grams) |
MorfologikDutchSpellerRule(ResourceBundle messages,
Language language,
UserConfig userConfig) |
MorfologikDutchSpellerRule(ResourceBundle messages,
Language language,
UserConfig userConfig,
List<Language> altLanguages) |
SpaceInCompoundRule(ResourceBundle messages,
Language language) |
Constructor and Description |
---|
MorfologikDutchSpellerRule(ResourceBundle messages,
Language language,
UserConfig userConfig,
List<Language> altLanguages) |
Modifier and Type | Field and Description |
---|---|
protected Language |
AbstractPatternRule.language |
protected Language |
XMLRuleHandler.language |
protected Language |
RepeatedPatternRuleTransformer.RepeatedPatternRule.ruleLanguage |
protected Language |
ConsistencyPatternRuleTransformer.ConsistencyPatternRule.ruleLanguage |
protected Language |
RepeatedPatternRuleTransformer.transformerLanguage |
protected Language |
ConsistencyPatternRuleTransformer.transformerLanguage |
Modifier and Type | Method and Description |
---|---|
Language |
AbstractPatternRule.getLanguage() |
Modifier and Type | Method and Description |
---|---|
static String |
CaseConversionHelper.convertCase(Match.CaseConversion conversion,
String s,
String sample,
Language lang)
Converts case of the string token according to match element attributes.
|
List<AbstractPatternRule> |
PatternRuleLoader.getRules(File file,
Language lang) |
List<AbstractPatternRule> |
FalseFriendRuleLoader.getRules(File file,
Language language,
Language motherTongue) |
List<AbstractPatternRule> |
FalseFriendRuleLoader.getRules(InputStream stream,
Language textLanguage,
Language motherTongue) |
List<AbstractPatternRule> |
PatternRuleLoader.getRules(InputStream is,
String filename,
Language lang) |
void |
PatternTokenMatcher.resolveReference(int firstMatchToken,
AnalyzedTokenReadings[] tokens,
Language language) |
boolean |
RepeatedPatternRuleTransformer.RepeatedPatternRule.supportsLanguage(Language language) |
boolean |
AbstractPatternRule.supportsLanguage(Language language) |
boolean |
ConsistencyPatternRuleTransformer.ConsistencyPatternRule.supportsLanguage(Language language) |
String[] |
MatchState.toFinalString(Language lang)
Gets all strings formatted using the match element.
|
String |
PatternRuleXmlCreator.toXML(PatternRuleId ruleId,
Language language)
Return the given pattern rule as an indented XML string.
|
Constructor and Description |
---|
AbstractPatternRule(String id,
String description,
Language language) |
AbstractPatternRule(String id,
String description,
Language language,
List<PatternToken> patternTokens,
boolean getUnified) |
AbstractPatternRule(String id,
String description,
Language language,
List<PatternToken> patternTokens,
boolean getUnified,
String message) |
AbstractTokenBasedRule(String id,
String description,
Language language,
List<PatternToken> patternTokens,
boolean getUnified) |
ConsistencyPatternRuleTransformer(Language lang) |
FalseFriendPatternRule(String id,
Language language,
List<PatternToken> patternTokens,
String description,
String message,
String shortMessage) |
FalseFriendRuleLoader(Language motherTongue) |
PatternRule(String id,
Language language,
List<PatternToken> patternTokens,
String description,
String message,
String shortMessage) |
PatternRule(String id,
Language language,
List<PatternToken> patternTokens,
String description,
String message,
String shortMessage,
String suggestionsOutMsg) |
PatternRule(String id,
Language language,
List<PatternToken> patternTokens,
String description,
String message,
String shortMessage,
String suggestionsOutMsg,
boolean isMember) |
PatternRule(String id,
Language language,
List<PatternToken> patternTokens,
String description,
String message,
String shortMessage,
String suggestionsOutMsg,
boolean isMember,
boolean interpretPosTagsPreDisambiguation) |
PatternRuleHandler(String filename,
Language lang) |
RegexPatternRule(String id,
String description,
String message,
String shortMessage,
String suggestionsOutMsg,
Language language,
Pattern regex,
int regexpMark) |
RepeatedPatternRuleTransformer(Language lang) |
Modifier and Type | Method and Description |
---|---|
List<BitextPatternRule> |
FalseFriendsAsBitextLoader.getFalseFriendsAsBitext(String filename,
Language motherTongue,
Language language) |
Constructor and Description |
---|
CompoundRule(ResourceBundle messages,
Language lang,
UserConfig userConfig) |
MorfologikPolishSpellerRule(ResourceBundle messages,
Language language,
UserConfig userConfig,
List<Language> altLanguages) |
PolishUnpairedBracketsRule(ResourceBundle messages,
Language language) |
SimpleReplaceRule(ResourceBundle messages,
Language language) |
Constructor and Description |
---|
MorfologikPolishSpellerRule(ResourceBundle messages,
Language language,
UserConfig userConfig,
List<Language> altLanguages) |
Constructor and Description |
---|
CompoundRule(ResourceBundle messages,
Language lang,
UserConfig userConfig) |
MorfologikRomanianSpellerRule(ResourceBundle messages,
Language language,
UserConfig userConfig,
List<Language> altLanguages) |
RomanianWordRepeatBeginningRule(ResourceBundle messages,
Language language) |
Constructor and Description |
---|
MorfologikRomanianSpellerRule(ResourceBundle messages,
Language language,
UserConfig userConfig,
List<Language> altLanguages) |
Constructor and Description |
---|
MorfologikRussianSpellerRule(ResourceBundle messages,
Language language,
UserConfig userConfig,
List<Language> altLanguages) |
MorfologikRussianYOSpellerRule(ResourceBundle messages,
Language language,
UserConfig userConfig,
List<Language> altLanguages) |
RussianCompoundRule(ResourceBundle messages,
Language lang,
UserConfig userConfig) |
RussianConfusionProbabilityRule(ResourceBundle messages,
LanguageModel languageModel,
Language language) |
RussianFillerWordsRule(ResourceBundle messages,
Language lang,
UserConfig userConfig) |
RussianSimpleWordRepeatRule(ResourceBundle messages,
Language language) |
RussianUnpairedBracketsRule(ResourceBundle messages,
Language language) |
Constructor and Description |
---|
MorfologikRussianSpellerRule(ResourceBundle messages,
Language language,
UserConfig userConfig,
List<Language> altLanguages) |
MorfologikRussianYOSpellerRule(ResourceBundle messages,
Language language,
UserConfig userConfig,
List<Language> altLanguages) |
Constructor and Description |
---|
CompoundRule(ResourceBundle messages,
Language lang,
UserConfig userConfig) |
MorfologikSlovakSpellerRule(ResourceBundle messages,
Language language,
UserConfig userConfig,
List<Language> altLanguages) |
Constructor and Description |
---|
MorfologikSlovakSpellerRule(ResourceBundle messages,
Language language,
UserConfig userConfig,
List<Language> altLanguages) |
Constructor and Description |
---|
MorfologikSlovenianSpellerRule(ResourceBundle messages,
Language language,
UserConfig userConfig,
List<Language> altLanguages) |
Constructor and Description |
---|
MorfologikSlovenianSpellerRule(ResourceBundle messages,
Language language,
UserConfig userConfig,
List<Language> altLanguages) |
Modifier and Type | Field and Description |
---|---|
protected Language |
SpellingCheckRule.language |
Modifier and Type | Method and Description |
---|---|
Language |
RuleWithLanguage.getLanguage() |
Modifier and Type | Method and Description |
---|---|
protected static String |
SymSpellRule.getSpellingDictBaseDir(Language lang) |
protected static SymSpell |
SymSpellRule.initDefaultDictSpeller(Language lang) |
boolean |
VagueSpellChecker.isValidWord(String word,
Language lang) |
Constructor and Description |
---|
RuleWithLanguage(Rule rule,
Language language) |
SpellingCheckRule(ResourceBundle messages,
Language language,
UserConfig userConfig) |
SpellingCheckRule(ResourceBundle messages,
Language language,
UserConfig userConfig,
List<Language> altLanguages) |
SpellingCheckRule(ResourceBundle messages,
Language language,
UserConfig userConfig,
List<Language> altLanguages,
LanguageModel languageModel) |
SymSpellRule(ResourceBundle messages,
Language language,
UserConfig userConfig) |
SymSpellRule(ResourceBundle messages,
Language language,
UserConfig userConfig,
List<Language> altLanguages) |
SymSpellRule(ResourceBundle messages,
Language language,
UserConfig userConfig,
List<Language> altLanguages,
LanguageModel languageModel) |
Constructor and Description |
---|
SpellingCheckRule(ResourceBundle messages,
Language language,
UserConfig userConfig,
List<Language> altLanguages) |
SpellingCheckRule(ResourceBundle messages,
Language language,
UserConfig userConfig,
List<Language> altLanguages,
LanguageModel languageModel) |
SymSpellRule(ResourceBundle messages,
Language language,
UserConfig userConfig,
List<Language> altLanguages) |
SymSpellRule(ResourceBundle messages,
Language language,
UserConfig userConfig,
List<Language> altLanguages,
LanguageModel languageModel) |
Modifier and Type | Field and Description |
---|---|
protected Language |
MorfologikSpellerRule.motherTongue |
Constructor and Description |
---|
MorfologikSpellerRule(ResourceBundle messages,
Language language) |
MorfologikSpellerRule(ResourceBundle messages,
Language language,
GlobalConfig globalConfig,
UserConfig userConfig,
List<Language> altLanguages,
LanguageModel languageModel,
Language motherTongue) |
MorfologikSpellerRule(ResourceBundle messages,
Language language,
UserConfig userConfig) |
MorfologikSpellerRule(ResourceBundle messages,
Language language,
UserConfig userConfig,
List<Language> altLanguages) |
Constructor and Description |
---|
MorfologikSpellerRule(ResourceBundle messages,
Language language,
GlobalConfig globalConfig,
UserConfig userConfig,
List<Language> altLanguages,
LanguageModel languageModel,
Language motherTongue) |
MorfologikSpellerRule(ResourceBundle messages,
Language language,
UserConfig userConfig,
List<Language> altLanguages) |
Modifier and Type | Field and Description |
---|---|
protected Language |
SuggestionsOrdererFeatureExtractor.language |
Constructor and Description |
---|
SuggestionsOrdererFeatureExtractor(Language lang,
LanguageModel languageModel) |
Constructor and Description |
---|
CompoundRule(ResourceBundle messages,
Language lang,
UserConfig userConfig) |
Constructor and Description |
---|
MorfologikUkrainianSpellerRule(ResourceBundle messages,
Language language,
UserConfig userConfig,
List<Language> altLanguages) |
SimpleReplaceRule(ResourceBundle messages,
MorfologikUkrainianSpellerRule morfologikSpellerRule,
Language language) |
SimpleReplaceSoftRule(ResourceBundle messages,
Language language) |
SimpleReplaceSpelling1992Rule(ResourceBundle messages,
Language language) |
TokenAgreementAdjNounRule(ResourceBundle messages,
Language ukrainian) |
TokenAgreementNumrNounRule(ResourceBundle messages,
Language ukrainian) |
TokenAgreementPrepNounRule(ResourceBundle messages,
Language ukrainian) |
TokenAgreementVerbNounRule(ResourceBundle messages,
Language ukrainian) |
UkrainianUppercaseSentenceStartRule(ResourceBundle messages,
Language language,
IncorrectExample incorrectExample,
CorrectExample correctExample) |
UkrainianWordRepeatRule(ResourceBundle messages,
Language language) |
Constructor and Description |
---|
MorfologikUkrainianSpellerRule(ResourceBundle messages,
Language language,
UserConfig userConfig,
List<Language> altLanguages) |
Constructor and Description |
---|
ChineseConfusionProbabilityRule(ResourceBundle messages,
LanguageModel languageModel,
Language language) |
Modifier and Type | Method and Description |
---|---|
void |
ServerMetricsCollector.logCheck(Language language,
long milliseconds,
int textSize,
int matchCount,
JLanguageTool.Mode mode) |
Constructor and Description |
---|
BaseSynthesizer(String resourceFileName,
String tagFileName,
Language lang)
Deprecated.
|
BaseSynthesizer(String sorosFileName,
String resourceFileName,
String tagFileName,
Language lang)
Deprecated.
|
FrenchSynthesizer(Language lang)
Deprecated.
|
GermanSynthesizer(Language lang)
Deprecated.
|
Constructor and Description |
---|
ArabicSynthesizer(Language lang)
Deprecated.
|
Constructor and Description |
---|
GreekSynthesizer(Language lang)
Deprecated.
|
Constructor and Description |
---|
EnglishSynthesizer(Language lang)
Deprecated.
|
Constructor and Description |
---|
SpanishSynthesizer(Language lang)
Deprecated.
|
Constructor and Description |
---|
IrishSynthesizer(Language lang)
Deprecated.
|
Constructor and Description |
---|
GalicianSynthesizer(Language lang)
Deprecated.
|
Constructor and Description |
---|
ItalianSynthesizer(Language lang)
Deprecated.
|
Constructor and Description |
---|
DutchSynthesizer(Language lang)
Deprecated.
|
Constructor and Description |
---|
PolishSynthesizer(Language lang)
Deprecated.
|
Constructor and Description |
---|
PortugueseSynthesizer(Language lang) |
Constructor and Description |
---|
RomanianSynthesizer(Language lang)
Deprecated.
|
Constructor and Description |
---|
RussianSynthesizer(Language lang)
Deprecated.
|
Constructor and Description |
---|
SlovakSynthesizer(Language lang)
Deprecated.
|
Constructor and Description |
---|
SwedishSynthesizer(Language lang)
Deprecated.
|
Constructor and Description |
---|
UkrainianSynthesizer(Language lang)
Deprecated.
|
Constructor and Description |
---|
CatalanTagger(Language language) |
Constructor and Description |
---|
CatalanHybridDisambiguator(Language lang)
Calls two disambiguator classes: (1) a chunker; (2) a rule-based
disambiguator.
|
Constructor and Description |
---|
SpanishHybridDisambiguator(Language lang) |
Constructor and Description |
---|
PortugueseHybridDisambiguator(Language lang) |
Modifier and Type | Method and Description |
---|---|
List<DisambiguationPatternRule> |
DisambiguationRuleLoader.getRules(InputStream stream,
Language language,
String xmlPath) |
protected List<DisambiguationPatternRule> |
XmlRuleDisambiguator.loadPatternRules(String filename,
Language language)
Load disambiguation rules from an XML file.
|
Constructor and Description |
---|
DisambiguationPatternRule(String id,
String description,
Language language,
List<PatternToken> patternTokens,
String disambiguatedPOS,
Match posSelect,
DisambiguationPatternRule.DisambiguatorAction disambAction) |
XmlRuleDisambiguator(Language language) |
XmlRuleDisambiguator(Language language,
boolean useGlobalDisambiguation) |
Constructor and Description |
---|
GermanRuleDisambiguator(Language lang) |
Constructor and Description |
---|
EnglishHybridDisambiguator(Language lang) |
Constructor and Description |
---|
SRXSentenceTokenizer(Language language)
Build a sentence tokenizer based on the rules in the
segment.srx file
that comes with LanguageTool. |
SRXSentenceTokenizer(Language language,
String srxInClassPath) |
Modifier and Type | Method and Description |
---|---|
static String |
StringTools.addSpace(String word,
Language language)
Adds spaces before words that are not punctuation.
|
static List<BitextRule> |
Tools.getBitextRules(Language source,
Language target)
Gets default bitext rules for a given pair of languages
|
static List<BitextRule> |
Tools.getBitextRules(Language source,
Language target,
File externalBitextRuleFile)
Gets default bitext rules for a given pair of languages
|
static boolean |
Tools.isParagraphEnd(List<AnalyzedSentence> sentences,
int nTest,
Language lang) |
static String |
StringTools.toId(String input,
Language language)
Will turn a string into a typical rule ID, i.e. uppercase and
"_" instead of spaces.
|
static String |
StringTools.uppercaseFirstChar(String str,
Language language)
Like
StringTools.uppercaseFirstChar(String) , but handles a special case for Dutch (IJ in
e.g. |
Constructor and Description |
---|
RuleMatchesAsJsonSerializer(int compactMode,
Language lang) |