pursuit icon indicating copy to clipboard operation
pursuit copied to clipboard

Add spell correction

Open kseo opened this issue 8 years ago • 2 comments

It would be nice if Pursuit could automatically suggest alternative search keywords when the search failed due to typos.

Inputting mayba shows

Did you mean `maybe`?

instead of

No results for "mayba", sorry.

Suggesting the symbols with 1 or 2 Levenshtein distance will be a good starting point.

I will submit a PR if this proposal is accepted.

kseo avatar Aug 03 '16 12:08 kseo

I agree, this would be lovely, but I think I'd rather just have them appear in the original search results (with a lower ranking, of course).

hdgarrood avatar Aug 03 '16 13:08 hdgarrood

@hdgarrood That's also nice! I will start working on this.

kseo avatar Aug 03 '16 15:08 kseo