Adding new type (not existed)

Hi,

I need to add a new type in > <category id=“SYNONYMS” name=“Possible Synonyms” type=“misspelling”>

For example, I want to add a type name synonym (type=“synonym”) so that I can use errorColors in .cfg file to color words that I can replace by my synonyms.

However, after modifying grammar.xml by adding that type I got error as restart LanguageTool (stand-alone ver.)

Can you please show me how to add my own type?

Thanks!

You’ll need to also add the new type at languagetool/languagetool-core/src/main/java/org/languagetool/rules/ITSIssueType.java at master · languagetool-org/languagetool · GitHub. This requires a developer setup, i.e. you’ll need to recompile LT after that.

I seems beyond my ability…
Thank you!