Package | Description |
---|---|
org.languagetool | |
org.languagetool.commandline | |
org.languagetool.openoffice | |
org.languagetool.rules | |
org.languagetool.tools |
Modifier and Type | Method and Description |
---|---|
Map<CategoryId,Category> |
JLanguageTool.getCategories()
Get all rule categories for the current language.
|
Modifier and Type | Method and Description |
---|---|
void |
JLanguageTool.disableCategory(CategoryId id)
Disable the given rule category so the check methods like
JLanguageTool.check(String) won't use it. |
void |
JLanguageTool.enableRuleCategory(CategoryId id)
Enable all rules of the given category so the check methods like
JLanguageTool.check(String) will use it. |
boolean |
JLanguageTool.isCategoryDisabled(CategoryId id)
Returns true if a category is explicitly disabled.
|
Modifier and Type | Method and Description |
---|---|
Set<CategoryId> |
CommandLineOptions.getDisabledCategories() |
Set<CategoryId> |
CommandLineOptions.getEnabledCategories() |
Modifier and Type | Method and Description |
---|---|
void |
SwJLanguageTool.disableCategory(CategoryId id)
Disable a category by ID
|
Modifier and Type | Field and Description |
---|---|
static CategoryId |
CategoryIds.BARBARISM
A words or expressions that are badly formed according to traditional philological rules,
for example a word formed from elements of different languages
|
static CategoryId |
CategoryIds.CASING
Rules about detecting uppercase words where lowercase is required and vice versa.
|
static CategoryId |
CategoryIds.COLLOQUIALISMS
Colloquial style.
|
static CategoryId |
CategoryIds.CONFUSED_WORDS
Words that are easily confused, like 'there' and 'their' in English.
|
static CategoryId |
CategoryIds.GENDER_NEUTRALITY |
static CategoryId |
CategoryIds.GRAMMAR |
static CategoryId |
CategoryIds.MISC
Miscellaneous rules that don't fit elsewhere.
|
static CategoryId |
CategoryIds.PUNCTUATION |
static CategoryId |
CategoryIds.REDUNDANCY |
static CategoryId |
CategoryIds.SEMANTICS |
static CategoryId |
CategoryIds.STYLE |
static CategoryId |
CategoryIds.TYPOGRAPHY |
static CategoryId |
CategoryIds.TYPOS |
static CategoryId |
CategoryIds.WIKIPEDIA
Rules that only make sense when editing Wikipedia (typically turned off by default in LanguageTool).
|
Modifier and Type | Method and Description |
---|---|
CategoryId |
Category.getId() |
CategoryId |
Categories.getId() |
Constructor and Description |
---|
Category(CategoryId id,
String name) |
Category(CategoryId id,
String name,
Category.Location location) |
Category(CategoryId id,
String name,
Category.Location location,
boolean onByDefault) |
Category(CategoryId id,
String name,
Category.Location location,
boolean onByDefault,
String tabName) |
Modifier and Type | Method and Description |
---|---|
static void |
Tools.selectRules(JLanguageTool lt,
Set<CategoryId> disabledCategories,
Set<CategoryId> enabledCategories,
Set<String> disabledRules,
Set<String> enabledRules,
boolean useEnabledOnly,
boolean enableTempOff) |
static void |
Tools.selectRules(JLanguageTool lt,
Set<CategoryId> disabledCategories,
Set<CategoryId> enabledCategories,
Set<String> disabledRules,
Set<String> enabledRules,
boolean useEnabledOnly,
boolean enableTempOff) |