[Support] Languagetool Docker


Recommended Posts

Overview: Support thread for the languagetool docker template on Community Applications.

Dockerhub: https://hub.docker.com/r/erikvl87/languagetool

Documentation: https://dev.languagetool.org/

Repository: https://github.com/languagetool-org/languagetool

 

This is the support thread for the languagetool docker template that can be found on Community Applications. Plugins for browsers, Microsoft Word and Google Docs can be found on the website of languagetool: https://languagetool.org/

 

LanguageTool is an Open Source proofreading software for English, French, German, Polish, Russian, and more than 20 other languages. It finds many errors that a simple spell checker cannot detect.

 

Installation

To install the container, find it in the Community Applications on your Unraid server and click to install from there. Check if the port 8010 is still free on your server and change if not. It is recommended to use ngrams data to improve the error checking. To use this data, download your language packs from this link: https://dev.languagetool.org/finding-errors-using-n-gram-data and move it on your Unraid server. Since it is recommended to put the data on a faster storage medium such as an SSD, the path is mapped to the appdata folder. In the folder you choose, move the data in its own directory named after the language. So en for English, fr for French, de for German and so on. So in the case of using the appdata directory with the folder named languagtool, the data for english will be mapped to /mnt/user/appdata/languagetool/en and the container path /ngrams in the template should be /mnt/user/appdata/languagetool. You can add multiple languages to the directory.

 

Usage

An example curl request is:

curl --data "language=en-US&text=a simple test" http://localhost:8010/v2/check

 

It is recommended to use your own reverse proxy to make the container available outside your own network over https and use the plugins available on https://languagetool.org/ for browsers. For the plugin settings choose Other Server and set the url to https://DNS.NAME.COM/v2

where you change DNS.NAME.COM with the url you picked to reverse proxy your container.

 

 

Feel free to ask any questions or mention problems you're facing with the container in this thread.

 

Edited by ArieDed
Link to comment
  • ArieDed changed the title to [Support] Languagetool Docker
  • 6 months later...

Thanks for the template!

 

This container doesn't shut down gracefully, so it will always time out when Unraid tries to shut it down (with ´docker stop -t xx´, where 'xx' is the Docker stop timeout you've set), e.g., when backing up appdata. If you add '--init' under 'Extra Parameters' it will work as expected.

 

Also, is there no way to save/sync your personal dictionary when using the self-hosted version?

Edited by KnifeFed
  • Like 1
Link to comment
  • 3 weeks later...
  • 3 weeks later...
On 8/11/2021 at 8:10 PM, laest said:

Thanks for the template. Is there any way to use authentication with the self-hostet version?

 

Thanks in advance for any hint :)

 

Good question, as now the service is open for everyone.

Could you solve this problem? Maybe with authelia, but then the Add-Ins can't connect.

Link to comment

Started tinkering with this.  I'm familiar with Nginx Proxy Manager and have a purchased domain.  However, no matter what I do it will fail to connect via the FireFox Plugin.

 

 

 

Any ideas?

 

EDIT:  I think I got it working.  Apparently the "v2" after your domain name is VERY important.

Edited by CoZ
Think I fixed it?
Link to comment
  • 1 year later...
  • 1 year later...

Hi,

 

I'm trying to get this to work but I can't figure it out.

I created the directory "languagetool" on "/mnt/cache/user/" and extracted the english and german ngram zip archives into that. So I have "/mnt/cache/user/languagetool/en" and "/mnt/cache/user/languagetool/de".

 

In the template there are "Host Path 1" and "langtool ngrams" which I both set to "/mnt/cache/user/languagetool/". The container is not starting correctly. I can't look into the logs because it's rapidly restarting.

 

I tried changing "Host Path 1" to "/mnt/cache/user/languagetool/en" but no change.

 

Can anyone help me with this?

 

 

Edit: Got it working. I had to leave "langtool ngrams" on "/ngrams" and set "Host Path 1" to "/mnt/cache/user/languagetool".

Edited by MatrixRetoastet
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.