poketwo / poketwo

A (not so) small Pokécord clone.

Home Page:https://poketwo.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow fuzzy matching for pokemon names when catching

milesnp opened this issue · comments

Is your feature request related to a problem? Please describe.
I find it difficult to remember the exact spelling of some pokemon names. For example, Pancham might be misspelled as Panchum and that would make it hard to catch the pokemon despite knowing the name.

Describe the solution you'd like
Allowing fuzzy matches would let users who can't spell all of the pokemon names to catch the pokemon. Perhaps server owners could toggle this or set a fuzziness threshold/maximum edit distance for their users.

Additional context
There are a few python libraries for fuzzy matching, like TheFuzz (formerly FuzzyWuzzy). I would be happy to take a crack at a PR to implement this if you think it's a good idea.

Thanks for the suggestion! I really quite like this idea and had thought about it before but never really got anywhere. I'll bring this up with the rest of the development team to see what they think and keep you updated!

I'm really sorry, I seem to have misread your suggestion. I think this would be a great feature for things like pokedex searching (@ pokedex panchum), flags (--n panchum) and such. But having something like this for catching would pretty much defeat a key part of the game—to remember names well and compete with others to catch pokemon. So in that regard, when it comes to catching, this unfortunately will not be added. But having it for flags and such could be good!