Woah, this is seriously cool! A fantastic way to reinforce vocab with story context, and should be especially impactful if you only select stories you are familiar with.
Some sort of repetition would make this really impactful. Do the clips appear anywhere outside of the lessons page? Item pages would be okay, but when I was still going through Wanikani, I personally didn’t look at the item pages much. I mostly used Self-Study Quiz (SSQ) and the reviews themselves.
I would have loved to pair this with Self-Study Quiz… maybe by adding a hook in SSQ to call your script (if present) to play an anime clip any time the regular audio clip is normally played.
I wasn’t thinking of an Item Info section… more along the lines of: when you answer an item correctly in the quiz, the anime clip plays in a small window to the side of the answer, or something like that.
But also, an item info popup could be added to SS Quiz. I don’t have time to do it myself at the moment, but I would consider either merging someone’s implementation into SS Quiz, or support some sort of integration (such as an item-info button and/or hotkey) to do a callback for a separate SSQ Item Info script.
This is a great idea for a script. I’ve been trying it out since yesterday and it looks great
I have found some issues with transitivity pairs though. For example, for 驚かす all context sentences that appear use the intransitive 驚く instead.
Something similar seems to happen for a few of the other verbs using the same kanji. For example some of the context sentences for 欠かす use 欠く instead and vice versa. I assume it probably has something to do with how the okurigana is handled.
Thank you soo much for this, this is really cool. There are a few things I’d like added, here they are, ordered by implementation difficulty:
English only on click (just when the japanese text is clicked, show eng). Then I can use my on-hover dictionary just to look up the kanji/words I’m not too sure about without spoiling the meaning of the entire sentence.
Order by → longest sentences first. The short one are way too short ):
Show the first by order example when the word has been answered correctly right in the ui without having to go to the details.
Excellent script, great idea. This script breathes life into the rather bland and boring vocabulary lessons and example sentences. You may even find that your recall of pronunciation and meaning of vocab items improves, hearing the voice acting in your head sometimes as you come across the terms in your vocab reviews (the 動いた！ from Castle in the Sky really stuck with me).
@psdcon I believe that api parameter sorting by Sentence length actually sorts in ascending order which is not great. And none outputs stuff in chronological order which is no good either. I changed request sorting to None and added sorting inplace, though I wonder what options for order should there be? Filtering by distinct title maybe? Random shuffle? https://gist.github.com/memosiki/259836ad62818d106acd5a9408fbf590/revisions