mkiol / dsnote

Speech Note Linux app. Note taking, reading and translating with offline Speech to Text, Text to Speech and Machine translation.
Mozilla Public License 2.0
389 stars 19 forks source link

Spellcheck #17

Open devSJR opened 10 months ago

devSJR commented 10 months ago

Speech note is an excellent software that can solve a lot of my tasks. A small improvement proposal on my part would be the implementation of a spell check (e.g., Hunspell, Aspell) in the notepad. This would be very useful, for example, if you want to have text translated and make sure that there are no unnecessary errors before translation due to small typos. Probably the best solution would be an integration of grammar checks via LanguageTool (remote API or local server).

mkiol commented 10 months ago

Thanks for the ideas 👍🏿

Adding to the roadmap:

Probably the best solution would be an integration of grammar checks via LanguageTool (remote API or local server)

LanguageTool seems to be a great tool but the goal is to work offline, so remote API is not an option. Lucky there are languages models for grammar correction that can be run locally. I'm looking at https://huggingface.co/models?search=grammar and trying to figure out how to integrate them into Speech Note.

devSJR commented 10 months ago

Thanks for considering it!

One remark about LanguageTool. I am also a huge fan of offline software. Therefore, I am using LanguageTool. It powers grammar and spelling in LibreOffice and I use it too as a desktop app to check my markdown, LaTeX et al. files. Even with ngrams. No remote API required for grammar, spelling and style checking. This works by invoking java -jar LanguageTool.jar from https://languagetool.org/download/. However, sentence suggestions are only working with the remote API indeed.

However, I get your point regarding huggingface. Either of them will mean a lot of work.

JamesClarke7283 commented 9 months ago

+1 I think this would be a great feature. Great app BTW, i use it every week.

devSJR commented 6 months ago

Thanks for the ideas 👍🏿

Adding to the roadmap:

* spell checker/corrector

Probably the best solution would be an integration of grammar checks via LanguageTool (remote API or local server)

LanguageTool seems to be a great tool but the goal is to work offline, so remote API is not an option. Lucky there are languages models for grammar correction that can be run locally. I'm looking at https://huggingface.co/models?search=grammar and trying to figure out how to integrate them into Speech Note.

BTW, what about sonnet? Might this library be an option for spell check?

https://api.kde.org/frameworks/sonnet/html/index.html