Privately Using LLMs for Spellchecking?

Other than LanguageTool, are there other privacy-friendly LLMs for spellchecking?

2 Likes

Self-hostable models such as Llama are sufficient for your use case.

1 Like

This is the best one I know.

2 Likes

That looks pretty good, and Automattic maintains the Github repository.

2 Likes

Haha not sure if this one is a positive or negative. x)

2 Likes

From my perspective, maintenance is better than neglect, regardless of the maintainer’s capability/credibility.

1 Like

Spellchecking is built-in featutes of many OS and softwares, most of them also allow custom dictionary, they check it in real time Unlike LLM.

LLM is quite inefficient as a spellchecker.

2 Likes

Like @TinFoilHat says, many softwares do this.

A few that I know of: LibreOffice, Notesnook, I don’t know of any phone keyboards that don’t spellcheck, Brave browser.

A use case is I often type up a long post in Notesnook and copy/paste when I’m done.

1 Like

Disagree with both of you above because most of the time, the hard part is not the dictionary part but the overall whole sentence/a higher level meaning issue.
Local error correction fixes a few issues but not all of them because grammar/meaning is also a big piece of the cake.

I’m speaking from experience as a non-native english speaker. :joy:

2 Likes

That would be another feature.

If OP / you needs a tool for that purpose, Local SLMs would do the trick. With appropriate system prompt, you can tailor the output format / language without giving further instructions. Models like Gemma 3 4B QAT is quite performant yet resource efficient.

Alternatively, you could use Proton’s Lumo for the same purpose, if it is not something sensitive, you can even use ChatGPT without an account.

2 Likes

I guess that most people looking for a spellchecker could overall benefit from it being universally compatible with public/sensitive stuff and not need to have to deal with thinking twice where they can upload their text/files.

As for SLMs, I think that a follow up question would be: are there easy to use tools that provide that out of the box for non-tech savvy folks? :grinning_face_with_smiling_eyes:
Of course, having something running in the background rather than needing to be copy-pasted would also be optimal.

Maybe I’ll give a try to Harper myself. :+1:t2:

1 Like

Thats true, I personally only use local SLMs, but I usually would suggest multiple options to cater different scenarios, in this case, would be

a) not having compatible hardware (phones / computers that could handle inferencing), plus
b) mid-high usage (rules out Lumo in this case due to free tier rate limit)

I personally use LMStudio (no its not FOSS, but it simply works, and it isn’t too bad), if you deduct the time required to download the software and the models, you can set it up in a matter of minutes, and there are plenty of basic tutorial out there.

1 Like

Might try, but how can I install?

1 Like

There are various integrations via web extensions and plugins in the documentation:

Here is the Firefox add-on:

1 Like

OP specifically asked about spellchecking. Not sure why you added in the extra feature-set of grammar correction.

1 Like

Grammar checking is fine, and so do paraphrasing

1 Like

It is IMO fixing the same issue and deserves to be put in the same package: speaking/writing a language well is an entire set of skills and not knowing how to spell words right. :grinning_face_with_smiling_eyes:

Knowing how to drive is not only about pressing gas but also knowing the rules of the road. :+1:t2:

1 Like

Here is a guide on avoiding stylometry which is somewhat related. Stylometry Protection (Using Local LLMs) - The OPSEC Bible

2 Likes