Modifier and Type | Method and Description |
---|---|
List<Rule> |
JLanguageTool.getAllActiveOfficeRules()
Works like getAllActiveRules but overrides defaults by office defaults
|
List<Rule> |
JLanguageTool.getAllActiveRules()
Get all active (not disabled) rules for the current language that are built-in or that
have been added using e.g.
|
List<Rule> |
JLanguageTool.getAllRules()
Get all rules for the current language that are built-in or that have been
added using
JLanguageTool.addRule(Rule) . |
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.getRelevantLanguageModelRules(ResourceBundle messages,
LanguageModel languageModel,
UserConfig userConfig)
Get a list of rules that require 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.
|
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.
|
List<Rule> |
UserConfig.getRules() |
Modifier and Type | Method and Description |
---|---|
void |
JLanguageTool.addRule(Rule rule)
Add a rule to be used by the next call to the check methods like
JLanguageTool.check(String) . |
int |
Language.getRulePriority(Rule rule)
Returns a priority for Rule (default: 0).
|
abstract boolean |
Premium.isPremiumRule(Rule rule) |
boolean |
PremiumOff.isPremiumRule(Rule rule) |
static boolean |
Premium.isTempNotPremium(Rule rule) |
void |
LinguServices.setThesaurusRelevantRule(Rule rule)
Set a thesaurus relevant rule
|
Modifier and Type | Method and Description |
---|---|
List<RuleMatch> |
JLanguageTool.checkAnalyzedSentence(JLanguageTool.ParagraphHandling paraMode,
List<Rule> rules,
AnalyzedSentence analyzedSentence)
Deprecated.
use one of the
JLanguageTool.check(java.lang.String) methods instead. |
List<RuleMatch> |
JLanguageTool.checkAnalyzedSentence(JLanguageTool.ParagraphHandling paraMode,
List<Rule> rules,
AnalyzedSentence analyzedSentence,
boolean checkRemoteRules)
This is an internal method that's public only for technical reasons, please use one
of the
JLanguageTool.check(String) methods instead. |
Constructor and Description |
---|
UserConfig(List<String> userSpecificSpellerWords,
List<Rule> userSpecificRules,
Map<String,Integer> ruleValues,
int maxSpellingSuggestions,
Long premiumUid,
String userDictName,
Long userDictCacheSize,
LinguServices linguServices,
boolean filterDictionaryMatches,
List<String> abTest,
Long textSessionId,
boolean hidePremiumMatches,
List<String> preferredLanguages) |
Modifier and Type | Method and Description |
---|---|
void |
Configuration.initStyleCategories(List<Rule> allRules) |
boolean |
ConfigurationDialog.show(List<Rule> rules) |
boolean |
ConfigurationDialog.showPanel(List<Rule> rules) |
Modifier and Type | Field and Description |
---|---|
protected static com.google.common.cache.LoadingCache<String,List<Rule>> |
English.cache |
Modifier and Type | Method and Description |
---|---|
protected Rule |
Ukrainian.getSpellingReplacementRule(ResourceBundle messages) |
Modifier and Type | Method and Description |
---|---|
int |
Catalan.getRulePriority(Rule rule) |
int |
English.getRulePriority(Rule rule) |
Modifier and Type | Class and Description |
---|---|
class |
MorfologikAsturianSpellerRule |
Modifier and Type | Class and Description |
---|---|
class |
MorfologikTagalogSpellerRule |
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> |
SwJLanguageTool.getAllActiveOfficeRules()
Get all active office rules
|
List<Rule> |
SwJLanguageTool.getAllActiveRules()
Get all active rules
|
List<Rule> |
SwJLanguageTool.getAllRules()
Get all rules
|
Modifier and Type | Method and Description |
---|---|
void |
LinguisticServices.setThesaurusRelevantRule(Rule rule)
Set a thesaurus relevant rule
|
Constructor and Description |
---|
SwJLanguageTool(Language language,
Language motherTongue,
UserConfig userConfig,
Configuration config,
List<Rule> extraRemoteRules,
boolean testMode) |
Modifier and Type | Method and Description |
---|---|
static boolean |
LevelRule.hasStatisticalOptions(Rule rule) |
static boolean |
LevelRule.isLevelRule(Rule rule) |
Modifier and Type | Class and Description |
---|---|
class |
AbstractCheckCaseRule
A rule that checks case in phrases
|
class |
AbstractCompoundRule
Checks that compounds (if in the list) are not written as separate words.
|
class |
AbstractDashRule
Another use of the compounds file -- check for compounds written with
dashes instead of hyphens (for example, Rabka — Zdrój).
|
class |
AbstractFillerWordsRule
A rule that gives hints about the use of filler words.
|
class |
AbstractPunctuationCheckRule
A rule that matches "
|
class |
AbstractRepeatedWordsRule |
class |
AbstractSimpleReplaceRule
A rule that matches words which should not be used and suggests
correct ones instead.
|
class |
AbstractSimpleReplaceRule2
A rule that matches words which should not be used and suggests correct ones instead.
|
class |
AbstractSpaceBeforeRule
An abstract rule that checks if there is a missing space before some conjunctions.
|
class |
AbstractSpecificCaseRule
A rule that matches words which need a specific upper/lowercase spelling.
|
class |
AbstractStatisticSentenceStyleRule
A rule that gives hints when a defined condition is fulfilled
and the percentage of hints in the text exceeds the given limit.
|
class |
AbstractStatisticStyleRule
A rule that gives hints when a defined condition is fulfilled
and the percentage of hints in the text exceeds the given limit.
|
class |
AbstractStyleRepeatedWordRule
An abstract rule checks the appearance of same words in a sentence or in two consecutive sentences.
|
class |
AbstractStyleTooOftenUsedWordRule
The method gives stylistic hints that a word is being used too often
when the set percentage has been exceeded.
|
class |
AbstractUnitConversionRule
Base class providing support for detecting, parsing and converting between measurements in different units
|
class |
AbstractWordCoherencyRule
A rule that matches words for which two different spellings are used
throughout the document.
|
class |
AdvancedWordRepeatRule
Rule for detecting same words in the sentence but not just in a row.
|
class |
BERTSuggestionRanking
reorder suggestions from another rule using BERT as a LM
|
class |
CommaWhitespaceRule
A rule that matches periods, commas and closing parenthesis preceded by whitespace and
opening parenthesis followed by whitespace.
|
class |
DemoRule
A simple demo rule as an example for how to implement your own Java-based
rule in LanguageTool.
|
class |
DoublePunctuationRule
A rule that matches ".."
|
class |
EmptyLineRule
A rule that checks for empty lines.
|
class |
FakeRule |
class |
GenericUnpairedBracketsRule
Rule that finds unpaired quotes, brackets etc.
|
class |
GRPCRule
Base class fur rules running on external servers;
see gRPC service definition in languagetool-core/src/main/proto/ml_server.proto
See #create(Language, ResourceBundle, RemoteRuleConfig, boolean, String, String, Map) for an easy way to add rules; return rule in Language::getRelevantRemoteRules
add it like this:
public List<Rule> getRelevantRemoteRules(ResourceBundle messageBundle, List<RemoteRuleConfig> configs, GlobalConfig globalConfig, UserConfig userConfig, Language motherTongue, List<Language> altLanguages) throws IOException {
List<Rule> rules = new ArrayList<>(super.getRelevantRemoteRules(
messageBundle, configs, globalConfig, userConfig, motherTongue, altLanguages));
Rule exampleRule = GRPCRule.create(messageBundle,
RemoteRuleConfig.getRelevantConfig("EXAMPLE_ID", configs),
"EXAMPLE_ID", "example_rule_id",
Collections.singletonMap("example_match_id", "example_rule_message"));
rules.add(exampleRule);
return rules;
}
|
static class |
GRPCRule.GRPCSubRule
Internal rule to create rule matches with IDs based on Match Sub-IDs
|
class |
LongParagraphRule
A rule that warns on long paragraphs.
|
class |
LongSentenceRule
A rule that warns on long sentences.
|
class |
MultipleWhitespaceRule
Check if there is duplicated whitespace in a sentence.
|
class |
ParagraphRepeatBeginningRule
Check if to paragraphs begin with the same word.
|
class |
PunctuationMarkAtParagraphEnd
A rule that checks for a punctuation mark at the end of a paragraph.
|
class |
PunctuationMarkAtParagraphEnd2
A rule that checks for a punctuation mark at the end of a paragraph.
|
class |
ReadabilityRule
A rule that checks the readability of English text (using the Flesch-Reading-Ease Formula)
If tooEasyTest == true, the rule tests if paragraph level > level (readability is too easy)
If tooEasyTest == false, the rule tests if paragraph level < level (readability is too difficult)
|
class |
RemoteRule |
class |
SentenceWhitespaceRule
Checks that there's whitespace between sentences.
|
class |
SpecificIdRule |
class |
TestRemoteRule |
class |
TextLevelRule
A rule that considers the complete text, not just one sentence after
the other.
|
class |
UppercaseSentenceStartRule
Checks that a sentence starts with an uppercase letter.
|
class |
WhiteSpaceAtBeginOfParagraph
A rule that checks for WhiteSpaces at the begin of a paragraph
|
class |
WhiteSpaceBeforeParagraphEnd
A rule that checks for a whitespace at the end of a paragraph
|
class |
WhitespaceBeforePunctuationRule
A rule that matches several punctuation signs such as
: ; and % preceded by whitespace. |
class |
WordRepeatBeginningRule
Check if three successive sentences begin with the same word, e.g.
|
class |
WordRepeatRule
Check if a word is repeated, e.g.
|
class |
WrongWordInContextRule
Check if there is a confusion of two words (which might have a similar spelling) depending on the context.
|
Modifier and Type | Method and Description |
---|---|
Rule |
RuleMatch.getRule() |
Constructor and Description |
---|
BERTSuggestionRanking(Language language,
Rule rule,
RemoteRuleConfig config,
boolean inputLogging) |
RuleMatch(Rule rule,
AnalyzedSentence sentence,
int fromPos,
int toPos,
int patternStartPos,
int patternEndPos,
String message,
String shortMessage)
Creates a RuleMatch object, taking the rule that triggered
this match, position of the match and an explanation message.
|
RuleMatch(Rule rule,
AnalyzedSentence sentence,
int fromPos,
int toPos,
int patternFromPos,
int patternToPos,
String message,
String shortMessage,
boolean startWithUppercase,
boolean isAllUppercase,
String suggestionsOutMsg,
boolean setOriginalErrorStr)
Creates a RuleMatch object, taking the rule that triggered
this match, position of the match and an explanation message.
|
RuleMatch(Rule rule,
AnalyzedSentence sentence,
int fromPos,
int toPos,
int patternFromPos,
int patternToPos,
String message,
String shortMessage,
boolean startWithUppercase,
String suggestionsOutMsg) |
RuleMatch(Rule rule,
AnalyzedSentence sentence,
int fromPos,
int toPos,
String message)
Creates a RuleMatch object, taking the rule that triggered
this match, position of the match and an explanation message.
|
RuleMatch(Rule rule,
AnalyzedSentence sentence,
int fromPos,
int toPos,
String message,
String shortMessage)
Creates a RuleMatch object, taking the rule that triggered
this match, position of the match and an explanation message.
|
RuleMatch(Rule rule,
AnalyzedSentence sentence,
int fromPos,
int toPos,
String message,
String shortMessage,
List<String> suggestions)
Create a rule match with any suggestions in the message overridden by the given suggestions
|
RuleMatch(Rule rule,
int fromPos,
int toPos,
String message)
Deprecated.
use a constructor that also takes an
AnalyzedSentence parameter (deprecated since 4.0) |
RuleMatch(Rule rule,
int fromPos,
int toPos,
String message,
String shortMessage,
boolean startWithUppercase,
String suggestionsOutMsg)
Deprecated.
use a constructor that also takes an
AnalyzedSentence parameter (deprecated since 4.0) |
SuggestionFilter(Rule rule,
Language lang) |
Modifier and Type | Class and Description |
---|---|
class |
ArabicCommaWhitespaceRule |
class |
ArabicConfusionProbabilityRule |
class |
ArabicDarjaRule
A rule that matches words which should not be used and suggests correct ones instead.
|
class |
ArabicDiacriticsRule
A rule that matches words which are complex and suggests easier to understand alternatives.
|
class |
ArabicDoublePunctuationRule |
class |
ArabicHomophonesRule
A rule that matches words which are homophones and suggests easier to understand alternatives.
|
class |
ArabicHunspellSpellerRule |
class |
ArabicInflectedOneWordReplaceRule |
class |
ArabicQuestionMarkWhitespaceRule |
class |
ArabicRedundancyRule
A rule that matches redundant expression.
|
class |
ArabicSemiColonWhitespaceRule |
class |
ArabicSimpleReplaceRule |
class |
ArabicTransVerbRule |
class |
ArabicWordCoherencyRule
Arabic version of
AbstractWordCoherencyRule |
class |
ArabicWordinessRule
A rule that matches wordy expressions.
|
class |
ArabicWordRepeatRule
Word repeat rule for َArabic, to avoid false alarms in the generic word repetition rule.
|
class |
ArabicWrongWordInContextRule |
Modifier and Type | Class and Description |
---|---|
class |
BelarusianSpecificCaseRule
A rule that matches words which need a specific upper/lowercase spelling.
|
class |
MorfologikBelarusianSpellerRule |
Modifier and Type | Class and Description |
---|---|
class |
BitextRule
Abstract bitext rule class.
|
class |
DifferentLengthRule
Checks if the translation has a really different length than the source
(smaller than 30% or longer by 250%).
|
class |
DifferentPunctuationRule
Checks if the translation has the same ending punctuation as the source.
|
class |
SameTranslationRule
Checks if the translation for segments that have more than two words
is different.
|
Modifier and Type | Class and Description |
---|---|
class |
BretonCompoundRule
Checks that compounds (if in the list) are not written as separate words.
|
class |
MorfologikBretonSpellerRule |
class |
TopoReplaceRule
A rule that matches place names in French which should be
translated in Breton.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractSimpleReplaceLemmasRule
Adds simple replacement using lemmas
|
class |
CatalanRepeatedWordsRule |
class |
CatalanUnpairedBracketsRule |
class |
CatalanUnpairedExclamationMarksRule |
class |
CatalanUnpairedQuestionMarksRule |
class |
CatalanWordRepeatBeginningRule
Adds Catalan suggestions to
WordRepeatBeginningRule . |
class |
CatalanWordRepeatRule
Avoid false alarms in the word repetition rule.
|
class |
CatalanWrongWordInContextRule |
class |
CheckCaseRule |
class |
MorfologikCatalanSpellerRule |
class |
PronomFebleDuplicateRule |
class |
ReplaceOperationNamesRule
A rule that suggests better names for technical operation names
Loads the relevant words from
/ca/replace_operationnames.txt . |
class |
SimpleReplaceAdverbsMent
Suggestions for replacing adverbs -ment
Loads the relevant word forms from
rules/ca/replace_adverbs_ment.txt . |
class |
SimpleReplaceAnglicism
A rule that matches words which should not be used and suggests correct ones
instead.
|
class |
SimpleReplaceBalearicRule
A rule that matches words which should not be used and suggests
correct ones instead.
|
class |
SimpleReplaceDiacriticsIEC
Dicritics with IEC rules.
|
class |
SimpleReplaceDNVColloquialRule
A rule that matches lemmas found only in DNV (AVL dictionary) and suggests
alternative words.
|
class |
SimpleReplaceDNVRule
A rule that matches lemmas found only in DNV (AVL dictionary) and suggests
alternative words.
|
class |
SimpleReplaceDNVSecondaryRule
A rule that matches lemmas found only in DNV (AVL dictionary) and suggests
alternative words.
|
class |
SimpleReplaceMultiwordsRule
A rule that matches words which should not be used and suggests correct ones
instead.
|
class |
SimpleReplaceVerbsRule
A rule that matches incorrect verbs (including all inflected forms) and
suggests correct ones instead.
|
Modifier and Type | Class and Description |
---|---|
class |
AgreementRule
Simple agreement checker for German noun phrases.
|
class |
AgreementRule2
Simple agreement checker for German noun phrases.
|
class |
AustrianGermanSpellerRule |
class |
CaseRule
Check that adjectives and verbs are not written with an uppercase
first letter (except at the start of a sentence) and cases
like this: Das laufen fällt mir leicht.
|
class |
CompoundCoherencyRule
Check consistent spelling for German compounds.
|
class |
CompoundInfinitivRule
Checks the compound spelling of infinitive clause (Erweiterter Infinitiv mit zu)
|
class |
ConjunctionAtBeginOfSentenceRule
A rule that gives Hints about the use of German filler words.
|
class |
DashRule
Prüft, dass in Bindestrich-Komposita kein Leerzeichen eingefügt wird (wie z.B. in 'Diäten- Erhöhung').
|
class |
DuUpperLowerCaseRule
Coherent use of Du/du, Dich/dich etc.
|
class |
GermanCommaWhitespaceRule |
class |
GermanCompoundRule
Checks that compounds are not written as separate words.
|
class |
GermanConfusionProbabilityRule |
class |
GermanDoublePunctuationRule
Double punctuation rule with German-specific error message.
|
class |
GermanFillerWordsRule
A rule that gives Hints about the use of German filler words.
|
class |
GermanParagraphRepeatBeginningRule
Check if to paragraphs begin with the same word.
|
class |
GermanReadabilityRule
A rule that checks the readability of German text (using the Flesch-Reading-Ease Formula)
If tooEasyTest == true, the rule tests if paragraph level > level (readability is too easy)
If tooEasyTest == false, the rule tests if paragraph level < level (readability is too difficult)
|
class |
GermanRepeatedWordsRule |
class |
GermanSpellerRule |
class |
GermanStyleRepeatedWordRule
A rule checks the appearance of same words in a sentence or in two consecutive sentences.
|
class |
GermanUnpairedBracketsRule |
class |
GermanWordRepeatBeginningRule
Extends
WordRepeatBeginningRule by a list of German adverbs ("Konjunktionaladverbien")
for a more precise error message. |
class |
GermanWordRepeatRule
Check if a word is repeated twice, taking into account an exception
for German where e.g. "..., die die ..." is often okay.
|
class |
GermanWrongWordInContextRule |
class |
MissingCommaRelativeClauseRule
A rule checks a sentence for a missing comma before or after a relative clause (only for German language).
|
class |
MissingVerbRule
Checks that a sentence contains at least one verb.
|
class |
MorfologikGermanyGermanSpellerRule
Deprecated.
since 4.4, use GermanSpellerRule
|
class |
NonSignificantVerbsRule
A rule that gives Hints about the use of non-significant verbs.
|
class |
OldSpellingRule
Finds spellings that were only correct in the pre-reform orthography.
|
class |
PassiveSentenceRule
A rule that gives Hints about the use of German filler words.
|
class |
ProhibitedCompoundRule
Find compounds that might be morphologically correct but are still probably wrong, like 'Lehrzeile'.
|
class |
RedundantModalOrAuxiliaryVerb
A rule that detects redundant modal and auxiliary verbs.
|
class |
SentenceWithManRule
A rule that gives Hints about the use of German filler words.
|
class |
SentenceWithModalVerbRule
A rule that gives Hints about the use of German filler words.
|
class |
SimilarNameRule
Search for names similar to ones used before in the same text, as these
might be typos.
|
class |
StyleRepeatedSentenceBeginning
A rule checks sentences beginning repeatedly with a subject.
|
class |
StyleRepeatedVeryShortSentences
A rule checks the use of very short sentences repeatedly.
|
class |
SubjectVerbAgreementRule
Check subject verb agreement for verb forms "ist", "sind", "war" and "waren".
|
class |
SwissCompoundRule |
class |
SwissGermanSpellerRule |
class |
UnnecessaryPhraseRule
A rule that gives Hints about the use of German phrases.
|
class |
VerbAgreementRule
Simple agreement checker for German verbs and subject.
|
class |
WiederVsWiderRule
Check incorrect use of "spiegelt ... wider", namely using "wieder" instead
of "wider", e.g. in "Das spiegelt die Situation wieder" (incorrect).
|
Modifier and Type | Class and Description |
---|---|
class |
GreekRedundancyRule
A rule that matches redundant expressions.
|
class |
GreekSpecificCaseRule
A rule that matches words which need a specific upper/lowercase spelling.
|
class |
GreekWordRepeatBeginningRule
Adds a list Greek adverbs to
WordRepeatBeginningRule . |
class |
MorfologikGreekSpellerRule |
class |
NumeralStressRule
Rule for checking correct spell of ordinal numerals.
|
class |
ReplaceHomonymsRule |
Modifier and Type | Class and Description |
---|---|
class |
AbstractEnglishSpellerRule |
class |
AmericanReplaceRule
A rule that matches words or phrases which should not be used and suggests
correct ones instead.
|
class |
AvsAnRule
Check if the determiner (if any) preceding a word is:
an if the next word starts with a vowel
a if the next word does not start with a vowel
This rule loads some exceptions from external files
det_a.txt and
det_an.txt (e.g. for an hour). |
class |
BritishReplaceRule
A rule that matches words or phrases which should not be used and suggests
correct ones instead.
|
class |
CompoundRule
Checks that compounds (if in the list) are not written as separate words.
|
class |
ConsistentApostrophesRule
Check for consistent use of apostrophes (typographic (’) vs. typewriter (')).
|
class |
ContractionSpellingRule
A rule that matches words or phrases which should not be used and suggests
correct ones instead, e.g.
|
class |
EnglishConfusionProbabilityRule |
class |
EnglishDashRule
Check for compounds written with dashes instead of hyphens.
|
class |
EnglishDiacriticsRule
A rule that matches words which require specific diacritics (e.g,
a la instead of à la ). |
class |
EnglishForDutchmenFalseFriendRule
False friends for Dutch native speakers who write English text, based on ngrams.
|
class |
EnglishForFrenchFalseFriendRule
False friends for French native speakers who write English text, based on ngrams.
|
class |
EnglishForGermansFalseFriendRule
False friends for German native speakers who write English text, based on ngrams.
|
class |
EnglishForL2SpeakersFalseFriendRule
False friends for non-native speakers who write English text, based on ngrams.
|
class |
EnglishForSpaniardsFalseFriendRule
False friends for Spanish native speakers who write English text, based on ngrams.
|
class |
EnglishNgramProbabilityRule |
class |
EnglishPlainEnglishRule
A rule that matches words which are complex and suggests easier to understand alternatives.
|
class |
EnglishRedundancyRule
A rule that matches redundant expression.
|
class |
EnglishRepeatedWordsRule |
class |
EnglishSpecificCaseRule
A rule that matches words which need a specific upper/lowercase spelling.
|
class |
EnglishUnpairedBracketsRule |
class |
EnglishWordRepeatBeginningRule
Adds a list English adverbs to
WordRepeatBeginningRule . |
class |
EnglishWordRepeatRule
Word repeat rule for English, to avoid false alarms in the generic word repetition rule.
|
class |
EnglishWrongWordInContextRule |
class |
MorfologikAmericanSpellerRule |
class |
MorfologikAustralianSpellerRule |
class |
MorfologikBritishSpellerRule |
class |
MorfologikCanadianSpellerRule |
class |
MorfologikNewZealandSpellerRule |
class |
MorfologikSouthAfricanSpellerRule |
class |
NewZealandReplaceRule
A rule that matches words or phrases which should not be used and suggests
correct ones instead.
|
class |
StyleTooOftenUsedAdjectiveRule
A rule that gives Hints about too often used Adjectives
|
class |
StyleTooOftenUsedNounRule
A rule that gives Hints about too often used Nouns
|
class |
StyleTooOftenUsedVerbRule
A rule that gives Hints about too often used Verbs
|
class |
UnitConversionRule |
class |
UnitConversionRuleImperial |
class |
UnitConversionRuleUS |
class |
UpperCaseNgramRule
Finds some(!)
|
class |
WordCoherencyRule
English version of
AbstractWordCoherencyRule |
Modifier and Type | Class and Description |
---|---|
class |
MorfologikSpanishSpellerRule |
class |
QuestionMarkRule
A rule that checks there's a '¿' character if the sentence ends with '?'
|
class |
SpanishConfusionProbabilityRule |
class |
SpanishRepeatedWordsRule |
class |
SpanishUnpairedBracketsRule |
class |
SpanishWikipediaRule
A rule that matches common Wikipedia errors.
|
class |
SpanishWordRepeatBeginningRule
Adds Spanish suggestions to
WordRepeatBeginningRule . |
class |
SpanishWordRepeatRule
Avoid false alarms in the word repetition rule.
|
class |
SpanishWrongWordInContextRule |
Modifier and Type | Class and Description |
---|---|
class |
PersianCommaWhitespaceRule
A rule that matches periods, commas and closing parenthesis preceded by whitespace and
opening parenthesis followed by whitespace.
|
class |
PersianDoublePunctuationRule
A rule that matches ".."
|
class |
PersianSpaceBeforeRule
A Persian rule that checks if there is a missing space before some conjunctions.
|
class |
PersianWordRepeatBeginningRule
List of Persian adverbs for WordRepeatBeginningRule
|
class |
PersianWordRepeatRule
Word repeat rule for English, to avoid false alarms in the generic word repetition rule.
|
class |
SimpleReplaceRule |
Modifier and Type | Class and Description |
---|---|
class |
FrenchConfusionProbabilityRule |
class |
FrenchRepeatedWordsRule |
class |
GrammalecteRule
Queries a local Grammalecte server.
|
class |
MorfologikFrenchSpellerRule |
class |
QuestionWhitespaceRule
A rule that matches spaces before ?
|
class |
QuestionWhitespaceStrictRule
A rule that matches spaces before ?
|
Modifier and Type | Class and Description |
---|---|
class |
DativePluralStandardReplaceRule
A rule that matches words in the dative plural and suggests
the common plural instead.
|
class |
DhaNoBeirtRule |
class |
EnglishHomophoneRule
A rule that matches words which should not be used and suggests
correct ones instead.
|
class |
IrishFGBEqReplaceRule
A rule that matches words which should not be used and suggests
correct ones instead.
|
class |
IrishReplaceRule
A rule that matches words which should not be used and suggests
correct ones instead.
|
class |
IrishSpecificCaseRule
A rule that matches words which need a specific upper/lowercase spelling.
|
class |
LogainmRule
A rule that matches words which should not be used and suggests
correct ones instead.
|
class |
MorfologikIrishSpellerRule |
class |
PeopleRule
A rule that matches words which should not be used and suggests
correct ones instead.
|
class |
PrestandardReplaceRule
A rule that matches words which should not be used and suggests
correct ones instead.
|
class |
SpacesRule
A rule that matches words which should not be used and suggests
correct ones instead.
|
Modifier and Type | Class and Description |
---|---|
class |
CastWordsRule
A rule that matches words or phrases which should not be used and suggests
correct ones instead.
|
class |
GalicianBarbarismsRule
A rule that matches words which should not be used and suggests correct ones instead.
|
class |
GalicianRedundancyRule
A rule that matches redundant expression.
|
class |
GalicianWikipediaRule
A rule that matches common Wikipedia errors.
|
class |
GalicianWordinessRule
A rule that matches wordy expressions.
|
Modifier and Type | Class and Description |
---|---|
class |
ItalianConfusionProbabilityRule |
class |
ItalianWordRepeatRule
Avoid false alarms in the word repetition rule.
|
class |
MorfologikItalianSpellerRule |
Modifier and Type | Class and Description |
---|---|
class |
KhmerHunspellRule |
class |
KhmerSimpleReplaceRule
A rule that matches words which should not be used and suggests correct ones instead.
|
class |
KhmerSpaceBeforeRule
A Khmer rule that checks if there is a missing space before some conjunctions.
|
class |
KhmerUnpairedBracketsRule |
class |
KhmerWordRepeatRule
Check if a word is repeated in Khmer, e.g. the equivalent of "the the".
|
Modifier and Type | Class and Description |
---|---|
class |
MorfologikLithuanianSpellerRule |
Modifier and Type | Class and Description |
---|---|
class |
MorfologikMalayalamSpellerRule |
Modifier and Type | Class and Description |
---|---|
class |
ConfusionProbabilityRule
LanguageTool's homophone confusion check that uses ngram lookups
to decide which word in a confusion set (from
confusion_sets.txt ) suits best. |
class |
NgramProbabilityRule
LanguageTool's probability check that uses ngram lookups
to decide if an ngram of the input text is so rare in our
ngram index that it should be considered an error.
|
Modifier and Type | Class and Description |
---|---|
class |
DutchConfusionProbabilityRule |
class |
DutchWrongWordInContextRule |
class |
MorfologikDutchSpellerRule |
class |
PreferredWordRule
Finds words for which a better variant exists.
|
class |
SpaceInCompoundRule |
Modifier and Type | Class and Description |
---|---|
class |
AbstractPatternRule
An Abstract Pattern Rule that describes a pattern of words or part-of-speech tags
used for PatternRule and DisambiguationPatternRule.
|
class |
AbstractTokenBasedRule
A base class for
PatternToken -based rules. |
class |
ConsistencyPatternRuleTransformer.ConsistencyPatternRule
Wrapper for loaded
AbstractPatternRule instances to act as text-level rules |
class |
FalseFriendPatternRule
A pattern rule for finding false friends.
|
class |
PatternRule
A Rule that describes a language error as a simple pattern of words or of
part-of-speech tags.
|
class |
RegexPatternRule
Matches 'regexp' elements from XML rules against sentences.
|
class |
RepeatedPatternRuleTransformer.RepeatedPatternRule
Wrapper for loaded
AbstractPatternRule instances to act as text-level rules |
Modifier and Type | Method and Description |
---|---|
abstract List<Rule> |
RuleSet.allRules() |
List<Rule> |
PatternRuleTransformer.TransformedRules.getTransformedRules() |
abstract List<Rule> |
RuleSet.rulesForSentence(AnalyzedSentence sentence) |
Modifier and Type | Method and Description |
---|---|
static RuleSet |
RuleSet.plain(List<Rule> rules) |
static RuleSet |
RuleSet.textHinted(List<? extends Rule> rules) |
static RuleSet |
RuleSet.textLemmaHinted(List<? extends Rule> rules) |
Constructor and Description |
---|
TransformedRules(List<AbstractPatternRule> remainingRules,
List<Rule> transformedRules) |
Modifier and Type | Class and Description |
---|---|
class |
BitextPatternRule
A bitext pattern rule class.
|
Modifier and Type | Class and Description |
---|---|
class |
MorfologikPolishSpellerRule |
class |
PolishUnpairedBracketsRule |
class |
PolishWordRepeatRule |
Modifier and Type | Class and Description |
---|---|
class |
BrazilianPortugueseReplaceRule
A rule that matches words which should not be used and suggests correct ones instead.
|
class |
PortugalPortugueseReplaceRule
A rule that matches words which should not be used and suggests correct ones instead.
|
class |
PortugueseAccentuationCheckRule
This rule checks if a word without graphical accent and with a verb POS tag
should be a noun or an adjective with graphical accent.
|
class |
PortugueseAgreementReplaceRule
A rule that matches words or phrases which should not be used and suggests
correct ones instead.
|
class |
PortugueseArchaismsRule
A rule that matches words which should not be used and suggests correct ones instead.
|
class |
PortugueseBarbarismsRule
A rule that matches words which should not be used and suggests correct ones instead.
|
class |
PortugueseClicheRule
A rule that matches words which should not be used and suggests correct ones instead.
|
class |
PortugueseColourHyphenationRule
Checks that compounds (if in the list) are not written as separate words.
|
class |
PortugueseConfusionProbabilityRule |
class |
PortugueseDiacriticsRule
A rule that matches words which require specific diacritics (e.g,
a la instead of à la ). |
class |
PortugueseFillerWordsRule
A rule that gives hints on the use of Portuguese filler words.
|
class |
PortugueseReadabilityRule
A rule that checks the readability of Portuguese text (using the Flesch-Reading-Ease Formula)
If tooEasyTest == true, the rule tests if paragraph level > level (readability is too easy)
If tooEasyTest == false, the rule tests if paragraph level < level (readability is too difficult)
|
class |
PortugueseRedundancyRule
A rule that matches redundant expression.
|
class |
PortugueseReplaceRule
A rule that matches words or phrases which should not be used and suggests
correct ones instead.
|
class |
PortugueseUnitConversionRule
Localized from the German version by Tiago F.
|
class |
PortugueseWeaselWordsRule
A rule that matches known empty expressions.
|
class |
PortugueseWikipediaRule
A rule that matches common Wikipedia errors.
|
class |
PortugueseWordCoherencyRule
Portuguese version of
AbstractWordCoherencyRule . |
class |
PortugueseWordinessRule
A rule that matches wordy expressions.
|
class |
PortugueseWordRepeatBeginningRule
Adds a list Portuguese adverbs to
WordRepeatBeginningRule . |
class |
PortugueseWordRepeatRule
Palavras que se repetem no Poruguês.
|
class |
PortugueseWrongWordInContextRule |
class |
PostReformPortugueseCompoundRule
Checks that compounds (if in the list) are not written as separate words.
|
class |
PostReformPortugueseDashRule
Check for compounds written with dashes instead of hyphens.
|
class |
PreReformPortugueseCompoundRule
Checks that compounds (if in the list) are not written as separate words.
|
class |
PreReformPortugueseDashRule
Check for compounds written with dashes instead of hyphens.
|
Modifier and Type | Class and Description |
---|---|
class |
MorfologikRomanianSpellerRule |
class |
RomanianWordRepeatBeginningRule
WordRepeatBeginningRule implementation for Romanian language. |
Modifier and Type | Class and Description |
---|---|
class |
MorfologikRussianSpellerRule |
class |
MorfologikRussianYOSpellerRule
An experimental rule for spell check (only yo variant)(set default off).
|
class |
RussianCompoundRule
Checks that compounds (if in the list) are not written as separate words.
|
class |
RussianConfusionProbabilityRule |
class |
RussianDashRule
Check for compounds written with dashes instead of hyphens.
|
class |
RussianFillerWordsRule
A rule that gives Hints about the use of Russian filler words.
|
class |
RussianSimpleReplaceRule
A rule that matches words or phrases which should not be used and suggests
correct ones instead.
|
class |
RussianSimpleWordRepeatRule
Avoid false alarms in the word repetition rule.
|
class |
RussianSpecificCaseRule
A rule that matches words which need a specific upper/lowercase spelling.
|
class |
RussianUnpairedBracketsRule |
class |
RussianVerbConjugationRule |
class |
RussianWordCoherencyRule
Russian version of
AbstractWordCoherencyRule . |
class |
RussianWordRepeatRule |
class |
RussianWordRootRepeatRule
WordRootRepeatRule.
|
Modifier and Type | Class and Description |
---|---|
class |
MorfologikSlovakSpellerRule |
Modifier and Type | Class and Description |
---|---|
class |
MorfologikSlovenianSpellerRule |
Modifier and Type | Class and Description |
---|---|
class |
SpellingCheckRule
An abstract rule for spellchecking rules.
|
class |
SymSpellRule
spell checking using SymSpell algorithm, implementation from
https://github.com/Lundez/JavaSymSpell in org.languagetool.rules.spelling.symspell.implementation
potential faster alternative to Morfologik, especially in generating suggestions
|
Modifier and Type | Method and Description |
---|---|
Rule |
RuleWithLanguage.getRule() |
Constructor and Description |
---|
RuleWithLanguage(Rule rule,
Language language) |
Modifier and Type | Class and Description |
---|---|
class |
CompoundAwareHunspellRule
A spell checker that combines Hunspell und Morfologik spell checking
to support compound words and offer fast suggestions for some misspelled
compound words.
|
class |
HunspellNoSuggestionRule
Like
HunspellRule , but does not offer suggestions for incorrect words
as that is very slow with Hunspell. |
class |
HunspellRule
A hunspell-based spellchecking-rule.
|
Modifier and Type | Class and Description |
---|---|
class |
MorfologikSpellerRule |
Modifier and Type | Class and Description |
---|---|
class |
HiddenCharacterRule
A rule that finds hidden characters in the text
|
class |
MissingHyphenRule |
class |
MixedAlphabetsRule
A rule that matches words Latin and Cyrillic characters in them
|
class |
MorfologikUkrainianSpellerRule |
class |
PunctuationCheckRule
A rule that matches "
|
class |
SimpleReplaceRenamedRule
A rule that matches proper names that has been renamed
Loads the relevant words from
rules/uk/replace_renamed.txt . |
class |
SimpleReplaceSoftRule
A rule that matches words for which better alternatives exist and suggests them instead.
|
class |
SimpleReplaceSpelling1992Rule
A rule that matches words that are written by 1992 spelling rules and suggests 2019 spelling instead.
|
class |
SimpleReplaceSpelling2019Rule
A rule that matches words that are written by 2019 spelling (not approved in 1992 version)
|
class |
TokenAgreementAdjNounRule
A rule that checks if adjective and following noun agree on gender and inflection
|
class |
TokenAgreementNounVerbRule
A rule that checks if noun and verb agree
|
class |
TokenAgreementNumrNounRule
A rule that checks if adjective and following noun agree on gender and inflection
|
class |
TokenAgreementPrepNounRule
A rule that checks if preposition and a noun agree on inflection etc
|
class |
TokenAgreementVerbNounRule
A rule that checks if noun and verb agree
|
class |
TypographyRule
A rule that matches short dash inside words
|
class |
UkrainianCommaWhitespaceRule |
class |
UkrainianUppercaseSentenceStartRule |
class |
UkrainianWordRepeatRule |
Modifier and Type | Class and Description |
---|---|
class |
ChineseConfusionProbabilityRule |
Modifier and Type | Class and Description |
---|---|
class |
DisambiguationPatternRule
A Rule that describes a pattern of words or part-of-speech tags used for
disambiguation.
|
Modifier and Type | Method and Description |
---|---|
static int |
Tools.profileRulesOnLine(String contents,
JLanguageTool lt,
Rule rule) |