[Userscript] Similar Words Explanation

:warning: This is a third-party app and is not created by the WaniKani team. By using this, you understand that it can stop working at any time or be discontinued indefinitely.

WaniKani Similar Words Explanation

[ General script installation instructions ] :point_left: you need a script manager like Tampermonkey
[ Open Framework installation ]
[ Install “Similar Words Explanation” ]

WaniKani often teaches two words with almost the same English meaning many levels apart, and never says how they differ: 必要 and 重要, 思う and 考える, 完了 and 終了… I kept pasting pairs into ChatGPT (this thread is where it started).

What it does

Under Meaning in the item info of any vocab (lessons, reviews after you answer, extra study, vocab pages), it lists the words you’ve already learned that are easy to mix up with the current one. Pick one to three and click Explain the difference. You get:

  • a one-line gist that contrasts all the words at once, and says so plainly when the real difference is just formality
  • a card per word: reading, short gloss, how often you hear it in conversation (●●●○) and its register, a note on its nuance, a true opposite when there is one, 2–3 key expressions and an example sentence. The card title opens the word’s WaniKani page.
  • one everyday scene that uses every word
  • the one trap worth remembering

Got a review wrong because you typed another word’s meaning or reading? (“early” for 速い.) That word is listed first and already selected, so the explanation is one click away.

Screenshots


How it finds similar words

  • Shared meanings: vocab you’ve started (Apprentice 1+) whose WK meanings, whitelisted alternatives or your own synonyms overlap with the current word’s.
  • Kanji Search groups: hand-curated groups of related words, which catch near-synonyms whose English glosses differ (思う / 考える). Thanks, Mark! You can turn this off in Settings.

Up to 8 learned words show up as chips. Strong matches you haven’t learned yet follow, with a dashed outline and their level. A dot on a chip means that answer is already cached.

The LLM part

  • Nothing is sent until you click. Answers are cached in your browser, so revisiting a pair is instant and free. Regenerate asks again.
  • Default: Google Gemini’s free tier. Create a key at AI Studio in a project with no billing account linked, then open Tampermonkey’s menu → WaniKani Similar Words Explanation → Settings and paste it. The default model answers in about 2 seconds.
  • Also supported: OpenRouter, a local Ollama, or any OpenAI-compatible endpoint.
  • No key? The Ask ChatGPT button copies the question and opens ChatGPT.

LLMs can be wrong, especially on fine nuance. Treat the answer as a good first explanation, not a dictionary, and please post pairs where it got something wrong: I’ll use them to improve the prompt.

Privacy

Only the compared words’ characters, readings, WK meanings and part of speech go to the provider you chose. No mnemonics, no account data. Your API key stays in Tampermonkey’s storage and is never logged. No tracking, no server of mine.

Good to know

  • In reviews it only appears after you’ve answered, so it never spoils the meaning. Its buttons never take focus, so Enter still moves to the next item.
  • On Chrome/Edge 138+, Tampermonkey needs Allow User Scripts turned on in its extension details (right-click the icon → Manage extension), or no script runs at all.

Version history

  • 0.6.1: first public release

Source and issues on GitHub. MIT license. Built on Item Info Injector by Sinyaven and the Open Framework by rfindley.

Feedback very welcome!

This sounds like something very useful but I can’t install because the install link is broken.

Thanks for flagging this, and sorry about that! The link was wrong. It’s fixed now: you can install it directly from here (Tampermonkey will open its install page):
https://raw.githubusercontent.com/pensiero/wanikani-similar-words-explanation/main/wanikani-similar-words-explanation.user.js
The README has the full setup steps (Tampermonkey, WaniKani Open Framework, API key): GitHub - pensiero/wanikani-similar-words-explanation: WaniKani userscript: explains the difference between similar vocab you've learned, using an LLM (Gemini free tier by default). · GitHub
I’ll also publish it on Greasy Fork soon. Let me know if it still doesn’t work for you!

Nice ReadMe.
Time to try some of this LLM stuff I guess!
And thanks for the links to Kanji Search which somehow I have not seen before.

I published on Greasyfork also :slight_smile: WaniKani Similar Words Explanation

This script is amazing. I find it very useful. It also plays nice with the Elementary Dark style which is my favorite dark style.

Many thanks!

This is an amazing script. All the things I’ve been asking ChatGPT separately are now conveniently included in the word description. Very very useful.

Thank you. Very impressive.
The extra information is all a closed section called ‘Similar words’ inbetween the Meaning and Reading sections. Mentioning because I didn’t spot it at first.
Now to fit this into the way I work.
I use the web site for studying new items because there are a number of scripts that I find useful like this one, but use an app (SD) for reviews as it is quicker for me. Probably see if I can add a link in SM to wk for the current item.

Still liking this.
Obviously attitudes to AI vary enormously these days, so worth pointing out that this still provides some benefit even if you do not proceed with either of the AI implemented buttons that try to compare the meanings of the vocab you have selected. This list of similar vocab seems better than the various wk searches I have tried.
This arrangement also avoids wasting AI resources when you don’t want any extra info which would be a concern to me.

Totally agree :+1: I think the request is so little that you are not burning much resources anyway. Compare with who does coding sessions every day.

This is probably the same amount of effort that now is spent by Google on AI every time you search something on Google.com (because now a ‘answer by AI’ nearly always appears on top of the google searches)