Homophone explorer (HPX, name suggestions welcome :P) extends Wanikani by adding a Homophones section on all your vocabulary pages and review and lesson sessions. I don’t know about you but when I was doing reviews or lessons, I would hear a word pronounced and think to myself, ‘I swear this meant something else.’ So here’s a little something to help with that. Of course, you could just search a dictionary or wanikani with the reading, but this is just a faster way to view homophones when you are already on the vocab page or blitzing through your queue in my opinion. If you have SRS progress on an item, HPX will show that too.
Functionality
HPX downloads the every vocabulary item into your cache (userscript manager storage) and compares each of these with the readings (yes it works with words with multiple readings). Since it downloads the entire list to your cache, it is much faster than searching wanikani or looking it up elsewhere. The cache updates every 60 minutes by default.
Note: HPX may conflict with some reorder scripts (depending on implementation), although I have not run into any. If you run into any problems please let me know.
Download
This userscript requires your favourite userscript manager. I use Tampermonkey for chrome. You can download HPX from Github or greasyfork
I installed this awhile ago but I never have been able to make it work. I disabled other scripts but still no dice. (I’m on the latest version of Firefox.)
I love the idea of it, though! I’d also love a synonym explorer. Moreso than the homonyms, the words with the same meanings confuse me for some reason, unless I learn them on the same level.
I can’t wait to try this out, but you know what would also be insanely helpful? A freaking synonym explorer. I swear if one more vocab means “hypothesis” I’m gonna kick a dog.
South said...
I can't wait to try this out, but you know what would also be insanely helpful? A freaking synonym explorer. I swear if one more vocab means "hypothesis" I'm gonna kick a dog.
Better kick a cat, they can at least land on all four feet right after.
Also just gotta mark this thread before going to bed and install the script. I really like the idea, it'll be great to have.
Quick edit before I do: It doesn't seem to work for me either (win7x64 firefox).
South said...
I can't wait to try this out, but you know what would also be insanely helpful? A freaking synonym explorer. I swear if one more vocab means "hypothesis" I'm gonna kick a dog.
Better kick a cat
Don't. They can be helpful sometimes.
Overall reaction: F*CKING GENIUS. Surprised it didn't have any major traction when it came out ;p If it don't work, I'll make it work.
EDIT: yea well, like most scripts developed on Chrome, it doesn't seem to work on Firefox, and I have no idea why.
Not sure, if this script is supported anymore but I keep getting an error that keeps trying to reload every 3 seconds which is due to an 401 (Unauthorized)Get command
@Partholingo It seems the error is caused by an incorrect cached API key. I have also made a change in the script to look for the API in the correct places.
Could you please reinstall the script from GreasyFork. Then on any vocab page, click on the Reload API Key button then the Update cache now button. That should fix the issue. If it doesn’t, please let me know.
Thanks for looking into it. I think it is fine now. That particular example that I gave doesn’t seem to have homophones, that may be why it was throwing an error. I did what you mentioned [reload API, update cache]. Now it has a running counter of time since last update and then below says No homophones found.
I looked up one that I know that has a homophone such as 人口 「人工」, and it looks ok to me. It still has the running counter of last updated time, but I think that’s by design.
Not working for me with TamperMonkey on Firefox (57.0.4 (64-bit)) on Arch Linux.
The first vocab I open says:
“Updating cache with Wanikani servers. Please stay on the page…”
but then nothing happens for minutes.
I also have this in the console log:
“TypeError: vocabList[vocabIndex] is null eval line 3 > Function:307:13”
When I close or reload the page the section is just empty and I have in the console:
And in review when opening the details for a vocab the info is loading forever (never seen it finish, after having installed Homophone explorer)
I have other scripts installed, namely the Framework and Pitch Info (which shows up below the loading animation, unlike the homophones section).
Reloading the API key works and then I have this:
“Last updated: …” (can’t copy because it keeps changing every second)
Reloading the page there is an empty section again (no message, no homophones (for population/artificial).