Thursday, April 26, 2007

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:
  1. Download a word list like the one published by Kevin Atkinson. I downloaded the 12 Dicts package and pulled out 2of12inf.txt
  2. Point Ecplise at the file
Weh hey, your spell checker now works.

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:

4 Comments:

Ian D said...

You mean one of these:

http://en.wikipedia.org/wiki/Trie

5:41 PM  
Wife said...

Yawn Yawn

This post is so boring, its making my teeth hurt

7:19 PM  
Bick said...

That was a very bizarre post. Have you been at the potato vodka again Mitch?

8:26 PM  
Chris said...

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....

8:55 AM  

Post a Comment

<< Home