Uses of Class
org.languagetool.rules.Rule
Packages that use Rule
Package
Description
-
Uses of Rule in org.languagetool
Fields in org.languagetool with type parameters of type RuleModifier and TypeFieldDescriptionJLanguageTool.builtinRules
JLanguageTool.TextCheckCallable.rules
JLanguageTool.userRules
Methods in org.languagetool that return types with arguments of type RuleModifier and TypeMethodDescriptionJLanguageTool.getAllActiveOfficeRules()
Works like getAllActiveRules but overrides defaults by office defaultsJLanguageTool.getAllActiveRules()
Get all active (not disabled) rules for the current language that are built-in or that have been added using e.g.JLanguageTool.getAllBuiltinRules
(Language language, ResourceBundle messages, UserConfig userConfig, GlobalConfig globalConfig) JLanguageTool.getAllRules()
Get all rules for the current language that are built-in or that have been added usingJLanguageTool.addRule(Rule)
.Language.getRelevantLanguageModelCapableRules
(ResourceBundle messages, @Nullable LanguageModel languageModel, UserConfig userConfig, Language motherTongue, List<Language> altLanguages) Get a list of rules that can optionally use aLanguageModel
.Language.getRelevantLanguageModelRules
(ResourceBundle messages, LanguageModel languageModel) Get a list of rules that require aLanguageModel
.Language.getRelevantNeuralNetworkModels
(ResourceBundle messages, File modelDir) Get a list of rules that load trained neural networks.DynamicHunspellLanguage.getRelevantRules
(ResourceBundle messages, UserConfig userConfig, Language motherTongue, List<Language> altLanguages) DynamicMorfologikLanguage.getRelevantRules
(ResourceBundle messages, UserConfig userConfig, Language motherTongue, List<Language> altLanguages) Language.getRelevantRules
(ResourceBundle messages, UserConfig userConfig, Language motherTongue, List<Language> altLanguages) Get the rules classes that should run for texts in this language.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.Language.getRelevantWord2VecModelRules
(ResourceBundle messages, Word2VecModel word2vecModel) Get a list of rules that require aWord2VecModel
.Methods in org.languagetool with parameters of type RuleModifier and TypeMethodDescriptionvoid
Add a rule to be used by the next call to the check methods likeJLanguageTool.check(String)
.private boolean
JLanguageTool.ignoreRule
(Rule rule) Method parameters in org.languagetool with type arguments of type RuleModifier and TypeMethodDescriptionJLanguageTool.checkAnalyzedSentence
(JLanguageTool.ParagraphHandling paraMode, List<Rule> rules, AnalyzedSentence analyzedSentence) This is an internal method that's public only for technical reasons, please use one of theJLanguageTool.check(String)
methods instead.Constructor parameters in org.languagetool with type arguments of type RuleModifierConstructorDescription(package private)
TextCheckCallable
(List<Rule> rules, List<String> sentences, List<AnalyzedSentence> analyzedSentences, JLanguageTool.ParagraphHandling paraMode, AnnotatedText annotatedText, int charCount, int lineCount, int columnCount, RuleMatchListener listener, JLanguageTool.Mode mode) -
Uses of Rule in org.languagetool.language
Methods in org.languagetool.language that return types with arguments of type RuleModifier and TypeMethodDescriptionLanguageBuilder.ExtendedLanguage.getRelevantLanguageModelRules
(ResourceBundle messages, LanguageModel languageModel) LanguageBuilder.ExtendedLanguage.getRelevantRules
(ResourceBundle messages, UserConfig userConfig, Language motherTongue, List<Language> altLanguages) LanguageBuilder.ExtendedLanguage.getRelevantWord2VecModelRules
(ResourceBundle messages, Word2VecModel word2vecModel) -
Uses of Rule in org.languagetool.noop
Methods in org.languagetool.noop that return types with arguments of type RuleModifier and TypeMethodDescriptionNoopLanguage.getRelevantRules
(ResourceBundle messages, UserConfig userConfig, Language motherTongue, List<Language> altLanguages) -
Uses of Rule in org.languagetool.rules
Subclasses of Rule in org.languagetool.rulesModifier and TypeClassDescriptionclass
Checks that compounds (if in the list) are not written as separate words.class
Another use of the compounds file -- check for compounds written with dashes instead of hyphens (for example, Rabka — Zdrój).class
A rule that gives hints about the use of filler words.class
A rule that matches "..", "::", "-," but not "...", "!..", "?!!", ",-" etc.class
A rule that matches words which should not be used and suggests correct ones instead.class
A rule that matches words which should not be used and suggests correct ones instead.class
An abstract rule that checks if there is a missing space before some conjunctions.class
An abstract rule checks the appearance of same words in a sentence or in two consecutive sentences.class
Base class providing support for detecting, parsing and converting between measurements in different unitsclass
A rule that matches words for which two different spellings are used throughout the document.class
Rule for detecting same words in the sentence but not just in a row.class
A rule that matches periods, commas and closing parenthesis preceded by whitespace and opening parenthesis followed by whitespace.class
A simple demo rule as an example for how to implement your own Java-based rule in LanguageTool.class
A rule that matches ".." (but not "..." etc) and ",,".class
A rule that checks for empty lines.class
Rule that finds unpaired quotes, brackets etc.class
A rule that warns on long paragraphs.class
A rule that warns on long sentences.class
Check if there is duplicated whitespace in a sentence.class
Queries an OpenNMT server started like this:th tools/rest_translation_server.lua -replace_unk -model ...
class
Check if to paragraphs begin with the same word.class
A rule that checks for a punctuation mark at the end of a paragraph.class
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
Checks that there's whitespace between sentences.class
A rule that considers the complete text, not just one sentence after the other.class
Checks that a sentence starts with an uppercase letter.class
A rule that checks for WhiteSpaces at the begin of a paragraphclass
A rule that checks for a whitespace at the end of a paragraphclass
A rule that matches several punctuation signs such as:
;
and%
preceded by whitespace.class
Check if three successive sentences begin with the same word, e.g.class
Check if a word is repeated, e.g.class
Check if there is a confusion of two words (which might have a similar spelling) depending on the context.Fields in org.languagetool.rules declared as RuleModifier and TypeFieldDescriptionprivate final Rule
RuleMatch.rule
private final Rule
SuggestionFilter.rule
Methods in org.languagetool.rules that return RuleConstructors in org.languagetool.rules with parameters of type RuleModifierConstructorDescriptionDeprecated.RuleMatch
(Rule rule, int fromPos, int toPos, String message, String shortMessage, boolean startWithUppercase, String suggestionsOutMsg) Deprecated.use a constructor that also takes anAnalyzedSentence
parameter (deprecated since 4.0)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, boolean startWithUppercase, String suggestionsOutMsg) Creates a RuleMatch object, taking the rule that triggered this match, position of the match and an explanation message.SuggestionFilter
(Rule rule, Language lang) -
Uses of Rule in org.languagetool.rules.bitext
Subclasses of Rule in org.languagetool.rules.bitextModifier and TypeClassDescriptionclass
Abstract bitext rule class.class
Checks if the translation has a really different length than the source (smaller than 30% or longer by 250%).class
Checks if the translation has the same ending punctuation as the source.class
Checks if the translation for segments that have more than two words is different. -
Uses of Rule in org.languagetool.rules.neuralnetwork
Subclasses of Rule in org.languagetool.rules.neuralnetworkMethods in org.languagetool.rules.neuralnetwork that return types with arguments of type RuleModifier and TypeMethodDescriptionNeuralNetworkRuleCreator.createRules
(ResourceBundle messages, Language language, Word2VecModel word2vecModel) -
Uses of Rule in org.languagetool.rules.ngrams
Subclasses of Rule in org.languagetool.rules.ngramsModifier and TypeClassDescriptionclass
LanguageTool's homophone confusion check that uses ngram lookups to decide which word in a confusion set (fromconfusion_sets.txt
) suits best.class
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. -
Uses of Rule in org.languagetool.rules.patterns
Subclasses of Rule in org.languagetool.rules.patternsModifier and TypeClassDescriptionclass
An Abstract Pattern Rule that describes a pattern of words or part-of-speech tags used for PatternRule and DisambiguationPatternRule.class
A pattern rule for finding false friends.class
A Rule that describes a language error as a simple pattern of words or of part-of-speech tags.class
Matches 'regexp' elements from XML rules against sentences.private static class
-
Uses of Rule in org.languagetool.rules.patterns.bitext
Subclasses of Rule in org.languagetool.rules.patterns.bitext -
Uses of Rule in org.languagetool.rules.spelling
Subclasses of Rule in org.languagetool.rules.spellingModifier and TypeClassDescriptionclass
An abstract rule for spellchecking rules.class
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 suggestionsFields in org.languagetool.rules.spelling declared as RuleMethods in org.languagetool.rules.spelling that return RuleConstructors in org.languagetool.rules.spelling with parameters of type Rule -
Uses of Rule in org.languagetool.rules.spelling.hunspell
Subclasses of Rule in org.languagetool.rules.spelling.hunspellModifier and TypeClassDescriptionclass
A spell checker that combines Hunspell und Morfologik spell checking to support compound words and offer fast suggestions for some misspelled compound words.class
LikeHunspellRule
, but does not offer suggestions for incorrect words as that is very slow with Hunspell.class
A hunspell-based spellchecking-rule. -
Uses of Rule in org.languagetool.rules.spelling.morfologik
Subclasses of Rule in org.languagetool.rules.spelling.morfologik -
Uses of Rule in org.languagetool.tagging.disambiguation.rules
Subclasses of Rule in org.languagetool.tagging.disambiguation.rulesModifier and TypeClassDescriptionclass
A Rule that describes a pattern of words or part-of-speech tags used for disambiguation. -
Uses of Rule in org.languagetool.tokenizers
Methods in org.languagetool.tokenizers that return types with arguments of type RuleModifier and TypeMethodDescriptionSimpleSentenceTokenizer.AnyLanguage.getRelevantRules
(ResourceBundle messages, UserConfig userConfig, Language motherTongue, List<Language> altLanguages) -
Uses of Rule in org.languagetool.tools
Methods in org.languagetool.tools with parameters of type RuleModifier and TypeMethodDescriptionstatic int
Tools.profileRulesOnLine
(String contents, JLanguageTool lt, Rule rule)
AnalyzedSentence
parameter (deprecated since 4.0)