Disambiguation

The examples in the wiki for disambiguation are quite complex.

  • What should I do to remove all postags from a word, and add a new one that is dictated by the words around it?
  • How do I remove all postags on a word except one?

Have a look at Developing a Disambiguator - LanguageTool Wiki
The relevant actions are “filter” and “replace”

Of course I had a look there. And i managed to get quite good results with filterall. a normal filter does not work as I think it should, see the other post. The examples are quite complicated and unclear in what they do exactly. But I will find out, by trial and error.