Opened 13 years ago

Closed 13 years ago

#561 closed defect (wontfix)

get_spelling_suggestion returns a 'wrong' suggestion

Reported by: greg Owned by: Olly Betts
Priority: normal Milestone:
Component: Library API Version: 1.2.6
Severity: normal Keywords:
Cc: Blocked By:
Blocking: Operating System: All

Description

The following case: the db consists of two terms both with the same frequency "sound" and "round".

Calling get_spelling_suggestion with "sound" as the word, returns "round".

I've included a patch for the issue.

Attachments (1)

omdatabase.patch (299 bytes ) - added by greg 13 years ago.
omdatabase.cc (1.2.6) patch

Download all attachments as: .zip

Change History (2)

by greg, 13 years ago

Attachment: omdatabase.patch added

omdatabase.cc (1.2.6) patch

comment:1 by Olly Betts, 13 years ago

Resolution: wontfix
Status: newclosed

This patch makes testcase spell7 fail. That testcase was deliberately added in r14859, to partly address #225.

I agree it's arguable, but I think this probably isn't a bug. If you typed "sound" you might have meant "round" (even though "sound" is certainly a valid word), so suggesting a correction to "round" isn't an unreasonable thing to do. So thanks for the patch, but I don't think we want to make that change.

Note: See TracTickets for help on using tickets.