purescript / purescript/pursuit
Add spell correction
Nobody has claimed this yet.
- 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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