Bug 11690 – a few spellchecker improvements

Status
RESOLVED
Resolution
DUPLICATE
Severity
enhancement
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-12-05T05:25:00Z
Last change time
2015-06-09T05:14:48Z
Assigned to
nobody
Creator
code

Comments

Comment #0 by code — 2013-12-05T05:25:28Z
The spell checker should limit the levenshtein distance based on the length of the searched identifier. More typos for longer names and fewer or no typos for shorter names. For example it doesn't make sense to propose 'b' when someone typed 'a'. Currently the proposals are only based on the minimal levenshtein distance. It would make sense to weigh certain edits higher than others, e.g. capitalization errors or interchanged letters are more likely than other typos.
Comment #1 by yebblies — 2014-11-28T23:37:54Z
*** This issue has been marked as a duplicate of issue 12185 ***