purescript / purescript/pursuit

Add spell correction

Open
#239 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

search
Dominant language
Haskell
Stars
174
Forks
47
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating Pursuit’s failed-search path and the symbol lookup it uses. Review how candidate symbols are available for comparison, then verify that inputs such as mayba produce a useful alternative instead of the existing no-results message; the issue’s suggested Levenshtein distance of 1 or 2 defines the initial scope.

Written by the indexing model from the issue text.

Assessment

Tech stack
haskell
Domain
search
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.