5 karma · joined Jan 30, 2026 (10mo ago) · 8 submissions
comment 9mo ago · link · parent
Lexiathan also doesn't have any edit distance parameters that need to be configured, so there is no "tuning" required. In particular, it's worth mentioning that using a very large dictionary, e.g. 500,000 words, often degrades accuracy rather than improves it, and likely increases memory usage and latency as well.
Regarding Norvig's 98.9% figure--this seems to be from Norvig's own made-up data. In the real world, users often generate misspellings that exceed 2 edit distances in many use cases (OCR, non-native speakers, medical/technical terminology, etc), and published text (often already spell-checked) doesn't reflect the same level of errors. And in any case, Norvig's spell-checker apparently only achieves an accuracy of 67% on its own chosen benchmarks, so clearly the 98.9% figure is not a realistic reflection of actual spell-checker performance, even for an edit distance of 2. Lexiathan is extremely accurate and retains high performance even on heavily degraded input, and the benchmark data (and demo) that I presented reflect that.
comment 9mo ago · link · parent
I don't believe my benchmark of SymSpell is misleading. I used the webassembly repository that is listed on your github: https://github.com/justinwilaby/spellchecker-wasm
Here is the code I used for my benchmark: https://gist.github.com/Eratosthenes/bf8a6d1463d2dfb907fa13c...
I reported the results faithfully and I believe these results reflect the performance that users would typically see running SymSpell in the browser, using the default configuration. If I had increased the edit distance, then the latency performance gap between Lexiathan and SymSpell would have been even larger, and then arguably I would have been gaming my metrics by not using SymSpell as it is configured.
Regarding dictionary size: The dictionary size (as you can verify from the gist) was 82k words. I didn't specify the dictionary size I used for Lexiathan, but it was 106k words.
Lastly, three of the words in the benchmark have edit distances greater than three:
distance("pronnouncaition", "pronunciation") = 4
distance("maggnificntally", "magnificently") = 4
distance("annnesteasialgist", "anesthesiologist") = 6
So I do not believe SymSpell would correct these even with the edit distance increased to 3.
3.
Show HN: A spell-checker 380x faster than Hunspell, 5x faster than SymSpell(lexiathan.com ↗)
3 points · by lexiathan · 9mo ago · 4 comments
comment 10mo ago · link · parent
comment 10mo ago · link · parent
comment 10mo ago · link · parent
This is not to say that historical films lack value; but sitting all the way through them with rapt attention is not necessarily as easy as you'd imagine.