Back to LanguageTool Homepage - Privacy - Imprint

Simple rule example


we want to write a simple Java Rule which should ignore web addresses. What is the best way? We prefer a Java solution. Can we or should we use a disambiguator for that?

kind regards


Do you want the rule to complain about the use of web addresses? Then see

To ignore parts of the text you can use the disambiguator, please see


yes thank you. I think to use disambiguator and “Ignoring in spell-checking rules” is the correct way for us. We want exclude web addresses / urls from checking at all.

Is there a way to add a disambiguator programatically with Java?

I think that’s possible if you implement your own language (or extend the language class you’re using, e.g. and then return your new Disambiguator in the getDisambiguator() method.