Eclispe Dictionary
Warning Geek Post!
Eclipse (the Java IDE) has a spell checker for your comments and text files. Good eh, especially if like me and loads of other coders you can't spell. You can find the settings under: General > Editors > Text Editors > Spelling.
One problem - there's no dictionary! ...and the Eclipse help files don't tell you where to find one. This has annoyed me so much that I've broken my cardinal blog rule and posted something that's a bit (well, very) work'y.
So all you need to do is:
All this fun at work got me musing about spell checkers on the way home. What can I say, tube tunnels and sad looking silent people aren't very interesting. Figured you could do it with a big hash set structure, would be quite quick but really memory hungry... or you could build a big tree thingy with each world represented by a path through the tree. The second one is much more interesting so I'd do it that way.
Question of the day: How do you code a spell checker?
Ok, I've bored myself now, bye...
Eclipse (the Java IDE) has a spell checker for your comments and text files. Good eh, especially if like me and loads of other coders you can't spell. You can find the settings under: General > Editors > Text Editors > Spelling.
One problem - there's no dictionary! ...and the Eclipse help files don't tell you where to find one. This has annoyed me so much that I've broken my cardinal blog rule and posted something that's a bit (well, very) work'y.
So all you need to do is:
- Download a word list like the one published by Kevin Atkinson. I downloaded the 12 Dicts package and pulled out 2of12inf.txt
- Point Ecplise at the file
All this fun at work got me musing about spell checkers on the way home. What can I say, tube tunnels and sad looking silent people aren't very interesting. Figured you could do it with a big hash set structure, would be quite quick but really memory hungry... or you could build a big tree thingy with each world represented by a path through the tree. The second one is much more interesting so I'd do it that way.
Question of the day: How do you code a spell checker?
Ok, I've bored myself now, bye...
Labels: geek
4 Comments:
You mean one of these:
http://en.wikipedia.org/wiki/Trie
Yawn Yawn
This post is so boring, its making my teeth hurt
That was a very bizarre post. Have you been at the potato vodka again Mitch?
Someone has forgotten everything from NLP. How r u btw? I keep trying to catch you on Skype but you never seem to be singed in....
Post a Comment
<< Home