[Userscript] Wanikani Self-Study 1.1.5 - Add your own Vocabulary!

I don’t know why, but whenever I click Edit or Review, the pop up window doesn’t show up? It used to show up, but now it just stopped ): I can’t edit or review anymore

crissuit said... I don't know why, but whenever I click Edit or Review, the pop up window doesn't show up? It used to show up, but now it just stopped ): I can't edit or review anymore
 Yes, the upgrade that introduced SRS required a deletion of all the vocab up until now, you will have to delete your localstorage manually, check out my post a few pages back on how to do that

If you're using firefox, press CTRL + SHIFT + I to open the console, the write "localStorage.clear();" and hit enter, here's a screen:
Shudouken said...
crissuit said... I don't know why, but whenever I click Edit or Review, the pop up window doesn't show up? It used to show up, but now it just stopped ): I can't edit or review anymore
 Yes, the upgrade that introduced SRS required a deletion of all the vocab up until now, you will have to delete your localstorage manually, check out my post a few pages back on how to do that

If you're using firefox, press CTRL + SHIFT + I to open the console, the write "localStorage.clear();" and hit enter, here's a screen:
 Ah yes, I see, thank you!! :)

I love this idea. Thanks for your efforts so far! You’re probably still working on new features but can I request these things?

- Could you make the edit screen the same as the “add new” screen?
- Is it possible to implement the same spelling rules as used on Wanikani? (Like you can make a typo or 2)
- (Less important), I have a maximum amount of items I want to have on apprentice level, is it possible to add the number of self-study items per level on the main dashboard (maybe after / under Wanikani’s items)?
- (bug) During review an item with a large number of meanings will push the input box and buttons out of the pop-up window.

Noni said... I love this idea. Thanks for your efforts so far! You're probably still working on new features but can I request these things?
Thanks, I appreciate it ^^

- Could you make the edit screen the same as the "add new" screen?
That's probably a good Idea to make things simpler ^^

- Is it possible to implement the same spelling rules as used on Wanikani? (Like you can make a typo or 2)
As I have it now, it's possible to make one typo for every 4 letters, but only involving the meaning of words.. at least in theory, however in practice, it's different.

Let's take the word 人 Person for example:
It would take these for correct: Perso, Persom, Perdon, etc.
But when a letter is left out, or an extra letter is inserted, it will deem all following letter as false, because it always checks for the right letter at the right position.

It's really hard to implement it like wanikani, so I will probably just add an "Ignore Answer" button to mark things as correct even if that above system fails

- (Less important), I have a maximum amount of items I want to have on apprentice level, is it possible to add the number of self-study items per level on the main dashboard (maybe after / under Wanikani's items)?
I'll add a counter of sorts to the add window that lists the number of apprentice items you currently have

- (bug) During review an item with a large number of meanings will push the input box and buttons out of the pop-up window.
You'll have to live with that one for a while, or go edit the script yourself, and change the size of the reviewing window.
Graphical bugs have the lowest prio right now ^^

Thanks for your quick answers. I didn’t realize there was already a form of checking present and I can live with that ;).

I didn’t want to make direct changes to the code since you might still be working on it. If the pop-up annoys me too much I’ll change it myself ^^.

Really nice work Shudouken, both the idea and the implementation! it could prove an important asset for learning with WK…
I don’t know if it has already been done, but actually i couldn’t resist the temptation and created a JSON input files for the JoyoKanji with the data from wikipedia. 
It’s 216 files, each containing 10 kanji with their meanings and readings, ordered by the class order in which you learn it, which means first grade is first, and last is secondary school(data from wikipedia) + a file which contains all 2136, if you want to search and add particular ones…

I’ve uploaded it to sendspace but i have no idea how long it’ll stay there…
http://www.sendspace.com/file/jvz3p9

This is such a cool idea. I would totally use this, but I only have a tablet(apple), haha.

I’m not sure if this has been brought up already, but arambses idea(which is really cool, btw) has given me an idea: could you add the function to make “decks”? Like in ANKI (I don’t like ANKI ^^). so I could have a deck for each of his files

It doesn’t have memory. I typed two answers with a “,” separating it. It was wrong, closed the window and I could do all the reviews again (10). I don’t know if the SRS does it correctly.

Thud said... It doesn't have memory. I typed two answers with a "," separating it. It was wrong, closed the window and I could do all the reviews again (10). I don't know if the SRS does it correctly.
 I'll correct that in the next update, which will probably be huge ^^

This is great and I’m tempted to look under the hood and fiddle a bit with it myself.

Right now I’m just putting in a few of my sister’s flash cards.
(she learnt the manual way before the internet really took off, and when she left for Japan, my mum had all her stuff stored in a room. When I started to learn, mum figured she may as well lend all of my sister’s Japanese resources to me.)

I don’t mind sharing when I’m done.

Would it be possible to integrate this with WaniKani so that custom vocabulary only show up for study after you’ve learned the prerequisite Kanji? If that were possible, I think I’d just about lose my shit.

NinKenDo said... Would it be possible to integrate this with WaniKani so that custom vocabulary only show up for study after you've learned the prerequisite Kanji? If that were possible, I think I'd just about lose my shit.
Hmm.. probably not ^^
That sounds like a ton of work

Thank you <33333333333333

this is great!! I’m going to install this once I’m home!

I’m looking through your code.
I’m only just getting back into programming in my spare time so I’m far from professional.

I have a question about line 204:
"    else if (reading.length == 0) {"

If I am not mistaken, at this point the variable “reading” will always be an array with at least one entry, therefore if no reading was entered then reading.length == 1, and this code will never execute. Was your intention to check that array variable for an empty string?

Ethan said... I'm looking through your code.
I'm only just getting back into programming in my spare time so I'm far from professional.

I have a question about line 204:
"    else if (reading.length == 0) {"

If I am not mistaken, at this point the variable "reading" will always be an array with at least one entry, therefore if no reading was entered then reading.length == 1, and this code will never execute. Was your intention to check that array variable for an empty string?

No, it can have zero entries too, for vocab like する - to do
try putting that word in and you'll see that the status will update to "Added without reading" as the next line in the code suggests

I was not planning to make the code readable for anyone other than myself, so could be that some things don't make too much sense at first xD
Shudouken said...
Ethan said... I'm looking through your code.
I'm only just getting back into programming in my spare time so I'm far from professional.

I have a question about line 204:
"    else if (reading.length == 0) {"

If I am not mistaken, at this point the variable "reading" will always be an array with at least one entry, therefore if no reading was entered then reading.length == 1, and this code will never execute. Was your intention to check that array variable for an empty string?

No, it can have zero entries too, for vocab like する - to do
try putting that word in and you'll see that the status will update to "Added without reading" as the next line in the code suggests

I was not planning to make the code readable for anyone other than myself, so could be that some things don't make too much sense at first xD
I understand that you only wrote it for yourself to read, which is why I am asking about it.
I am still finding that that section of code doesn't fire because:
var reading = $("#addReading").val().toLowerCase().split(/[,、]+\s*/); //split at , or 、followed by 0 or any number of spaces
assigns an array of length 1 [""] to the value 'result' when there is no reading entered.
ie. "".toLowerCase().split(/[,、]+\s*/)
      => [""]

I am using greasemonkey.

P.S. You still comment your code a lot better than I do, or most people I know.

Oh yeah, the split stuff makes it like that, before the splitting it was truly empty, yeah, can remove that section of code ^^