Code Monkey home page Code Monkey logo

Comments (2)

heikkil avatar heikkil commented on June 3, 2024 2

I just revisited languagetool/lantool.el after a year long break and managed to get everything going.
My solution is bit of a hack, but it is better than nothing.

Languagetool now uses spellcheckers to look for misspelled words. In emacs and org mode it makes more sense to let flyspell do the spellchecking and disable the corresponding languagetool rules.

You can see the names of the matching rules after you have enabled debugging M-x langtool-toggle-debug and ran M-x langtool-check on your sample text. The output is in buffer *LanguageTool Debug*.

I write in American and British English, so I added Morphologic rules for both languages to my disabled rule list:

    (setq langtool-disabled-rules '("WHITESPACE_RULE"
                                  "EN_UNPAIRED_BRACKETS"
                                  "COMMA_PARENTHESIS_WHITESPACE"
                                  "EN_QUOTES"
                                  "MORFOLOGIK_RULE_EN_GB"
                                  "MORFOLOGIK_RULE_US"))

You seem to be writing in French. A quick test showed that the most commonly triggered rules are HUNSPELL_NO_SUGGEST_RULE and FRENCH_WHITESPACE. If you use the org option toc:nil, you might also want to disable the rule NIL. The message claims that it is an Anglicism :). Add the rules that you find to be superfluous to variable langtool-disabled-rules and you should be fine.

from emacs-langtool.

thomas-louvigne avatar thomas-louvigne commented on June 3, 2024

Sorry to answer you very late.

from emacs-langtool.

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.