[Xapian-tickets] [Xapian] #445: get_spelling_suggestion() will return accidental misspellings

Xapian nobody at xapian.org
Wed Feb 10 11:38:17 GMT 2010


#445: get_spelling_suggestion() will return accidental misspellings
------------------------+---------------------------------------------------
 Reporter:  bensummers  |       Owner:  olly     
     Type:  defect      |      Status:  new      
 Priority:  normal      |   Milestone:  1.2.x    
Component:  Other       |     Version:  SVN trunk
 Severity:  normal      |    Keywords:           
Blockedby:              |    Platform:  All      
 Blocking:              |  
------------------------+---------------------------------------------------
 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.

-- 
Ticket URL: <http://trac.xapian.org/ticket/445>
Xapian <http://xapian.org/>
Xapian



More information about the Xapian-tickets mailing list