Disabling rules and categories
Was this helpful?
Disable individual rules or whole categories for any checking type.
This includes grammar rules, AI corrections and style rules.
You create one or more JSON files with rule/category IDs.
You then reference these files in AppServerX.xml under the target <Language ...> block.
Disabled rules files live in the AppServer resources directory:
Default: <WebSpellChecker_Installation_Path>/AppServer/Resources/
Configurable via ResourcesDir in AppServerX.xml. See AppServer parameters.
Place files under the language group folder:
Resources/<lang_group>/
Example: Resources/en/en_US_disabled_rules.json
You can start from a predefined *_disabled_rules.json file shipped in Resources/<lang_group>/.
Edit it to add or remove entries.
You can also create a new JSON file from scratch.
Example: en_US_disabled_rules.json
rules contains rule IDs.
categories contains category IDs.
You can use:
multiple disabled rules files per language.
one shared file reused across several languages.
Add one <DisabledRules .../> entry per file inside the <Language ...> block.
Example:
Path is resolved relative to ResourcesDir.
Back up AppServerX.xml before you change it.
Restart AppServer to apply changes in AppServerX.xml.
To restart: stop the application, then start it again.
Changes in *_disabled_rules.json files are applied without the restart.
Was this helpful?
Was this helpful?
{
"categories": [
],
"rules": [
"DIFFERENT_THAN"
]
}<Language Id="en_US" Enabled="true">
...
<DisabledRules Path="en/en_disabled_rules.json"/>
<DisabledRules Path="en/en_US_disabled_rules.json"/>
...
</Language>
