[Userscript] Wanikani Real Score

But in that case people would reach 100% and still have unburned items in WK, which would be super-surprising to me once I got to 100%.

I think it is fair to only reflect on the current situation and simply ignore the hidden items. I mean, sure I invested some learning time for them, but now they are no longer part of the game. :woman_shrugging: If I happen to learn a non-WK kanji through reading a book. you don‘t count that learning time either.

3 Likes

good point. 100% feels like “everything burned”, but max score could be higher for people who have worked on hidden items.

I’m thinking… score includes points for hidden items. 60/60 = 100% = all currently available items burned. Tooltip shows the details…

30,034 :star: 22/60

29,910 of 80,073 = 37% complete
+124 points for hidden items

Of course, next step would be to add points for resurrected items. lol - it never ends!

1 Like

How would I count hidden items? Currently, I’m using (roughly)

            items = wkof.ItemData.get_items('assignments');
            for (let i = 0; i < items.length ; i++) {
                score += items[i].assignments.srs_stage;
            }
1 Like

Here are my current results after the update:

WK Real Score: 63920

heatmap: 55864
#lessons: 8064 (current A+G+M+E+B, so without hidden items)
total: 63928
#lessons: 8075 (according to heatmap)
total: 63939

so pretty close and perfectly satisfactory for me.

1 Like

I don’t think this script is compatible with Dashboard Level Progress Detail. I had to turn it off temporarily to see view my score in the dashboard.

Now I have to decide which one to keep. :thinking:

Does this mean a single item can have up to 9 points appointed to it?

1 Like

I’ve noticed that the up-down counter during reviews gets updated too late - whenever I complete the second review of a given item, it still remains at the previous value, but technically it should already indicate the new value on that screen, no?

@Saida Yes, that’s the idea!

1 Like

For me it just jumped up 1 for my correct answer as soon as I entered it on the first one, but not on the second one. I’m using lightning mode, and I only had two items to review. Maybe it adds it only as you move on to the next item?

Does it indicate a score drop the second you give a wrong answer, or only on completion of the item?

Yes, that’s what I was trying to say :sweat_smile: But that’s too late, I think. E.g. I get the popup with the item’s new level already on the completion screen of each item, so the information must be available somehow. But the number does not yet increase on that screen, only when I move to the next one. (And especially, like you said, it is not shown at all for the last item.)

1 Like

Are you using 1.0.0 version of Real Score? That could account for an 9 point difference, since I wasn’t counting the first item. Fixed that in 1.0.1 :wink:

You guessed it. I update the counters when the current item changes, so it’s compatible with other scripts like WaniKani Double-Check.

But, next time I’m monkeying with the code, I’ll see if there’s an easy way to update it sooner :slight_smile:

1 Like

Yes, I thought Double Check might complicate things in that regard.

I love double-check, so I made Real Score compatible with it. I don’t see an earlier time to update the score while still allowing the user to click “guess again” or “mark as right” or “mark as wrong”.

The default counters update at different times too. The checkmark value increments before I see my correct answer. The inbox value decrements after (same as Real Score and WaniKani Reorder Buttons and …)

An unrelated interesting point is that kanji & vocab can be marked as -1 on their first incorrect guess, but can only be marked as +1 after 2 correct guesses. Also unavoidable :slight_smile:

Wouldn’t it be possible to adapt the score after the user used such a script? (But yeah, I see your point.)

Hm, I don’t think I understand what “checkbox” refers to here… Also, the inbox definitely decrements before Real Score (that’s how I noticed the discrepancy in the first place :sweat_smile:)
Give me half an hour and I will send you some screenshots from during my review.

Yes, I am fully aware, that’s why I said

:slight_smile:

Cool - send me some screenshots - thanks :slight_smile:

checkbox was a typo, I meant checkmark as in…
Screen Shot 2020-12-12 at 9.41.47 PM

Oh ok gotcha!

Here is what happens on my end: (sorry it’s only one item this time around, but anyways)


At the start of the review:

image

This is what I expected of course.


After I answered the first question:

image

This is also expected as the item is not complete yet.


After I switched to the second question:

image

Again, expected as before.


After I answered the second question:

image

Here you can see that the inbox decreased by one and the checkmark increased by one, as the item is now completed.
But the real score has not moved…
(That’s what confused me when I glanced at the numbers during a previous review. And it gives me a strong feeling of “I cannot trust these numbers” :woman_shrugging: )


Now if I would move forward to the first question of the next item, the real score would of course increase, but as I only have one item during this review, I cannot demonstrate that.

1 Like

Interesting! My order is different. I’ll turn off all the other scripts I’m running and see what happens. Thanks :wink:

1 Like

You would just include them in the original fetch and I suppose add a conditional in the loop

items = wkof.ItemData.get_items('assignments,include_hidden');
for (let item of items) {
    score += item.assignments.srs_stage;
    if (item.data.hidden_at) {
        // Do stuff
    }
}
1 Like

Thanks @Kumirei & @NicoleIsEnough - My local script now shows points for hidden items in the tooltip…

Screen Shot 2020-12-13 at 12.01.12 PM

It was a fun exercise, but I’m not sure I’ll check it in.
I tend to favor cleaner code over feature creep :slight_smile:

4 Likes

There’s a discrepancy between the star score shown on the review pages and the star score difference shown on the wk dashboard. This is caused by not taking into account that guru+ items, when wrong, decrease by two points. When I got done with my review for today, I calculated my score according to what it said during the review, subtracting the incorrect answers from the correct answers and matching these up with what the final review page told me. Both were 21. When I calculated the actual difference on the WK dashboard, the actual difference was 8.

2 Likes