Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🔍 Provide the API to easily support "did you mean...?" #122

Open
favonia opened this issue Oct 26, 2023 · 2 comments · May be fixed by #138
Open

🔍 Provide the API to easily support "did you mean...?" #122

favonia opened this issue Oct 26, 2023 · 2 comments · May be fixed by #138

Comments

@favonia
Copy link
Collaborator

favonia commented Oct 26, 2023

Eventually we might want to implement fuzzy search or an API to facilitate the computation of edit distances.

@favonia favonia added this to the 6.0.0 (big change) milestone Oct 26, 2023
@favonia favonia changed the title 🔍 Provide the API to easily support "do you mean...?" 🔍 Provide the API to easily support "did you mean...?" Nov 9, 2023
@kentookura
Copy link

I am interested in working on this. For my purposes, the API I need would just be a single function that takes a string and a trie, and returns a list of paths, sorted by distance to the input. What do you have in mind?

Reference edit distance implementations:

@favonia
Copy link
Collaborator Author

favonia commented Oct 20, 2024

@kentookura Yes, that's correct. Alternatively, it can take a list of strings (as a hierarchical name) and a trie. Either way it works!

@kentookura kentookura linked a pull request Oct 21, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants