Improve search (make it a bit more fuzzy?)

So… I got to 切れる review and knew it was something with cutting but when I put “to cut” it was obviously wrong. I wanted to search for “to cut” (https://www.wanikani.com/search?query=to+cut&button=) and to my surprise - it didn’t return “to be cut” in the resuts.

It would be VERY convenient to have all the variants included. Especially that the results includes some vocab that’s not exactly “to cut” (probably alternative meanings):

All in all it looks like WK does the exact string search for “to cut” in any meanings so if there is “be” in between words it won’t include it

3 Likes

Good find. Vice versa it finds this when you search for ‘To be cut’

Ideally it should recognize that ‘cut’ is the important part and return (at least) every result with that in it.

To be fair, if you search for ‘cut’ it does give the expected results:

2 Likes

I think this has to do with how the search logic was implemented. Just like you mentioned, I think they might just be doing a word for word search as opposed to a more sophisticated search. I would expect a search for “to cut” to return results that contain those two words (“to be cut”, “to cut”). I’d like to suggest a full-text search be implemented if they are not already doing that. If they are doing that then the implementation logic might be buggy.

Here is a search result for good:

I want to believe some items that have “good” in them are not shown in the above image.

1 Like

They definitely have some sort of hidden synonyms or logic though. Searching for “to laugh” will include this result: “吹き出す” which has listed in alternative meanings “To Burst Out Laughing”.

This would not be matched with a simple string comparison though for the same reason “To Be Cut” wouldn’t match a search for “to cut”

1 Like

I think they are not doing that. And full text search would be great here…

AFAIR there is a list of hidden synonyms (and block lists)