ProseMirror Proofread/Spell Check Library

Hello, I have been finding many different ways of integrating spell-checking into ProseMirror on my other project. I thought it would be helpful for me to take the plugin and put it as a separate library.

Demo: https://nullpointerexceptionkek.github.io/prosemirror-proofread/

This library is instead a Wrapper for integrating spell check rather than a spell checker itself. The library integrates well with Language Tool, and it is possible to replace it with any other spell-checking services.

The library caches request so the same text will not be checked twice

4 Likes

Hello, I want to address the main difficulty of creating a spell-checking library is to handle ProseMirror’s index. Most spell-checking services are designed to handle plain text, and mapping between a rich ProseMirror document to plain text and vice versa is complex.

To do so, the library checks each node individually and caches the results. As for inline nodes, the library will add filler characters by default. However, this might need to be overridden for some particular inline nodes.

1 Like