Back to LanguageTool Homepage - Privacy - Imprint

Adding new type (not existed)


(Giang Lê Hoàng) #1

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!


(Daniel Naber) #2

You'll need to also add the new type at https://github.com/languagetool-org/languagetool/blob/master/languagetool-core/src/main/java/org/languagetool/rules/ITSIssueType.java#L34. This requires a developer setup, i.e. you'll need to recompile LT after that.


(Giang Lê Hoàng) #3

I seems beyond my ability...
Thank you!