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

Fuzzy match commands #15

Open
badBlackShark opened this issue May 16, 2018 · 0 comments
Open

Fuzzy match commands #15

badBlackShark opened this issue May 16, 2018 · 0 comments
Labels
enhancement new feature A feature I'd like the bot to have, somewhen.

Comments

@badBlackShark
Copy link
Owner

badBlackShark commented May 16, 2018

If someone tries to call a command that doesn't exist, it should be fuzzy matched instead. I would probably introduce a new dependency for this, but theoretically something like a Levenshtein distance could be implemented for the bot to "natively" use.

Now we have two options:

  • Use the result of the fuzzy matched input. More convenient, but might introduce false positives.
  • Instead, respond with a "Did you mean...?".
    • In this case, a self-programmed solution for fuzzy matching might be better, as then e.g. the top 3 results could be displayed.

This would probably need to go inside the prefix proc.

@badBlackShark badBlackShark added enhancement new feature A feature I'd like the bot to have, somewhen. labels May 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement new feature A feature I'd like the bot to have, somewhen.
Projects
None yet
Development

No branches or pull requests

1 participant