Ticket #120 (new code bug)

Opened 3 years ago

Last modified 2 years ago

Fuzzy logic for "Rage" does weird things in comparer

Reported by: Bwob Owned by: eevee
Priority: trivial Component: framework
Keywords: Cc:
Difficulty:

Description

Not sure if I'm just not understanding how the fuzzy logic works, but it seems to behave oddly for the word "Rage".

For example, if you enter "Rest" in as a pokemon name under "compare pokemon", fuzzy logic at least gives you back things that contain the letters r, e, s, t. (Moltres, etc).

If you enter "Rage" as a pokemon name however, you get things like Tentacruel, Azelf, Beautifly, and Mightyena.

Seems like something isn't working here, although since I don't know the exact algorithm you're using for fuzzy logic, I may just be misinterpreting what it is supposed to do.

Attachments

Change History

  Changed 3 years ago by eevee

It has a very high tolerance for misspellings, so if you enter something that doesn't look anything like any Pokemon names, you'll get back suggestions that have maybe half the letters scattered around. I can tweak it a bit, but I'd rather it be too liberal than too conservative. More likely suggestions are always put first, anyway.

  Changed 3 years ago by Bwob

Hmm. Why doesn't "Regigigas" show up then? Azelf has 2 letters from "rage", [a,e], where as Regigigas has all 4. Or is that not how they're being ranked?

Pretty minor bug either way, and probably not worth messing with if everything is working as intended. Just seemed weird when Azelf showed up as a suggestion for a fuzzy logic match on "rage".

  Changed 3 years ago by eevee

Tentacool, on the other hand, has a Japanese name of 'Menokurage'...

  Changed 3 years ago by Zhorken

Tentacool and Tentacruel both have rage in their romaji names. Azelf and Beautifly's romaji names both start with age. Mightyena's romaji name has rae in it.

follow-up: ↓ 6   Changed 3 years ago by eevee

Open to suggestions here.. I would prefer to NOT completely toss romaji fuzzy searching, but it seems to throw people off quite a bit.

in reply to: ↑ 5   Changed 2 years ago by surskitty

Replying to eevee:

Open to suggestions here.. I would prefer to NOT completely toss romaji fuzzy searching, but it seems to throw people off quite a bit.

Get it to sort them?

  Changed 2 years ago by eevee

I already sort them, by likeliness of a match.

Add/Change #120 (Fuzzy logic for "Rage" does weird things in comparer)

Author


E-mail address and user name can be saved in the Preferences.


Action
as new
 
Note: See TracTickets for help on using tickets.