Extracted at 2016-03-29.
pike.lysator.liu.se
[Top]
Public
Public.Xapian
Public.Xapian.Database

Method Public.Xapian.Database()->get_spelling_suggestion()


Method get_spelling_suggestion

string get_spelling_suggestion(string word, int max_edit_distance)

Description

Suggest a spelling correction.

Parameter word

The potentially misspelled word.

Parameter max_edit_distance

Only consider words which are at most max_edit_distance edits from word. An edit is a character insertion, deletion, or the transposition of two adjacent characters (a reasonable starting value is 2).