languagetool-org / languagetool

Style and Grammar Checker for 25+ Languages
https://languagetool.org
GNU Lesser General Public License v2.1
12.21k stars 1.38k forks source link

languagetool-tools not available as package #9133

Open samanthagottlieb opened 1 year ago

samanthagottlieb commented 1 year ago

At the Guardian we are building a content checker that uses Language Tool and we'd like to include a spell check as part of our content checks.

The way that we've been doing this so far is to dynamically generate a dictionary file .dict every time our dictionary changes. We expect our dictionary to change often and for our checker service to update in real time. We are using the code in languagetool-tools to do this but because it's not available as a package we've had to copy the code and adapt it.

Is there any appetite for making languagetool-tools available as a package? We can see that it's manually excluded for now, but we don't know the rationale. We are very happy to submit a PR.

Thanks for your help! Samantha

danielnaber commented 1 year ago

Hi Samantha, there's a file called spelling_custom.txt to which you can add words without rebuilding anything (just a server restart is needed). Wouldn't that be a better solution?

rhystmills commented 1 year ago

Thanks for getting back to us @danielnaber! In our case we have an official dictionary of ~250,000 words including inflections for the organisation and want to make sure that the spellchecker is using only (or at least almost entirely) words from that dictionary, so we're keen to replace the default wordlist.

danielnaber commented 1 year ago

Is there any appetite for making languagetool-tools available as a package?

You mean as a Maven package, don't you? Considering how small languagetool-tools is, we'd probably accept the PR for that.