Bug 346963

Summary: [spell checking] Add support for words combined with a prefix
Product: [Eclipse Project] JDT Reporter: Dani Megert <daniel_megert>
Component: TextAssignee: JDT-Text-Inbox <jdt-text-inbox>
Status: ASSIGNED --- QA Contact:
Severity: enhancement    
Priority: P5 CC: mober.at+eclipse
Version: 3.3   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Dani Megert CLA 2011-05-24 06:37:45 EDT
3.3.

The spellchecker doesn't include most known words that are combined with a prefix, e.g. the "re-" prefix (e.g. recheck, retune). We could add all those words manually to the dictionaries but a better solution would be more automatic.
Comment 1 Martin Oberhuber CLA 2013-04-30 05:10:37 EDT
I'm not sure if it's a good idea to add algorithms here. IMO there's too big a risk introducing incorrect words, or confusing ones, when simply adding words to the dictionary is not a big hassle.

It might make sense to look at what others are doing int that area (eg Firefox, ispell itself). What algorithms are used there ? Might it make sense to even optionally delegate to an outside spelling engine ?

IMO Eclipse (JDT, CDT, Pydev,...) should do the work of identifying words or text to check. But an outside engine could be used to perform any algorithms. Essentially instead of the dictionary lookup call the external engine. That would also enable more foreign languages in one shot.
Comment 2 Martin Oberhuber CLA 2013-04-30 05:30:14 EDT
Here is a very good article on suffixes and prefixes in aspell, as well as some examples how to dump all of them into a simple flat wordlist:

http://typethinker.blogspot.co.at/2008/02/fun-with-aspell-word-lists.html