4 ms·
What would be a better way to incorporate AI as a spell checker? In comparison to non-AI traditional tools, AI has the advantage of "understanding" the text, r
by kangalioo 4mo ago
What would be a better way to incorporate AI as a spell checker?
In comparison to non-AI traditional tools, AI has the advantage of "understanding" the text, reducing the number of "stupid" mis-corrections. And its spelling correctness is usually already impeccable, so what is there to gain by interfacing it with traditional solutions, and how can it be achieved?
- ceejayoz 4mo agoI am skeptical that AI brings any benefit to spell checking at all.
- trollbridge 4mo agoAI can’t really spell check without risking changing the meaning of sentences. Spell checking was a solved problem before this.
- applfanboysbgon 4mo agoSpellchecking is absolutely not a solved problem. I immediately disable spellchecking on every avenue it tries to approach because managing a bunch of dictionaries on every browser/device/application that has its own spellchecker for some godforsaken reason to not have squigglies spammed over every piece of jargon, slang, and slightly atypical spelling is incredibly annoying. I don't know how effective LLMs are, but it's difficult to imagine they can be worse than the existing regime, which is embarrassingly bad for the decades it's been around.
- PaulHoule 4mo agoHuman copy editors are less than perfect too. I hired one copy editor who I could not trust to be the last person who touched a document before it went out. I had a friend who wrote an article for the New York Times: the article made a lot of sense before she submitted it, but it was edited for length and style and it definitely read like a New York Times piece but didn't completely make sense.
- quuxplusone 4mo agoAn interesting idea I saw long ago in some book (I thought it was K&P's "Software Tools," or my second guess was K&R1, but neither of those panned out — a strong Mandela effect) was the clever idea of a whole-document spellchecker that works purely probabilistically, by histograms: you feed it a document, it tallies the trigraphs, and any trigraph that appears only rarely is flagged as a likely typo. This approach lets through unknown-but-realistic words like "antithematory" while flagging unrealistic words like "prisencolinensinainciusol" (because of its unlikely "ciu" and "ius" clusters) and "antthemaory" (because of "ntt" and "aor"). To make this approach work better, feed it a bunch of English text (or whatever language your document is in) before the document you really want to "spellcheck." Essentially this isn't a spell "checker" so much as a spell "linter" — it looks for antipatterns statistically associated with bugs, and reports the patterns for further investigation. If anyone knows where this trigraph-based "spellchecker" was first presented, I'd love to find out again.
- mattkrause 4mo agoThat's uhh...a language model?
- serf 4mo agoIt's a modeling of language, it's not structurally anything like an LLM.
- mattkrause 4mo agoIt’s literally a trigram (character) language model. Check any NLP book from before 2015 or so. LLMs have more stuff bolted onto them (embeddings, RLHF) but the autoregressive core is a direct descendent of that sort of language model.
- justinclift 4mo agoSo, LM vs LLM? :)
- 4mo ago
- murphyslaw 4mo agoYou used to be able to add your own words to spellcheckers, somehow that went out the window. I rarely see the option for it on a red-lined word now in the context menu, and when it does adding the word seems to make no difference at all.
- cyberax 4mo agoTry the LanguageTool. It's now good enough to show smelling pisstakes inside my IDE, including things like missing articles. Without creating tons of visual noise.
- NateEag 4mo agoI can agree that LLMs might yield better results overall than a standard spellchecker. If your goal is to check your writing for plausibility and rough grammatical correctness, that's certainly an open problem for deterministic, conventionally-written software tools. My goal with spell checking is to make sure my occasional mechanical typos while using a desktop computer get caught before someone else has the chance to be annoyed by them. I don't have an issue with using the wrong word entirely when writing at a computer, so that's not a use case I think about. It does happen when I use a smartphone, due to autocorrect and predictive typing, but that's not a case this Claude skill applies to. So, for my use case, the ~6 orders of magnitude more energy used to send documents over the network to be hyperchurned on an array of GPUs guzzling electricity is pure waste. It also makes the whole process orders of magnitude _slower_. I find that massive waste and slowdown infuriating, even while conceding that it can perhaps deliver a little more value then the deterministic spell-checking algorithms I rely on.
- trollbridge 4mo agoA problem with LLM-based spell checking is that it can alter the actual meaning of the sentence in its quest to improve the spelling. This is a fairly hard problem to fix.
- trollbridge 4mo agoYou're talking about deployment, not the technical implementation of spellchecking itself. I have been using reliable spellchecking since the 1980s.
- wat10000 4mo agoOnly if the problem is declared to be whatever it is that spell checkers solve. As the classic joke goes, "Me spell chucker work grate. Need grandma chicken."
- xoa 4mo ago>Only if the problem is declared to be whatever it is that spell checkers solve. The problem being misspelling, hence, "spell checker". Like, this seems pretty straightforward? Grammar checking if you cannot use the language properly is a pretty different problem space, and indeed has long existed and is exposed as a separate thing. And not just in fancy word processors either, if you go to something as simple as macOS TextEdit you'll see separate check boxes for "Check spelling as you type" vs "Check grammar with spelling". If someone wants to try out using LLMs for grammar no problem, but spell checking is purely about the mechanical and, importantly, deterministic aspect of typos or outright non-words. >As the classic joke goes, "Me spell chucker work grate. Need grandma chicken." There is a genuine touch of irony/meta in you using that here in this context. That sentence has no misspelled words, and importantly gets across the exact humorous meaning the human who wrote it intended. The joke literally only works because a human was able to make creative use of language. If you had an LLM agent posting for you to HN and it automatically changed that to: >As the classic joke goes, "My spellchecker works great but could use some grammar checking." Well, where would the joke be now!? This goes to the exact concern people have with powerful non-deterministic meaning-changing tools replacing deterministic meaning-preserving ones.
- applfanboysbgon 4mo agoI just fed this entire thread (excluding your comment pointing out the joke, and the text mentioning that it was a joke) to an LLM, and it did better than the dictionary spellchecker: corrected one real error, left my "squigglies" alone which was attacked by squigglies with the old-hat spellchecker, and specifically noted, without any prompting in that direction, that it left the joke spelling unchanged. It did not rewrite any sentences. I'm all for determinism where deterministic tools work, but the current implementations are so bad I can't blame people for turning to a non-deterministic program if it's still better on average.
- intrasight 4mo agoIf it's a solved problem, then why does my iPhone suck at it?
- trollbridge 4mo agoMaybe it has a poor implementation. aspell works great. Back in the day I used some IBM employee written software on DOS that was a TSR that would spell check words for you in popular editors. In the 1990s every word processor had a decent spell checker. They all had the ability to add your own additional words.
- NateEag 4mo agoAgreed, aspell is noticeably better than many of the others I've used over the years. I suppose poor implementations of boring old deterministic spell-checking are a thing, too. Maybe that's some part of the disconnects in this thread.
- bityard 4mo agoStrong disagree. One of the core strengths of LLMs from the beginning is that they are very good at NOT changing meaning, as long as your model isn't so small that it starts to get "dumb" and as long as your input fits in the context window. (Two known limitations that aren't always exposed to the end user in poorly-written applications.) Of course, LLMs are non-deterministic and do occasionally make mistakes, so you have to use them correctly and review their output. You shouldn't paste a doc into the web UI and tell it "fix all the mistakes and write the output to a new file." You should instead have it present each mistake and fix to the user as a diff and let the user approve or deny, either within the application or allowing the user to make their own edits. Never let it "rewrite" the whole document, that's the document-editing equivalent of giving OpenClaw root on your personal computer. Nothing good will come of it. Classic spell checkers can't detect homophones. E.g. "there" and "their." Grammar checkers can, but at least the ones that I have used also like to change the tone of my writing to sterile corporate PC speak. LLMs used for grammar checking have not, in my experience, meddled with my tone. (Although sometimes they try to admonish me for it!)
- dragonwriter 4mo ago> Grammar checkers can, but at least the ones that I have used also like to change the tone of my writing to sterile corporate PC speak. Most grammar checker packages also include style checking, and the default options tend toward that style (because that’s the big market for them.) Most of them are also configurable, so you can disable style checking entirely while still checking grammar, or tweak which style rules are applied.
- saynay 4mo agoAI certainly is the shiny new hammer, and it is tempting to see the world as nails. Traditional methods might not be perfect, but they also easily fit in the memory of even low power devices. Perhaps it isn't a problem worth burning a dollar of tokens for every spelling mistake.
- sarchertech 4mo agoThe fact that it produces correctly spelled words says nothing about it’s ability to find spelling mistakes or to correct them without errors like completely changing the word.
- allears 4mo agoYou mean errors like misusing "it's" when the right word is "its?"
- Hizonner 4mo ago> What would be a better way to incorporate AI as a spell checker? Don't do a stupid thing like that in the first place. > In comparison to non-AI traditional tools, AI has the advantage of "understanding" the text, reducing the number of "stupid" mis-corrections. I doubt it, but if that's true, run a normal spell checker, and then give the output to your LLM to filter. > what is there to gain by interfacing it with traditional solutions, About a billionfold improvement in compute efficiency, and a lower error rate. > and how can it be achieved? 10 seconds of actual thought.
- jlarocco 4mo ago>What would be a better way to incorporate AI as a spell checker? You just don't need AI to do spell checking. It's a waste of energy, bandwidth and tokens. It's like Java Enterprise Fizz-Buzz - 1000x more complicated than it needs to be and complete overkill. But at least you can tell your manager you're using AI!