betagouv / pad.numerique.gouv.fr

Pad numérique de l'état
https://pad.numerique.gouv.fr/
GNU Affero General Public License v3.0
6 stars 1 forks source link

Advanced spell-checker #45

Closed lebaudantoine closed 5 months ago

lebaudantoine commented 7 months ago

Inspired by CodeMirror Spell-Checker, powered by LanguageTool, an open source proofreading software. They offer an HTTP server out of the box.

The two first commits explain properly my work.

You will need to add a new env variable to the docker compose:

SPELL_CHECKER_ENDPOINT=https://api.languagetool.org/v2/check

ASAP, we will deploy our own LanguageTool server.

https://github.com/betagouv/pad.numerique.gouv.fr/assets/45729124/a4f42728-0a19-4ed2-b07a-9910aa91ebe7

Todo:

lebaudantoine commented 6 months ago

I noticed some weird behavior when passing some latin text.

Capture d’écran 2024-04-17 à 09 30 42