Uses of Class
org.languagetool.rules.Rule
-
-
Uses of Rule in org.languagetool
Fields in org.languagetool with type parameters of type Rule Modifier and Type Field Description private java.util.List<Rule>JLanguageTool. builtinRulesprivate java.util.List<Rule>JLanguageTool.TextCheckCallable. rulesprivate java.util.List<Rule>JLanguageTool. userRulesMethods in org.languagetool that return types with arguments of type Rule Modifier and Type Method Description java.util.List<Rule>JLanguageTool. getAllActiveOfficeRules()Works like getAllActiveRules but overrides defaults by office defaultsjava.util.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.private java.util.List<Rule>JLanguageTool. getAllBuiltinRules(Language language, java.util.ResourceBundle messages, UserConfig userConfig, GlobalConfig globalConfig)java.util.List<Rule>JLanguageTool. getAllRules()Get all rules for the current language that are built-in or that have been added usingJLanguageTool.addRule(Rule).java.util.List<Rule>Language. getRelevantLanguageModelCapableRules(java.util.ResourceBundle messages, @Nullable LanguageModel languageModel, UserConfig userConfig, Language motherTongue, java.util.List<Language> altLanguages)Get a list of rules that can optionally use aLanguageModel.java.util.List<Rule>Language. getRelevantLanguageModelRules(java.util.ResourceBundle messages, LanguageModel languageModel)Get a list of rules that require aLanguageModel.java.util.List<Rule>Language. getRelevantNeuralNetworkModels(java.util.ResourceBundle messages, java.io.File modelDir)Get a list of rules that load trained neural networks.java.util.List<Rule>DynamicHunspellLanguage. getRelevantRules(java.util.ResourceBundle messages, UserConfig userConfig, Language motherTongue, java.util.List<Language> altLanguages)java.util.List<Rule>DynamicMorfologikLanguage. getRelevantRules(java.util.ResourceBundle messages, UserConfig userConfig, Language motherTongue, java.util.List<Language> altLanguages)abstract java.util.List<Rule>Language. getRelevantRules(java.util.ResourceBundle messages, UserConfig userConfig, Language motherTongue, java.util.List<Language> altLanguages)Get the rules classes that should run for texts in this language.java.util.List<Rule>Language. getRelevantRulesGlobalConfig(java.util.ResourceBundle messages, GlobalConfig globalConfig, UserConfig userConfig, Language motherTongue, java.util.List<Language> altLanguages)Get the rules classes that should run for texts in this language.java.util.List<Rule>Language. getRelevantWord2VecModelRules(java.util.ResourceBundle messages, Word2VecModel word2vecModel)Get a list of rules that require aWord2VecModel.Methods in org.languagetool with parameters of type Rule Modifier and Type Method Description voidJLanguageTool. addRule(Rule rule)Add a rule to be used by the next call to the check methods likeJLanguageTool.check(String).private booleanJLanguageTool. ignoreRule(Rule rule)Method parameters in org.languagetool with type arguments of type Rule Modifier and Type Method Description java.util.List<RuleMatch>JLanguageTool. checkAnalyzedSentence(JLanguageTool.ParagraphHandling paraMode, java.util.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 Rule Constructor Description TextCheckCallable(java.util.List<Rule> rules, java.util.List<java.lang.String> sentences, java.util.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 Rule Modifier and Type Method Description java.util.List<Rule>LanguageBuilder.ExtendedLanguage. getRelevantLanguageModelRules(java.util.ResourceBundle messages, LanguageModel languageModel)java.util.List<Rule>LanguageBuilder.ExtendedLanguage. getRelevantRules(java.util.ResourceBundle messages, UserConfig userConfig, Language motherTongue, java.util.List<Language> altLanguages)java.util.List<Rule>LanguageBuilder.ExtendedLanguage. getRelevantWord2VecModelRules(java.util.ResourceBundle messages, Word2VecModel word2vecModel) -
Uses of Rule in org.languagetool.noop
Methods in org.languagetool.noop that return types with arguments of type Rule Modifier and Type Method Description java.util.List<Rule>NoopLanguage. getRelevantRules(java.util.ResourceBundle messages, UserConfig userConfig, Language motherTongue, java.util.List<Language> altLanguages) -
Uses of Rule in org.languagetool.rules
Subclasses of Rule in org.languagetool.rules Modifier and Type Class Description classAbstractCompoundRuleChecks that compounds (if in the list) are not written as separate words.classAbstractDashRuleAnother use of the compounds file -- check for compounds written with dashes instead of hyphens (for example, Rabka — Zdrój).classAbstractFillerWordsRuleA rule that gives hints about the use of filler words.classAbstractPunctuationCheckRuleA rule that matches "..", "::", "-," but not "...", "!..", "?!!", ",-" etc.classAbstractSimpleReplaceRuleA rule that matches words which should not be used and suggests correct ones instead.classAbstractSimpleReplaceRule2A rule that matches words which should not be used and suggests correct ones instead.classAbstractSpaceBeforeRuleAn abstract rule that checks if there is a missing space before some conjunctions.classAbstractStyleRepeatedWordRuleAn abstract rule checks the appearance of same words in a sentence or in two consecutive sentences.classAbstractUnitConversionRuleBase class providing support for detecting, parsing and converting between measurements in different unitsclassAbstractWordCoherencyRuleA rule that matches words for which two different spellings are used throughout the document.classAdvancedWordRepeatRuleRule for detecting same words in the sentence but not just in a row.classCommaWhitespaceRuleA rule that matches periods, commas and closing parenthesis preceded by whitespace and opening parenthesis followed by whitespace.classDemoRuleA simple demo rule as an example for how to implement your own Java-based rule in LanguageTool.classDoublePunctuationRuleA rule that matches ".." (but not "..." etc) and ",,".classEmptyLineRuleA rule that checks for empty lines.classGenericUnpairedBracketsRuleRule that finds unpaired quotes, brackets etc.classLongParagraphRuleA rule that warns on long paragraphs.classLongSentenceRuleA rule that warns on long sentences.classMultipleWhitespaceRuleCheck if there is duplicated whitespace in a sentence.classOpenNMTRuleQueries an OpenNMT server started like this:th tools/rest_translation_server.lua -replace_unk -model ...classParagraphRepeatBeginningRuleCheck if to paragraphs begin with the same word.classPunctuationMarkAtParagraphEndA rule that checks for a punctuation mark at the end of a paragraph.classReadabilityRuleA 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)classSentenceWhitespaceRuleChecks that there's whitespace between sentences.classTextLevelRuleA rule that considers the complete text, not just one sentence after the other.classUppercaseSentenceStartRuleChecks that a sentence starts with an uppercase letter.classWhiteSpaceAtBeginOfParagraphA rule that checks for WhiteSpaces at the begin of a paragraphclassWhiteSpaceBeforeParagraphEndA rule that checks for a whitespace at the end of a paragraphclassWhitespaceBeforePunctuationRuleA rule that matches several punctuation signs such as:;and%preceded by whitespace.classWordRepeatBeginningRuleCheck if three successive sentences begin with the same word, e.g.classWordRepeatRuleCheck if a word is repeated, e.g.classWrongWordInContextRuleCheck 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 Rule Modifier and Type Field Description private RuleRuleMatch. ruleprivate RuleSuggestionFilter. ruleMethods in org.languagetool.rules that return Rule Modifier and Type Method Description RuleRuleMatch. getRule()Constructors in org.languagetool.rules with parameters of type Rule Constructor Description RuleMatch(Rule rule, int fromPos, int toPos, java.lang.String message)Deprecated.use a constructor that also takes anAnalyzedSentenceparameter (deprecated since 4.0)RuleMatch(Rule rule, int fromPos, int toPos, java.lang.String message, java.lang.String shortMessage, boolean startWithUppercase, java.lang.String suggestionsOutMsg)Deprecated.use a constructor that also takes anAnalyzedSentenceparameter (deprecated since 4.0)RuleMatch(Rule rule, AnalyzedSentence sentence, int fromPos, int toPos, java.lang.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, java.lang.String message, java.lang.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, java.lang.String message, java.lang.String shortMessage, boolean startWithUppercase, java.lang.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.bitext Modifier and Type Class Description classBitextRuleAbstract bitext rule class.classDifferentLengthRuleChecks if the translation has a really different length than the source (smaller than 30% or longer by 250%).classDifferentPunctuationRuleChecks if the translation has the same ending punctuation as the source.classSameTranslationRuleChecks 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.neuralnetwork Modifier and Type Class Description classNeuralNetworkRuleMethods in org.languagetool.rules.neuralnetwork that return types with arguments of type Rule Modifier and Type Method Description static java.util.List<Rule>NeuralNetworkRuleCreator. createRules(java.util.ResourceBundle messages, Language language, Word2VecModel word2vecModel) -
Uses of Rule in org.languagetool.rules.ngrams
Subclasses of Rule in org.languagetool.rules.ngrams Modifier and Type Class Description classConfusionProbabilityRuleLanguageTool's homophone confusion check that uses ngram lookups to decide which word in a confusion set (fromconfusion_sets.txt) suits best.classNgramProbabilityRuleLanguageTool'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.patterns Modifier and Type Class Description classAbstractPatternRuleAn Abstract Pattern Rule that describes a pattern of words or part-of-speech tags used for PatternRule and DisambiguationPatternRule.classFalseFriendPatternRuleA pattern rule for finding false friends.classPatternRuleA Rule that describes a language error as a simple pattern of words or of part-of-speech tags.classRegexPatternRuleMatches 'regexp' elements from XML rules against sentences.private static classRuleFilter.FakeRule -
Uses of Rule in org.languagetool.rules.patterns.bitext
Subclasses of Rule in org.languagetool.rules.patterns.bitext Modifier and Type Class Description classBitextPatternRuleA bitext pattern rule class. -
Uses of Rule in org.languagetool.rules.spelling
Subclasses of Rule in org.languagetool.rules.spelling Modifier and Type Class Description classSpellingCheckRuleAn abstract rule for spellchecking rules.classSymSpellRulespell 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 Rule Modifier and Type Field Description private RuleRuleWithLanguage. ruleMethods in org.languagetool.rules.spelling that return Rule Modifier and Type Method Description RuleRuleWithLanguage. getRule()Constructors in org.languagetool.rules.spelling with parameters of type Rule Constructor Description RuleWithLanguage(Rule rule, Language language) -
Uses of Rule in org.languagetool.rules.spelling.hunspell
Subclasses of Rule in org.languagetool.rules.spelling.hunspell Modifier and Type Class Description classCompoundAwareHunspellRuleA spell checker that combines Hunspell und Morfologik spell checking to support compound words and offer fast suggestions for some misspelled compound words.classHunspellNoSuggestionRuleLikeHunspellRule, but does not offer suggestions for incorrect words as that is very slow with Hunspell.classHunspellRuleA hunspell-based spellchecking-rule. -
Uses of Rule in org.languagetool.rules.spelling.morfologik
Subclasses of Rule in org.languagetool.rules.spelling.morfologik Modifier and Type Class Description classMorfologikSpellerRule -
Uses of Rule in org.languagetool.tagging.disambiguation.rules
Subclasses of Rule in org.languagetool.tagging.disambiguation.rules Modifier and Type Class Description classDisambiguationPatternRuleA 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 Rule Modifier and Type Method Description java.util.List<Rule>SimpleSentenceTokenizer.AnyLanguage. getRelevantRules(java.util.ResourceBundle messages, UserConfig userConfig, Language motherTongue, java.util.List<Language> altLanguages) -
Uses of Rule in org.languagetool.tools
Methods in org.languagetool.tools with parameters of type Rule Modifier and Type Method Description static intTools. profileRulesOnLine(java.lang.String contents, JLanguageTool lt, Rule rule)
-