Add spelling_global.txt to LT Docker

hey,

I have a LT Instance as a Docker. It works fine.
I wondering how I can add custom words to a global dictionary.
I found this one here: Improving Spell Checking | dev.languagetool.org
But where should I save the spelling_global.txt or how can I add words? I downloaded LT6.3 and only found spelling.txt files and no spelling_global.txt file. → so it seems to me that I have to add a spelling_global.txt file. But where should I place it, so that it will work?

I would like to add a spelling_global.txt file to my Docker Container:
FROM openjdk:8-jre

COPY ngrams/ /languagetool/ngram-data/
COPY server.properties /languagetool/server.properties
RUN wget https://languagetool.org/download/LanguageTool-6.2.zip &&
unzip LanguageTool-6.2.zip &&
rm LanguageTool-6.2.zip

WORKDIR /LanguageTool-6.2

CMD [“java”, “-cp”, “languagetool-server.jar”, “org.languagetool.server.HTTPServer”,“–languageModel”,“/languagetool/ngram-data/”,“–config”, “/languagetool/server.properties”, “–port”, “8081”, “–public”, “–allow-origin”, “‘*’”]
EXPOSE 8081

It’s in languagetool-core.jar and that unfortunately means you’d have to unzip that file, change the spelling_global.txt and re-zip it again.

1 Like