Package org.languagetool.rules
Class Categories
- java.lang.Object
-
- org.languagetool.rules.Categories
-
public final class Categories extends java.lang.ObjectPre-defined rule categories.- Since:
- 3.3
-
-
Field Summary
Fields Modifier and Type Field Description static CategoriesCASINGRules about detecting uppercase words where lowercase is required and vice versa.static CategoriesCOLLOQUIALISMSColloquial style.static CategoriesCOMPOUNDINGRules about spelling terms as one word or as as separate words.static CategoriesCONFUSED_WORDSWords that are easily confused, like 'there' and 'their' in English.static CategoriesFALSE_FRIENDSFalse friends: words easily confused by language learners because a similar word exists in their native language.static CategoriesGENDER_NEUTRALITYstatic CategoriesGRAMMARprivate java.lang.Stringidprivate java.lang.StringmessageKeystatic CategoriesMISCMiscellaneous rules that don't fit elsewhere.static CategoriesPLAIN_ENGLISHCreated to match PLAIN_ENGLISH XML category.static CategoriesPUNCTUATIONstatic CategoriesREDUNDANCYstatic CategoriesREGIONALISMSRegionalisms: words used only in another language variant or used with different meanings.static CategoriesREPETITIONSstatic CategoriesSEMANTICSLogic, content, and consistency problems.static CategoriesSTYLEGeneral style issues not covered by other categories, like overly verbose wording.static CategoriesTYPOGRAPHYProblems like incorrectly used dash or quote characters.static CategoriesTYPOSSpelling issues.static CategoriesWIKIPEDIARules that only make sense when editing Wikipedia (typically turned off by default in LanguageTool).
-
Constructor Summary
Constructors Modifier Constructor Description privateCategories(java.lang.String id, java.lang.String messageKey)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CategorygetCategory(java.util.ResourceBundle messages)CategoryIdgetId()private static Categoriesmake(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)
-
-