DSpellCheck icon indicating copy to clipboard operation
DSpellCheck copied to clipboard

Request: Detect unlikely combinations of characters

Open glocalglocal opened this issue 1 year ago • 2 comments

It would be great if this plugin could detect unlikely combinations of characters as likely spelling mistakes. Eg

  • multiple spaces between words, between a word and a punctuation mark, or a word and a symbol, etc eg word word, word ., 12.3 %, word) .
  • multiple or impossible combinations of punctuation marks eg word ,., word.., word1,, word2
  • repeated word eg word word
  • redundant spaces at the end of a line.
  • double or triple minus instead of n-dash and m-dash

Strictly speaking, this could be the job for a linter or a grammar checker, but I couldn't find another plugin doing any of this. It may not be difficult to add this functionality and it would make a big difference.

glocalglocal avatar Nov 23 '24 18:11 glocalglocal

Unfortunately I think it's mostly out of scope, it's basically having separate regex or something similar based spell-checker on top of current one.

However, I had an idea to add a support for languagetool, as you can see in my image below, it does support at least some of suggested scenarios. Might be useful to prioritize it then. Image

Predelnik avatar Jan 28 '25 20:01 Predelnik

The problem is many of us will not want to upload text to someone else's cloud eg for privacy or other reasons. Languagetool supported self-hosting but I think they discontinued it. WritingTool for LibreOffice works locally and supports local AI too.

A linter plugin may be more appropriate after all.

glocalglocal avatar Jan 28 '25 23:01 glocalglocal