jfmengels / jfmengels/fuzzy-matching
How to return all scores?
Open
- Dominant language
- JavaScript
- Stars
- 23
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Description
I was wondering if it would be possible to return all scores, not only the top value. So that the returned object would be like:
```
[{ distance: 1, value: 'tough' }
{ distance: 0.7142857142857143, value: 'thought' }
{ distance: 0.875, value: 'through' }]
```
Thanks!
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by locating the matcher entry point that currently returns only the top score and inspect how candidate scores are assembled. Add coverage for the three values in the issue example, then verify that the public result includes every scored candidate in the expected order.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- search
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 40/100