Opened 15 years ago

Closed 15 years ago

#445 closed defect (duplicate)

get_spelling_suggestion() will return accidental misspellings

Reported by: Ben Summers Owned by: Olly Betts
Priority: normal Milestone:
Component: Library API Version: SVN trunk
Severity: normal Keywords:
Cc: Blocked By:
Blocking: Operating System: All

Description

If the spelling 'foobar' has frequency 200, and the common misspelling 'fobar' has frequency 1 because it's slipped into an indexed document (because it's a common misspelling!), get_spelling_suggestion() will no longer return a correction.

This seems undesirable.

I suspect that deleting the line below would fix it, and then 'foobar' would be returned because it has a higher frequency. This would be much more useful for helping users with misspellings in applications.

if (edist == 0) RETURN(string());

There does not appear to be a public API to obtain the entire list, so it can't be fixed in an application by more complex use of the API.

Change History (1)

comment:1 by Olly Betts, 15 years ago

Component: OtherLibrary API
Milestone: 1.2.x
Resolution: duplicate
Status: newclosed

Thanks for your report, but this is already covered by ticket#225, so marking as a duplicate.

Note: See TracTickets for help on using tickets.