languagetool-org / languagetool

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

implement a user dictionary for GUI and commandline #65

Open milekpl opened 10 years ago

milekpl commented 10 years ago

It should be possible to add words to the dictionary stored in the same directory where the configuration resides (i.e., user home directory). The words would be add to ignored words when initalizing LT, also in the command-line mode. The file should be a simple text file, just like ignore.txt, and the same reading routine can be used.

WolfgangFahl commented 9 years ago

http://stackoverflow.com/questions/26003377/how-to-add-two-word-patterns-to-be-ignored-by-languagetool has a workaround and an extended request

martinvonwittich commented 7 years ago

I had a similar idea in this forum post: http://forum.languagetool.org/t/can-i-put-my-configuration-into-seperate-files/1269/3

This shouldn't only work for ignore.txt, but for all important configuration files for all languages. At least for the command line tool/server it could work like this:

You could then invoke the command line tool/server e.g. with --user-config-dir ~/.config/languagetool, and it would then add your custom configuration to the upstream configuration.

SkyCharger001 commented 7 years ago

I was thinking: this could be useful for 'in-universe' terminology.

ssokolow commented 7 years ago

I actually have an old, on-hiatus projects where I was writing LanguageTool definitions for grammar mistakes like "wooded leg" and "plasma leek" that I see on Fanfiction.net.

https://github.com/ssokolow/languagetool-fanfiction

This would be very helpful for applying that.

martinvonwittich commented 7 years ago

I've hacked together a small shell script that reads user configuration from /etc/LanguageTool and applies them to a LanguageTool installation located in /opt/LanguageTool. Currently it can apply patches (to hook into the XML files, or to apply bug fixes) and merge text files. It's all pretty much hardcoded for my requirements and only deals with de rules, but it should be possible to adapt and extend it for other purposes. languagetool-user-config.tar.gz