Sentences - Greasemonkey / Tampermonkey script


#1

Hello guys,
So, I do know that in the future we might have sentences into the vocabulary section of WaniKani and that those sentences will be created in a good, didactic fashion way.

But, sometimes I miss some sentences for some words, so I can at least have some context. Things like 全日本 don’t make any sense without being into a context IMO.

That’s why I wrote a small script for Tampermonkey (https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo ) and Greasemonkey (https://addons.mozilla.org/ja/firefox/addon/greasemonkey/) that uses the http://www.jisho.org/  website to get some sentences from the current vocab.

You can get the file in here: https://raw.github.com/mozartpetter/wanikani-sentences/master/sentences.js

The result looks like this:


Right now I’m just showing the sentence in 日本語, no translation because I don’t trust translations. So for the beginners it might look hard, but you can always use Rikaikun or something like that. :slight_smile:
Also, the script will always randomize the sentences, so if there’s lots of sentences available you probably won’t see the same sentence twice.

I wrote this for my personal use, but I feel like it might be useful for other people. Please give any feedback. :slight_smile:

UPDATES (06/15):
1 - Small changes into the design (added numbers, changed colors, etc).
2 - Added translations.
3 - Added some config parameters. Three options are available: TOTAL_SENTENCES (the number of sentences you want to show, default is 3), MAX_CHARS_INTO_SENTENCE (maximum number of chars that a sentence can have in order to be displayed), SHOW_TRANSLATIONS (flag to set translations on/off).
4 - Now the sentences are displayed in the meaning screen as well.


List of API and Third-Party Apps
#2

O:

You should also get this on the web stores. That's all I have to say.

#3

Looks fantastic, one nice thing would be if it just automatically showed it underneath so I don’t have to click Mr. Eye. I like to fly through my reviews and having it simply appear once I answer would be great.


#4

Hum… I do see your point, thing is I don’t know how to do it without messing up with the whole layout.
The idea in here is to have some examples on how to use the vocab, so basically you’ll look at it once and that’s it, now you know where you can use that word. If you forget, you can always look at it again, it’s the same principle as looking at meanings and readings.

Another option I’m thinking about is to have the same resource when you’re browsing through the vocab list. i.e. http://www.wanikani.com/vocabulary/%E5%A3%B2%E3%82%8B

So after the reading the script would show the usage examples. I’m gonna work on that. :slight_smile:


#5

It’s a nice thing, but I think it should stay hidden like the rest of the info under the eye during reviews.
I mean to avoid learning it by pattern recognition instead of context, radicals and readings etc.

Pattern recognition is why I don’t like some tests with multiple choices - because out of the blue you might have no idea what the correct answer is. But when you get a few choices, you can pick the right one because of the pattern and therefor not learning it, just knowing “in the question with these 5 choices, answer A is the right one (but I don’t know why)”.





#6
mozartpetter said.Another option I'm thinking about is to have the same resource when you're browsing through the vocab list. i.e. http://www.wanikani.com/vocabulary/%E5%A3%B2%E3%82%8B

So after the reading the script would show the usage examples. I'm gonna work on that. :)
Like this?
/t/I-sentence-you-WaniKani-userscript/1815/1
>_>

#7

Wow, what a helpful script! 
It’s like…the crafty users here can do anything to the site, sheesh. They don’t even need to add things officially! Pfft. 

Although I do hope Koichi adds sentences at some point, because having an explanation for the sentences and an SRS for them would be pretty neat and helpful. 

Anyway, thanks for sharing!


#8
penx said...
mozartpetter said.Another option I'm thinking about is to have the same resource when you're browsing through the vocab list. i.e. http://www.wanikani.com/vocabulary/%E5%A3%B2%E3%82%8B

So after the reading the script would show the usage examples. I'm gonna work on that. :)
Like this?
/t/I-sentence-you-WaniKani-userscript/1815/1
>_>
 Oh, I haven't even noticed this before (I don't look into the api/scripts/apps stuff much). That's also very handy. I love that it's got the translations too.

#9
penx said...
mozartpetter said.Another option I'm thinking about is to have the same resource when you're browsing through the vocab list. i.e. http://www.wanikani.com/vocabulary/%E5%A3%B2%E3%82%8B

So after the reading the script would show the usage examples. I'm gonna work on that. :)
Like this?
/t/I-sentence-you-WaniKani-userscript/1815/1
>_>
Interesting, your project didn't show up when I did the search for Sentences into the forums. ><
Well, one less task to do. ^^
 
Cheers

#10

Is this script still working? If it is, how do I get it to show me the sentences for vocab during the review?

Thank you!!


#11

@ajf15 Nope, I need to update it to work with the new review system, I just need some time 
Will fix it soon, sorry! >_<