Package org.languagetool.rules
package org.languagetool.rules
-
ClassDescriptionA rule that checks case in phrasesChecks that compounds (if in the list) are not written as separate words.Another use of the compounds file -- check for compounds written with dashes instead of hyphens (for example, Rabka — Zdrój).Accepts rule matches if a date doesn't match the accompanying weekday, e.g.Accepts rule matches if a date doesn't match the accompanying weekday, e.g.A rule that gives hints about the use of filler words.Checks if a given date is in the future Used for mismatch detection between verb tense and a given dateAccepts rule matches if we are in the first days of a new year and the user may have entered a date with the old year (but not a date in December).A rule that matches "..", "::", "-," but not "...", "!..", "?!!", ",-" etc.A rule that matches words which should not be used and suggests correct ones instead.A rule that matches words which should not be used and suggests correct ones instead.An abstract rule that checks if there is a missing space before some conjunctions.A rule that matches words which need a specific upper/lowercase spelling.A rule that gives hints when a defined condition is fulfilled and the percentage of hints in the text exceeds the given limit.A rule that gives hints when a defined condition is fulfilled and the percentage of hints in the text exceeds the given limit.An abstract rule checks the appearance of same words in a sentence or in two consecutive sentences.The method gives stylistic hints that a word is being used too often when the set percentage has been exceeded.(default off).Base class providing support for detecting, parsing and converting between measurements in different unitsA rule that matches words for which two different spellings are used throughout the document.Rule for detecting same words in the sentence but not just in a row.reorder suggestions from another rule using BERT as a LMPre-defined rule categories.A rule's category.Identifier for a category.Category ids.A rule that matches periods, commas and closing parenthesis preceded by whitespace and opening parenthesis followed by whitespace.Data about words that are compounds and should thus not be written as separate words.Two words that can easily be confused - for internal use only.Words that can easily be confused - for internal use only.Loads a confusion set from a plain text file (UTF-8).A string in a
ConfusionPair- for internal use only.A text, typically a sentence, that doesn't contain an error, at least not one for a specific rule.Checks whether the date range is valid, i.e., that the starting date happens before the end date.A simple demo rule as an example for how to implement your own Java-based rule in LanguageTool.Filter spelling error with phrases the users wants to have accepted.A rule that matches ".." (but not "..." etc) and ",,".A rule that checks for empty lines.A text, typically a sentence, that doesn't contain an error, but still leads to an error.Helper class to create error examples.Rule that finds unpaired quotes, brackets etc.Rule that finds unpaired quotesBase 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:Internal rule to create rule matches with IDs based on Match Sub-IDsA text, typically a sentence, that contains an error.Some constants for Localization Quality Issue Type from the Internationalization Tag Set (ITS) Version 2.0.A rule that warns on long paragraphs.A rule that warns on long sentences.Check if there is duplicated whitespace in a sentence.Check if to paragraphs begin with the same word.Filters rule matches so that only matches are kept where a part of the token has a given POS tag.A rule that checks for a punctuation mark at the end of a paragraph.A rule that checks for a punctuation mark at the end of a paragraph.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)rules in remote-rule-filter.xml, same syntax as pattern rules used as filters for results from matches provided by remote rule i.e.Abstract rule class.Information about an error rule that matches text and the position of the match.UnlikeCategory, this is specific to a RuleMatch, not to a rule.Filter rule matches.Class to configure rule option by option panelFilter rule matches so that only the longest match is kept from overlapping matches with the same rule that contains tokens with maxOccurrence > 1.Filter rule matches so that only the first match is kept from overlapping matches with the same rule group (actually: the same id).Words that can easily be confused - for internal use only.Checks that there's whitespace between sentences.Checks whether a shortened year range (such as '1998-92') is valid, i.e., that the starting date happens before the end date.Load replacement data from a UTF-8 file.classify the type of the suggestion so that downstream tasks (e.g.Filter suggestions against a rule.Helper class forGenericUnpairedBracketsRuleto identify symbols indexed with integers.A rule that considers the complete text, not just one sentence after the other.UnsyncStack<E>Implements unsynchronized stack (contrary to default JavaStack, this one is based on ArrayList).Checks that a sentence starts with an uppercase letter.A rule that checks for WhiteSpaces at the begin of a paragraphA rule that checks for a whitespace at the end of a paragraphA rule that matches several punctuation signs such as:;and%preceded by whitespace.Loads word variations words from a UTF-8 file.Check if three successive sentences begin with the same word, e.g.Check if a word is repeated, e.g.Check if there is a confusion of two words (which might have a similar spelling) depending on the context.