Code Monkey home page Code Monkey logo

Comments (5)

WolfgangFahl avatar WolfgangFahl commented on May 16, 2024

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.

martinvonwittich avatar martinvonwittich commented on May 16, 2024

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.

SkyCharger001 avatar SkyCharger001 commented on May 16, 2024

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

from languagetool.

ssokolow avatar ssokolow commented on May 16, 2024

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.

martinvonwittich avatar martinvonwittich commented on May 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.