What it does
This script adds a “Rendaku Information” section to the lessons information for every vocab word, attempting to explain why it does or does not rendaku.
How to install
- Get Tampermonkey (installation instructions in this thread).
- Click on the installation link (Tampermonkey should auto-detect
- Install the script after you check the security (at least see that script will only change the wanikani website, all
@includeshould be related to WK).
The rendaku explanation generated by the userscript uses some simple rules, which are roughly inspired by the Tofugu article Rendaku: Why Hito-Bito isn’t Hito-Hito. The rules are (loosely):
- Kunyomi readings usually do rendaku, unless…
- this or subsequent characters already have dakuten (Lyman’s Law),
- the preceding character is a particle or honorific prefix,
- the kanji is one of a certain set which do not usually rendaku even when read as kunyomi.
- Onyomi readings usually do not not rendaku, unless…
- the reading starts with ‘h’ and follows ん, つ or ち,
- the kanji has two onyomi readings and one is the rendaku’d version of the other
- the kanji is one of a certain set which do usually rendaku, even though they are onyomi.
About 170 words don’t follow the above rules, in which case the userscript states what the closest rule is and flags the word as an exception. Hopefully more patterns can be identified in the future to reduce the number of exceptions.
The part of the script for injecting extra sections into the lessons is directly borrowed from the awesome Semantic-Phonetic Composition userscript - thanks acm2010!
Please report bugs and suggest improvements. This is my first userscript so please bear with me if it totally doesn’t work - I’ll try to fix it! I will hopefully continue to enhance the data and the way it is presented in the near future. There are about 3000 explanation messages generated by the script and I have not read them all(!) so if you see anything that needs improvement, don’t be too surprised and let me know.