Comments (5)
http://stackoverflow.com/questions/26003377/how-to-add-two-word-patterns-to-be-ignored-by-languagetool has a workaround and an extended request
from languagetool.
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:
- add a new option, e.g.
--user-config-dir <DIR>
- for each data file LT reads (e.g.
org/languagetool/rules/de/grammar.xml
), it also reads the same file from--user-config-dir
(so in this case$USER_CONFIG_DIR/org/languagetool/rules/de/grammar.xml
) and merges the upstream config with the user config. - text files are merged simply by appending the user config to the upstream config
- XML files are somehow properly merged
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.
from languagetool.
I was thinking: this could be useful for 'in-universe' terminology.
from languagetool.
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.
from languagetool.
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
from languagetool.
Related Issues (20)
- [en] add "Informal" category
- [en] False Positive IN_WINDOWS
- LongSentenceRule shows confusing behavior HOT 5
- [DE] LT-Bugfehlermeldung April.2024 HOT 2
- ExceptionInInitializerError on version 6.4 HOT 10
- [DE] widersprüchlicher Vorschlag zu einem Fehleralarm
- Missing suggestion for "werrden" HOT 28
- What's wrong with "der Ergebnisse"? HOT 4
- Please add the word "Vierfüßlerstand" HOT 1
- Wikipedia tool issue with UTF-8
- [en] Issue with "a" - 2024-05-04 HOT 1
- [en] Article false positive on "an http" HOT 1
- Languagetool extension 6.4 makes multiFormatSave extension 1.5.6 crash. HOT 3
- [DE] Fehlalarm mit "lieb"(Adejektiv)
- Support multi-word and punctuation on Dictionary
- Abgelehnte Wort "Schwulenhass"
- LO extension: Error Message (Crash?) on saving new documents HOT 1
- [DE] False posiive for mir/mit
- Дніпровщина
- [LO-Add-on] Pop-up menu using “info” icon instead of “question” icon — 2024-05-13 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from languagetool.