Package org.languagetool.rules
package org.languagetool.rules
-
ClassDescriptionChecks 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.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.An abstract rule checks the appearance of same words in a sentence or in two consecutive sentences.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.Pre-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.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.A 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.Queries an OpenNMT server started like this:th tools/rest_translation_server.lua -replace_unk -model ...
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 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)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.Filter 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.Loads a confusion set from a plain text file (UTF-8).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.Filter suggestions against a rule.Helper class forGenericUnpairedBracketsRule
to 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.