4 ms·
"Writing a spellchecker in the mid-1980s was a hard problem. Programmers came up with some impressive data compression methods in response to the spellchecker c
by timr 14y ago
"Writing a spellchecker in the mid-1980s was a hard problem. Programmers came up with some impressive data compression methods in response to the spellchecker challenge."
It's still a hard problem. Most working programmers today couldn't write a good spellchecker if their life depended on it.
Sure, your average coder can load the dictionary file into RAM in a hash table (built by someone else), and a few of those could maybe use a library implementing a Trie or a DAWG (built by someone else)...and a percentage of those might even understand what they're doing well enough to know how to use those tools to make things better. But once you've got the data into memory, what do you do with it? About the most anyone can do is point to Peter Norvig's blog post.
Sadly, very few people understand the theory behind it well enough to make improvements. So for everyone else, it's a major feat of software engineering -- on a bigger computer.
- StavrosK 14y agoSure, it's still a hard problem, like carpentry is a hard problem. I've never had to do it because it's been solved for 20 years, but I'm fairly sure I'd get great at it if it were my day job.
- timr 14y agoloading data into a hash table is a solved problem. coming up with clever ways of solving problems that are beyond the scale of today's computers is the challenging, interesting part.