alexloney / reddit_marvel_snap_card_bot

u/MarvelSnapCardBot2 on Reddit
MIT License
2 stars 0 forks source link

Fuzzy search may be too loose, nickname lookup? #5

Open alexloney opened 8 months ago

alexloney commented 8 months ago

In most cases the fuzzy search seems to be working. However in the case of searching for Hawk it is retuning a lot of results, including Hulk and others. I see why it's doing this, because the spelling is quite similar. But that does pose an issue.

Screenshot_20240111_211556_Sync

One solution to this might be a "nickname" mapping? We could give cards nicknames to map to them, to allow searching for something like Hawk and match that to Snowguard Hawk card (which poses it's own problem as it is just called Snowguard).

Another addition is we could search inside the card description too, since Snowguard does actually include Hawk in the description.

alexloney commented 8 months ago

I'm currently uncertain how to resolve this. A few ideas to investigate: