[Userscript] Transitivity Pair Information

What Is It?

This script adds a Transitivity Pair section to the lessons of verb vocabulary items based on the information gathered for this post. It’s highly recommended that you read through that post before using this script, or at least through the section titled “Transitivity Pair Types and Patterns”.

How To Install

How to Install TamperMonkey if you are new to userscripts

Download the Script Here ---------> Click Me

Features

Currently the Transitivity Pair section lists:

  • The transitivity pair type of each verb pair or “No Pair” if there is no pair
  • The other verb in the pair and it’s transitivity
  • A brief description of the pattern each pair belongs to, and the resulting expected transitivity.
  • Indication of exceptions and special cases

To Note: Verbs are only listed as having a transitivity pair if the pair is taught by WaniKani. Verbs may be marked as having “No Pair” even if a pair exists elsewhere. Also, the exact distinction between what is and isn’t a transitivity pair is not perfectly objective. This script is essentially just a userscript version of this spreadsheet.

Roadmap

As of right now this script is pretty bare bones. I have plans to improve it as time and inspiration strike me. For now the features I plan to add (in order of priority):

  • Stats Section: A section with statistics about transitivity distribution with regards to pattern and okurigana. Details that might not be super relevant most of the time but interesting to some.
  • Improved Formatting: To make the presentation clearer and more interesting. An ongoing process.
  • Linguistics Information: Information about the etymology of the transitivity pairs, as much as can be guessed anyway.

Acknowledgements

This script takes heavy inspiration from nonymouse’s Rendaku Information script which gave me a good starting point to figure out what I was doing, although the code is all my own. Also this script makes heavy use of Sinyaven Item Info Injector. Thank you for your hard work in making it so easy to get userscripts like this up and running.

This is my first userscript and I managed to put it together fairly quickly. Thankfully I did all the hard work a couple of months ago. That being said, there’s undoubtedly a lot left to do. A lot of refactoring and bug fixing probably and a lot of choices that probably don’t work as well as I think they do. If you notice any bugs please let me know, I probably won’t be able to get to them quickly but I will try my best to get to them at some point. Hope you get some good use out of this script. Enjoy!

Updates

3/16/2024: Version 1.1 Fixed Pair Info not showing up in Reviews

10 Likes

You’re a god, thank you so much for making WK life with transitivity pairs easier for us! :heart:

3 Likes

I think I love you. This is great. I’m going to install this right now. I’m not sure how useful I’ll be in testing, but I will report back if anything interesting happens.

2 Likes

New update should fix the issue with info not showing up in Reviews. Clicking the download link again should let you update to the newest version. As always let me know if there are any bugs or issues.

Does this script still work after all the changes this year? I didn’t know about it until I searched for it just now, and it doesn’t seem to do anything for me (assuming it still shows up as in the screenshot in the OP without any further configuration).

(I’m on Safari on iPadOS 17.6.1 with Userscripts v1.5.4, and scripts not working on iPad isn’t that unusual, but the common reasons involve things this script doesn’t do, so I’m wondering if it’s still working for others.)

Hm, the script does still work on my computer but I will admit I never tested on Ipad.

Some questions:

  1. Does this Rendaku Information script work for you? If not then I’ll try my best but it might be a lot of work to fix
  2. What items have you been testing this on? I set it up so the information only shows up if you’re looking at a verb but I might have missed something.

I don’t use that script but I’ll install it. I don’t have any more reviews today so I’ll have to follow up.

I checked that the verbs I was looking at on the review screen were in the JSON file on GitHub, and they were, so I think that should be sufficient? If you want me to list you the verbs I got wrong and can see on my dashboard, I could do that too.

Hey, this is fantastic! Even looks like it handles the mobile version perfectly, at least for me on Firefox + Android.

It took me a while to start noticing the transitivity pair patterns, and it’s been so helpful to realize. This will make it a lot easier for me to correlate them quickly.

2 Likes