liam-mitchell / inne

The N++ discord server chatbot
MIT License
3 stars 6 forks source link

Common misspellings of commands #37

Open liam-mitchell opened 7 years ago

liam-mitchell commented 7 years ago

'screnshot' -> 'screenshot', etc.

Maybe Levenshtein distance or something fun? :P

edelkas commented 2 years ago

On a related note, just implemented a variant of Damerau-Levenshtein distance in https://github.com/edelkas/inne/commit/015207c22a5e5903a226316ebcc4fd66805c84f9, with the purpose of using it for level and player name parsing.

Command parsing might be tricky because words in level or player names could be confused with commands, unless perhaps we restrict to really close matches (e.g. distance at most 1).