Back to LanguageTool Homepage - Privacy - Imprint

Replace a word but with same inflexion as original

I wish to create a rule that will take any inflexion of word “vaccinate” and replace it with the same inflexion of “immunise”. Is there a way of doing that without dealing with each inflexion as a separate rule?

Yes. The suggestion should be something like:
<suggestion><match no="1" postag="(V.*)" postag_regexp="yes" postag_replace="$1">immunise</match></suggestion>

That’s fantastic. Many thanks