jupyterlab-contrib / spellchecker

Spellchecker for JupyterLab notebook markdown cells and file editor.
BSD 3-Clause "New" or "Revised" License
205 stars 20 forks source link

Dictionary files <pt_BR.dic> & <pt_BR.aff> not recognized. #114

Open leodrivera opened 2 years ago

leodrivera commented 2 years ago

Description

Dictionary files & , from the LibreOffice and Chromium, are not recognized nor loaded as online dictionaries.

Reproduce

I've tried both as online and offline dictionaries:

Expected behavior

That the dictionaries were loaded correctly, both by the "online" and "offline" method

Context

Config dir: /home/leodrivera/venv/data-analise/etc/jupyter jupyter_server_mathjax enabled

  • Validating jupyter_server_mathjax... jupyter_server_mathjax OK jupyterlab enabled
  • Validating jupyterlab... jupyterlab 3.4.4 OK jupyterlab_git enabled
  • Validating jupyterlab_git... jupyterlab_git 0.37.1 OK jupyterlab_pullrequests enabled
  • Validating jupyterlab_pullrequests... jupyterlab_pullrequests 3.0.2 OK jupyterlab_spellchecker enabled
  • Validating jupyterlab_spellchecker... jupyterlab_spellchecker 0.7.2 OK jupyterlab_templates enabled
  • Validating jupyterlab_templates... jupyterlab_templates 0.3.1 OK nbclassic enabled
  • Validating nbclassic... nbclassic 0.4.3 OK nbdime enabled
  • Validating nbdime... nbdime 3.1.1 OK notebook_shim enabled
  • Validating notebook_shim... notebook_shim OK voila.server_extension enabled
  • Validating voila.server_extension... voila.server_extension OK
ocordes commented 2 years ago

OK, that is understandable ... The reason is that the underlying spellcheck engine has a lot of problems with the aff-files in the case of roman languages with a lot of differentiations due to grammar rules. I had the same problem with the italien dictionary I found for free. The engine is simply enrolling all rules into a list of words, which is huge in your case ;-) we are looking for a better engine which also will solve some other problems, e.g. multi/mixed languages support.

leodrivera commented 6 months ago

@ocordes You said on the last comment that you guys were looking after a new engine. Since it has passed almost 3 years and a lot of contributions were made since them, do we still have this issue?