[Userscript] ConfusionGuesser

Version 1.5 patch-notes:

Added spoiler warning feature

This feature is disabled by default but can be activated in the ConfusionGuesser settings dialog (see the screenshot in the first post of this thread to check how to open the settings dialog).

The available options for “Hide spoiler guesses” are:

  • Never: never hide guesses (default)
  • If in this batch: hide guesses for WK items that are in the current review batch
  • If sooner than --% of the SRS interval: hide guesses for WK items that have less than the given SRS interval percentage left until they come up for review again; for example: ConfusionGuesser guesses the Kanji 上, but 上 will come back for review in 7 days and you have 上 in the stage “master” which has an SRS interval of one month. This means that there is only about 25% of the SRS interval left until the next review, and if you for example select If sooner than 30% of the SRS interval, then the guess for the Kanji 上 will be hidden.

You can still view the guess by clicking “Show spoiler”.

ConfusionGuesserSpoilerWarning

Limitations: This feature only checks for the specific WK item - you can still get spoiled for the Kanji 上 if the guess is for the vocabulary 上. Furthermore, an item in the current batch will always be marked as a spoiler, even if you have already finished reviewing it in this session.

If I broke something please let me know.
Link to previous script version for downgrading in case version 1.5 doesn’t work for you


Tagging @Ayokana for voting in the poll for the spoiler warning feature and @Loglog74 for proposing this feature in the first place.

2 Likes

Version 1.6 patch-notes:

The script now also runs on the WK preview server

Added WaniKani — Log in as a @match so that the script also runs on that site.

Initially I didn’t plan to enable my script to run on the preview server, because I thought of the preview server as a place where each script author has to test their own script, and other users don’t need it enabled. But some people stated a different opinion, and I think there’s no harm in enabling it, so here you go.

4 Likes

I was doing reviews and this popped up, but the meaning is incorrect. It just means 42?not right **

It popped up when I got 答えwrong.

EDIT: I made a mistake, apparently that was an alternate answer. I just got confused because it looked nothing like what I got wrong ^^’

42 = The Answer

image

Yeah that’s what I said in the edit

Yeah I was just mucking about. You could just delete the post then if you want.

Nah it’s ok. Did think it was weird of it to show up

I agree that guesses based on WaniKani joke meanings are not helpful and can be confusing. I should probably filter them out.

国宝 with “Nic Cage” and 四十二 with “The Answer” – were there any others?

Also, the script displays any WK items similar to your meaning answer, no matter how greatly they differ visually. The results just get sorted by their visual similarity rating, so that the likeliest confusion is at the top. It seems that in your case there was only one guess, so even though its rating was extremely low, it was still at the top.

1 Like

@Kumirei
1

2 Likes

251446983644938240

Dang, I had a feeling you might know.

1 Like

Kumirei is mom confirmed

1 Like

Those are the ones that come to mind. If I come across any others while catching up I will let you know! Thanks

2 Likes

Version 1.7 patch-notes:

Image radical support

36 of WaniKani’s radicals are represented by images rather than characters. Until now, guesses containing such a radical showed the radical’s name again instead of the symbol. With this update, the radical image is displayed. Furthermore, most of these radicals are mapped to characters that appear in ideographic description sequences (IDS), leading to improved similarity ratings. For example, if I answer with “spring” for the “gladiator” review, I get now:

Spring and Gladiator are both image radicals, and before this update, no guesses were shown in this case. Furthermore, the “𡗗 Spring” guess would instead have displayed “Spring Spring”, and its similarity rating was always 0, pushing it to the bottom of the list.

Joke meaning filter

The WK vocabulary items “四十二” and “国宝” include jokes in the accepted meanings. It can be confusing to get “国宝” suggested as a guess if you wrongly answer with “cage” at some point. Therefore, these two meanings are now filtered.

Text color setting

Added a setting for changing the text color. The setting is located in the “Guess colors” tab of the ConfusionGuesser settings dialog.

"From button color" option

Added the option to set the guess colors to resemble the buttons below the input box on the review page (Wrap Up, Last 10, Item Info…). This is intended for dark mode users to quickly get colors that match the theme. If you are using “Dark Azure 2”, the text color gets set to blue, which might blend in or clash with the background. You can solve this by either changing the text color from blue back to white (or something else), or you can activate the “High contrast mode” in the “Interface” tab, which darkens the background behind the guess list.

If I broke something please let me know.
Link to previous script version for downgrading in case version 1.7 doesn’t work for you

3 Likes

Hi @Sinyaven I wonder if it’s a bug or something, because the script is not appearing in the list of scripts I have installed.

List of scripts


image

image

I even tried to downgrade to 1.6, but didn’t work either. I miss your script ;-; Is a good one

1 Like

Never mind. It’s suddenly working again! :sweat_smile: :partying_face:

1 Like

I’m glad to hear that it’s working again :slight_smile:

If I’m not mistaken, the screenshots were of the Tampermonkey popup menu that appears when you click the extension icon? I think this list only shows the scripts that run (or could run) on the current website, and considering that the list contains scripts like “Wanikani Heatmap” I assume this list was from the WaniKani dashboard? The ConfusionGuesser script only runs on the review page, so it isn’t supposed to appear in the list on the dashboard.

1 Like

Ohhh, that makes sense. Yeah, was from the dashboard, but I swear I couldn’t see it appear in the list even when I was on the reviews page.

At least it’s working now :+1:

image (reviews page)

2 Likes

Hey, fantastic userscript!!

I just have one small feature request: in the interest of making the display more neat and tidy, could we maybe get an option to disable/hide the “label” part? (i.e. the “丸 ⇔ 九,” “on ⇔ kun,” etc.)

Mousing over could still provide a breakdown of what exactly went wrong, but I feel like 99% of the time, I can already tell what went wrong simply by looking at what’s in the list (at which point, the labels are just visual clutter).

1 Like

Thank you!

Sure, no problem.

Version 1.8 + 1.9 patch-notes:

Added option to hide guess type

The settings menu now contains an option “Show guess types” in the “Interface” tab which allows to hide the guess type (丸⬄九, on⬄kun etc.).

Added hover tip to guesses

Hovering with the mouse cursor above a guess now displays a short description of the guess type (“Visually similar”, “Used on’yomi but needed kun’yomi” etc.).

If I broke something please let me know.
Link to previous script version for downgrading in case version 1.9 doesn’t work for you

1 Like