Bug 346963 - [spell checking] Add support for words combined with a prefix
Summary: [spell checking] Add support for words combined with a prefix
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.3   Edit
Hardware: All All
: P5 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-24 06:37 EDT by Dani Megert CLA
Modified: 2013-04-30 05:30 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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