[Userscript] Quiz pitch accent in lessons and reviews

Hello! I’m working on a UserScript to practice pitch accent in WaniKani reviews.

It expects an apostrophe ' at the downstep in all of your reading vocab answers, and prevents you from answering without specifying the accent:

For example: 'いろは is heiban [0], い'ろは is atamadaka [1], いろ'は is [2], いろは' is [3] (odaka).

When you submit the wrong pitch accent you are gently corrected.

image

I copied the pitch accent data from Invertex’s Pitch Accent Info script.

My code so far is on GitHub here. You can install an alpha version here.

Is there any interest for this kind of script? What would you all want out of it?

I’d very much like to add a feature where an “incorrect pitch accent answer” reschedules the card deeper into the review pile, but still without marking it wrong. Can someone help me figure out if that’s possible / how I’d go about it?

23 Likes

I’d be interested, but since I (and I would assume many other WaniKani users) don’t have a lot of experience with pitch accent and would be pretty much guessing for all of them. Would it be included in new lessons as well? And by the way, where’s a good place I can learn some of those rules? I’d probably want at least a basic background before I installed something like this.

3 Likes

This would probably be a good place to start:

4 Likes

Realy cool script!

2 Likes

I highly recommend you install Invertex’s Pitch Accent Info script along with this one. It shows nice graphics of pitch accent in lessons.

1 Like

Awesome. I’ve been wanting something like this for a long time. I’m glad I didn’t search for this last week. Can’t wait to try it out!

1 Like

Please let me know how you like it!

Seriously, thanks for writing this script.

Overall, I really like it. It’s a good logical way of inputting the accent. I finally feel like I am learning the vocab properly and completely now that I am quizzed on the correct the pitch accent.

I wish it had been around when I started. It’s been a bit tricky on reviews where I did not have pitch accent as part of the vocab lesson. My first review session with it was about 3x slower than normal because there was so much guess–>check–>correct. I imagine as I start to learn the material better things will go much faster.

In case you are looking to further develop the script:

One tweak I thought of:
It might be nice to have a way to skip fixing the reading once it tells you, maybe by pressing enter twice in a row.

Alternatively, it might be nice instead to have it just tell you you got the accent wrong, so you can choose to guess again (similar to how WK asks for the “on” reading of kanji) or choose to just press enter again to have it give you the answer.

Another tweak I thought of that would likely be harder to implement:

It would be nice to have some sort of statistics that track my pitch accent learning, %correct, and especially a list of leeches, perhaps accomplished by having a list sort-able by %correct.

Even just a list of which pitch accent readings were incorrect at the end of the lesson would be immensely helpful, especially if it could be cut and pasted into a spreadsheet.

1 Like

首になる is missing pitch info [-1]. Seems it should be [3]

Wondering if i should start a spreadsheet with these kind of things.

After a week, things are much easier. I’m getting a good sense of the pitch patterns and can guess most of the ones I don’t know. it’s hardly slowing me down at all any more to input pitch.

2 Likes

Are you also practicing out loud every time?

This script conflicts with double check

I made a github bug report

1 Like

Would really love to use this script, but it currently doesn’t work… maybe due to above mentioned bug…

1 Like

Might report back here sometime. The script seems to “work” for me still, but of course would appreciate upkeep for such a useful script. Like it’s been said though, getting into memorizing pitch accent after not having done so for a long time makes the script a big hindrance. I’m looking forward to trying to make something that can help consolidate the pitch information for all previous levels of Wanikani in a more efficient manner.

1 Like

Not sure if it was just me but this script didn’t seem to work anymore… I don’t think it’s perfect but it seems to be working “good enough” link to script on github

I might update it eventually on my github but for now it’s good enough for me

edit: click here to install it

12/1/2024: updated to work on extra study pages too

1 Like

Thanks for bringing it up to date! What’s imperfect about it? Would you like to make a PR on github?

Thanks for the script! I have a few suggestions for improvements I’d like to see:

  • Quiz pitch accents in the first review straight after lessons too
  • Accept not including any pitch accent if the vocabulary item is missing pitch accent data

@lake I just wanted to say thank you so much for making this. It’s been absolutely indispensable and should be a core part of WaniKani. I hate using apps to study because your script is so good and useful that I feel like I’m not really studying if I’m not also quizzing pitch accent.

Seriously, thank you so much. I’m sure plenty of other people feel the same. And @visgotti too for keeping it up to date. If the MCU had heroes like you people wouldn’t be so bored of them. And they wouldn’t sound as cringey when they start speaking Japanese either!

Honestly I don’t remember at this point, I think there was an issue with jquery not being loaded, also now I’m doing some things using the item info injector script

Hey! I downloaded and set up the script, but it doesn’t seem to be working :frowning: Do you know what the problem could be?