Package org.languagetool.rules
Class Categories
- java.lang.Object
-
- org.languagetool.rules.Categories
-
public final class Categories extends java.lang.Object
Pre-defined rule categories.- Since:
- 3.3
-
-
Field Summary
Fields Modifier and Type Field Description static Categories
CASING
Rules about detecting uppercase words where lowercase is required and vice versa.static Categories
COLLOQUIALISMS
Colloquial style.static Categories
COMPOUNDING
Rules about spelling terms as one word or as as separate words.static Categories
CONFUSED_WORDS
Words that are easily confused, like 'there' and 'their' in English.static Categories
FALSE_FRIENDS
False friends: words easily confused by language learners because a similar word exists in their native language.static Categories
GENDER_NEUTRALITY
static Categories
GRAMMAR
private java.lang.String
id
private java.lang.String
messageKey
static Categories
MISC
Miscellaneous rules that don't fit elsewhere.static Categories
PLAIN_ENGLISH
Created to match PLAIN_ENGLISH XML category.static Categories
PUNCTUATION
static Categories
REDUNDANCY
static Categories
REGIONALISMS
Regionalisms: words used only in another language variant or used with different meanings.static Categories
REPETITIONS
static Categories
SEMANTICS
Logic, content, and consistency problems.static Categories
STYLE
General style issues not covered by other categories, like overly verbose wording.static Categories
TYPOGRAPHY
Problems like incorrectly used dash or quote characters.static Categories
TYPOS
Spelling issues.static Categories
WIKIPEDIA
Rules that only make sense when editing Wikipedia (typically turned off by default in LanguageTool).
-
Constructor Summary
Constructors Modifier Constructor Description private
Categories(java.lang.String id, java.lang.String messageKey)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Category
getCategory(java.util.ResourceBundle messages)
CategoryId
getId()
private static Categories
make(java.lang.String id, java.lang.String message)
-
-
-
Field Detail
-
CASING
public static final Categories CASING
Rules about detecting uppercase words where lowercase is required and vice versa.
-
COMPOUNDING
public static final Categories COMPOUNDING
Rules about spelling terms as one word or as as separate words.
-
GRAMMAR
public static final Categories GRAMMAR
-
TYPOS
public static final Categories TYPOS
Spelling issues.
-
PUNCTUATION
public static final Categories PUNCTUATION
-
TYPOGRAPHY
public static final Categories TYPOGRAPHY
Problems like incorrectly used dash or quote characters.
-
CONFUSED_WORDS
public static final Categories CONFUSED_WORDS
Words that are easily confused, like 'there' and 'their' in English.
-
REPETITIONS
public static final Categories REPETITIONS
-
REDUNDANCY
public static final Categories REDUNDANCY
-
STYLE
public static final Categories STYLE
General style issues not covered by other categories, like overly verbose wording.
-
PLAIN_ENGLISH
public static final Categories PLAIN_ENGLISH
Created to match PLAIN_ENGLISH XML category.
-
GENDER_NEUTRALITY
public static final Categories GENDER_NEUTRALITY
-
SEMANTICS
public static final Categories SEMANTICS
Logic, content, and consistency problems.
-
COLLOQUIALISMS
public static final Categories COLLOQUIALISMS
Colloquial style.
-
REGIONALISMS
public static final Categories REGIONALISMS
Regionalisms: words used only in another language variant or used with different meanings.
-
FALSE_FRIENDS
public static final Categories FALSE_FRIENDS
False friends: words easily confused by language learners because a similar word exists in their native language.
-
WIKIPEDIA
public static final Categories WIKIPEDIA
Rules that only make sense when editing Wikipedia (typically turned off by default in LanguageTool).
-
MISC
public static final Categories MISC
Miscellaneous rules that don't fit elsewhere.
-
id
private final java.lang.String id
-
messageKey
private final java.lang.String messageKey
-
-
Method Detail
-
make
private static Categories make(java.lang.String id, java.lang.String message)
-
getId
public CategoryId getId()
-
getCategory
public Category getCategory(java.util.ResourceBundle messages)
-
-