ipython-contrib / jupyter_contrib_nbextensions

A collection of various notebook extensions for Jupyter
http://jupyter-contrib-nbextensions.readthedocs.io/en/latest
Other
5.23k stars 807 forks source link

It would be nice if spell checker suggested correct spellings #1234

Open AEDWIP opened 6 years ago

AEDWIP commented 6 years ago

Any thoughts about changing the implementation so that it not only highlights misspelled words but also corrects . In the past I have used gnu ispell. There are also pure JavaScript solutions like http://www.javascriptspellcheck.com/

Kind regards

Andy

jcb91 commented 6 years ago

Yep, would be good, but haven't got around to it for now. The current implementation is pure javascript, using Typo.js, which is available free for any use under the modified BSD license. Intriguingly, the unlike the library you link is neither free (for publicly-acessible sites) nor open-source, (see javascriptspellcheck.com/Free for details), and actually isn't pure javascript, requiring either php or ASP on the server (see javascriptspellcheck.com/Compatibility).

Implementing this would be reasonably easy to do for anyone with the inclination, I suspect. Given that typo.js already provides a suggest('mispeld') method, the remaining work would be a little jquery to display the suggestions, handle picking them etc.