How to install Languagetool either on Synology NAS or OpenWRT?

I would like to use Languagetool at home and Install it on my Synology NAS or OpenWRT (only accessible on LAN zone).
On both I have the storage space it’s needed.

How could I do one of that?