Back to LanguageTool Homepage - Privacy - Imprint

Get word form by changing token's postag in Java rule


#1

Hi,

I’m trying to write LT Java rule and got stuck on how to get replacement for my error.
I have identified the token (AnalyzedTokenReadings token) as an error, and now I want to suggest other form (e.g. suggest VBZ instead of VB) of this token as a replacement.
How to do that?
Thanks.


(Daniel Naber) #2

You can use Synthesizer to build inflected forms: https://languagetool.org/development/api/org/languagetool/synthesis/Synthesizer.html