# Do You Even Kana? Okurigana Matcher

**URL:** <https://community.wanikani.com/t/do-you-even-kana-okurigana-matcher/8440>\
**Category:** API And Third-Party Apps\
**Created:** [May 12, 2015, 11:32pm UTC](https://community.wanikani.com/t/do-you-even-kana-okurigana-matcher/8440 "2015-05-12T23:32:08Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![kbp](https://cdck-file-uploads-global.s3.dualstack.us-west-2.amazonaws.com/wanikanicommunity/original/3X/f/d/fd4c154120954695f788402f3bcf4e616499bc2d.png) [@kbp](https://community.wanikani.com/u/kbp)\
**Post date:** [January 28, 2019, 9:19pm UTC](https://community.wanikani.com/t/do-you-even-kana-okurigana-matcher/8440/21 "2019-01-28T21:19:30Z")

</div>

I noticed that this doesn’t accept a trailing `'n'` if the vocab word ends in a literal `'ん'` (it already worked for words ending in kanji because it just uses `/.+/` for them). If anyone else wants it, I changed `answerChecker.evaluate` to:

```auto
answerChecker.evaluate = function(e, t) {
    var isLesson = /^http.*:\/\/www\.wanikani\.com\/lesson/.test(location.href);
    var cI = $.jStorage.get(isLesson ? "l/currentQuizItem" : "currentItem");
    var type = $.jStorage.get(isLesson ? "l/questionType" : "questionType");
    if (cI.voc !== undefined && type === "reading" && !kanaMatches(cI.voc, t)) {
        logMutations();
        return { exception: true };
    } else {
        return oldEvaluate(e, t);
    }
}

function kanaMatches(vocab, input) {
    return makeRegex(vocab).test(input.replace(/n$/, "ん"));
}

```

---

<div class="post-metadata">

**Author:** ![AfroThundr](https://sea1.discourse-cdn.com/wanikanicommunity/user_avatar/community.wanikani.com/afrothundr/32/264078_2.png) [@AfroThundr](https://community.wanikani.com/u/AfroThundr)\
**Post date:** [September 17, 2019, 8:35pm UTC](https://community.wanikani.com/t/do-you-even-kana-okurigana-matcher/8440/22 "2019-09-17T20:35:36Z")

</div>

I’m thinking this script could use an override or “submit anyway” function for cases where we legit don’t remember the correct answer. Without it, the script refuses to let me submit my answer, and I have to resort to looking up the correct value to continue, which defeats the purpose of the review. Perhaps if the user presses enter more than once (or twice), the script should let the answer be submitted?

---

<div class="post-metadata">

**Author:** ![JuiceS](https://sea1.discourse-cdn.com/wanikanicommunity/user_avatar/community.wanikani.com/juices/32/371203_2.png) [@JuiceS](https://community.wanikani.com/u/JuiceS)\
**Post date:** [September 19, 2020, 8:27am UTC](https://community.wanikani.com/t/do-you-even-kana-okurigana-matcher/8440/23 "2020-09-19T08:27:49Z")

</div>

Probably a little late for you and I’m not sure if I understood your request correctly but here are two scripts that might help:

- [Double Check](https://community.wanikani.com/t/obsolete-userscript-wanikani-double-check/8396/1): for correcting your answers if you made a typo and manually override the right/wrong identification
- [Don’t know Button](https://community.wanikani.com/t/Userscript-I-dont-know-button/7231/1): adds a ? to the answer bar if you don’t know the answer and it will submit a long string that cannot possibly be correct

---

<div class="post-metadata">

**Author:** ![Ethan](https://sea1.discourse-cdn.com/wanikanicommunity/user_avatar/community.wanikani.com/ethan/32/1080_2.png) [@Ethan](https://community.wanikani.com/u/Ethan)\
**Post date:** [September 20, 2020, 10:34am UTC](https://community.wanikani.com/t/do-you-even-kana-okurigana-matcher/8440/24 "2020-09-20T10:34:44Z")

</div>

Do you mean if you can’t remember the Kana?  
eg. That り is ‘ri’ etc?

It should let you submit anything so long as the kana is correct. You should absolutely be able to get things wrong if you mess up the Kanji. Let me know if that’s not the case.

---

<div class="post-metadata">

**Author:** ![evandcs](https://sea1.discourse-cdn.com/wanikanicommunity/user_avatar/community.wanikani.com/evandcs/32/447480_2.png) [@evandcs](https://community.wanikani.com/u/evandcs)\
**Post date:** [May 21, 2021, 5:49pm UTC](https://community.wanikani.com/t/do-you-even-kana-okurigana-matcher/8440/25 "2021-05-21T17:49:52Z")

</div>

does this work for the hiragana typing?

I mean if I want to type 作業(さぎょう) but instead I type さぎょ does it have a shake animation to warn it is not correct?

---

<div class="post-metadata">

**Author:** ![prouleau](https://sea1.discourse-cdn.com/wanikanicommunity/user_avatar/community.wanikani.com/prouleau/32/376127_2.png) [@prouleau](https://community.wanikani.com/u/prouleau)\
**Post date:** [May 21, 2021, 6:08pm UTC](https://community.wanikani.com/t/do-you-even-kana-okurigana-matcher/8440/26 "2021-05-21T18:08:40Z")

</div>

In my understanding this script only checks the okuriganas, that is kana explicitly present in the vocabulary word. For example in 見る the okurigana is る while み is not an okurigana.

In the example you bring I don’t expect any shake because the word doesn’t contains okurigana.

---

<div class="post-metadata">

**Author:** ![Ethan](https://sea1.discourse-cdn.com/wanikanicommunity/user_avatar/community.wanikani.com/ethan/32/1080_2.png) [@Ethan](https://community.wanikani.com/u/Ethan)\
**Post date:** [May 22, 2021, 2:23pm UTC](https://community.wanikani.com/t/do-you-even-kana-okurigana-matcher/8440/27 "2021-05-22T14:23:47Z")

</div>

@prouleau is correct. I don’t see any benefit of second chances on the Kanji, that’s what we’re here to learn. Might as well install [Never Wrong](https://community.wanikani.com/t/userscript-wanikani-never-wrong/8172) at that point.

With okurigana though, the answer is in the question.

---

<div class="post-metadata">

**Author:** ![Gorbit99](https://sea1.discourse-cdn.com/wanikanicommunity/user_avatar/community.wanikani.com/gorbit99/32/7307_2.png) [@Gorbit99](https://community.wanikani.com/u/Gorbit99)\
**Post date:** [February 15, 2022, 2:31am UTC](https://community.wanikani.com/t/do-you-even-kana-okurigana-matcher/8440/28 "2022-02-15T02:31:20Z")

</div>

This is the script I didn’t know I needed but I probably don’t deserve.

If you are still developing it, a feature like “only warn if the kanji part matches” would be quite nice. I usually just input something random like あ into the input box if I don’t know a word and this would help me be lazy basically.

---

<div class="post-metadata">

**Author:** ![Kumirei](https://sea1.discourse-cdn.com/wanikanicommunity/user_avatar/community.wanikani.com/kumirei/32/480522_2.png) [@Kumirei](https://community.wanikani.com/u/Kumirei)\
**Post date:** [April 9, 2022, 5:57pm UTC](https://community.wanikani.com/t/do-you-even-kana-okurigana-matcher/8440/29 "2022-04-09T17:57:37Z")

</div>

Did you say something about wanting to get some practice with your keyboard?

---

<div class="post-metadata">

**Author:** ![Gorbit99](https://sea1.discourse-cdn.com/wanikanicommunity/user_avatar/community.wanikani.com/gorbit99/32/7307_2.png) [@Gorbit99](https://community.wanikani.com/u/Gorbit99)\
**Post date:** [April 9, 2022, 6:43pm UTC](https://community.wanikani.com/t/do-you-even-kana-okurigana-matcher/8440/30 "2022-04-09T18:43:03Z")

</div>

![image](https://global.discourse-cdn.com/wanikanicommunity/original/4X/5/1/5/515c3ba972c3526f2feb460cbdafcf357c75caf0.png)

It broke btw, so I’m waiting for replacements to arrive tomorrow

But yeah, it’s on the list already, alongside my rabbit hole idea and the latest request in the request thread

---

<div class="post-metadata">

**Author:** ![Kumirei](https://sea1.discourse-cdn.com/wanikanicommunity/user_avatar/community.wanikani.com/kumirei/32/480522_2.png) [@Kumirei](https://community.wanikani.com/u/Kumirei)\
**Post date:** [April 9, 2022, 6:52pm UTC](https://community.wanikani.com/t/do-you-even-kana-okurigana-matcher/8440/31 "2022-04-09T18:52:55Z")

</div>

> [@Gorbit99](#):
>
> It broke btw, so I’m waiting for replacements to arrive tomorrow

That is kind of hilarious. What keyboard is it, btw?

---

<div class="post-metadata">

**Author:** ![Gorbit99](https://sea1.discourse-cdn.com/wanikanicommunity/user_avatar/community.wanikani.com/gorbit99/32/7307_2.png) [@Gorbit99](https://community.wanikani.com/u/Gorbit99)\
**Post date:** [April 9, 2022, 6:53pm UTC](https://community.wanikani.com/t/do-you-even-kana-okurigana-matcher/8440/32 "2022-04-09T18:53:41Z")

</div>

> **[GitHub - mattdibi/redox-keyboard: Ergonomic split mechanical keyboard](https://github.com/mattdibi/redox-keyboard)**
>
> Ergonomic split mechanical keyboard. Contribute to mattdibi/redox-keyboard development by creating an account on GitHub.

tldr, the lesson is, don’t buy shoddy arduino knock offs

---

<div class="post-metadata">

**Author:** ![Kumirei](https://sea1.discourse-cdn.com/wanikanicommunity/user_avatar/community.wanikani.com/kumirei/32/480522_2.png) [@Kumirei](https://community.wanikani.com/u/Kumirei)\
**Post date:** [April 9, 2022, 6:55pm UTC](https://community.wanikani.com/t/do-you-even-kana-okurigana-matcher/8440/33 "2022-04-09T18:55:44Z")

</div>

Cool! I was wondering if it was something like that, though I have not seen that version before

---

<div class="post-metadata">

**Author:** ![Ethan](https://sea1.discourse-cdn.com/wanikanicommunity/user_avatar/community.wanikani.com/ethan/32/1080_2.png) [@Ethan](https://community.wanikani.com/u/Ethan)\
**Post date:** [April 10, 2022, 9:32am UTC](https://community.wanikani.com/t/do-you-even-kana-okurigana-matcher/8440/34 "2022-04-10T09:32:39Z")

</div>

I’ll think about it. I don’t think it should be too difficult but I haven’t looked at it for a while.  
It’s a good idea.

---

<div class="post-metadata">

**Author:** ![Mrs\_Diss](https://sea1.discourse-cdn.com/wanikanicommunity/user_avatar/community.wanikani.com/mrs_diss/32/375181_2.png) [@Mrs\_Diss](https://community.wanikani.com/u/Mrs_Diss)\
**Post date:** [April 6, 2023, 3:30pm UTC](https://community.wanikani.com/t/do-you-even-kana-okurigana-matcher/8440/35 "2023-04-06T15:30:17Z")

</div>

hi ^^

i don’t know if you still want to maintain this script, but at least for me it’s been broken since the recent WK update. i really like this update because it strikes that sweet spot between “i don’t trust myself with the double-checker” and “that was definitely a typo”

do you think you might have a look at this?

or otherwise, does anybody know of a replacement for this script?

thanks either way ^^

---

<div class="post-metadata">

**Author:** ![Ethan](https://sea1.discourse-cdn.com/wanikanicommunity/user_avatar/community.wanikani.com/ethan/32/1080_2.png) [@Ethan](https://community.wanikani.com/u/Ethan)\
**Post date:** [April 8, 2023, 10:48am UTC](https://community.wanikani.com/t/do-you-even-kana-okurigana-matcher/8440/36 "2023-04-08T10:48:20Z")

</div>

I’ll have a look at it

---

<div class="post-metadata">

**Author:** ![Ethan](https://sea1.discourse-cdn.com/wanikanicommunity/user_avatar/community.wanikani.com/ethan/32/1080_2.png) [@Ethan](https://community.wanikani.com/u/Ethan)\
**Post date:** [April 10, 2023, 7:15am UTC](https://community.wanikani.com/t/do-you-even-kana-okurigana-matcher/8440/37 "2023-04-10T07:15:36Z")

</div>

Okay I’ve made some changes and it _should_ work now. I’m not happy with how I retrieve answerChecker, but it’s something.

Hopefully it’ll do for now.

---

<div class="post-metadata">

**Author:** ![Mrs\_Diss](https://sea1.discourse-cdn.com/wanikanicommunity/user_avatar/community.wanikani.com/mrs_diss/32/375181_2.png) [@Mrs\_Diss](https://community.wanikani.com/u/Mrs_Diss)\
**Post date:** [April 10, 2023, 2:53pm UTC](https://community.wanikani.com/t/do-you-even-kana-okurigana-matcher/8440/38 "2023-04-10T14:53:00Z")

</div>

hi again, and thank you for your reply!

i tried it out, and at first it didn’t work, didn’t even show up in the list of scripts:

> **screenshot**
>
> ![image](https://global.discourse-cdn.com/wanikanicommunity/original/4X/a/a/7/aa789e3a2e2f7d6532d4dda550c733a0162ef5dd.jpeg)

and, i’m really not a coder, but it seemed strange to me that it didn’t even show up in the list, so i looked at the code, and realised that this line doesn’t match up with the url which WK uses for reviews now:

// @include http\*://www.wanikani.com/review/session\*

so i added this line with the current url:

// @include[https://www.wanikani.com/subjects/review](https://www.wanikani.com/subjects/review)

and now the script shows up in the list, but when i tested it, it didn’t catch the typo:

> **screenshot**
>
> ![image](https://global.discourse-cdn.com/wanikanicommunity/original/4X/4/a/5/4a5bd5bc8da10b490e26459c6136bdfc1d847fc9.jpeg)

i see that you refer to an url further down, in this line:

```
var isLesson = /^http.*:\/\/www\.wanikani\.com\/lesson/.test(location.href);

```

but i am totally out of my depth here.

* * *

anyway, i hope this is helpful? and thank you again for your work, WK wouldn’t be the same without all the work you and others put into the userscripts!

---

<div class="post-metadata">

**Author:** ![Ethan](https://sea1.discourse-cdn.com/wanikanicommunity/user_avatar/community.wanikani.com/ethan/32/1080_2.png) [@Ethan](https://community.wanikani.com/u/Ethan)\
**Post date:** [April 10, 2023, 3:00pm UTC](https://community.wanikani.com/t/do-you-even-kana-okurigana-matcher/8440/39 "2023-04-10T15:00:12Z")

</div>

Thanks for your feedback.

Did you update to version 0.11.0?

The include should have changed to  
`// @include http*://www.wanikani.com/subjects/*`

---

<div class="post-metadata">

**Author:** ![Mrs\_Diss](https://sea1.discourse-cdn.com/wanikanicommunity/user_avatar/community.wanikani.com/mrs_diss/32/375181_2.png) [@Mrs\_Diss](https://community.wanikani.com/u/Mrs_Diss)\
**Post date:** [April 10, 2023, 3:07pm UTC](https://community.wanikani.com/t/do-you-even-kana-okurigana-matcher/8440/40 "2023-04-10T15:07:45Z")

</div>

dang!

i’m reasonably sure that i checked for updates right before starting reviews now, and that it told me the script was up to date.

but it was showing up as 0.10.something in tampermonkey.

uninstalled/reinstalled the script, now it’s working!

that’s on me, sorry.

and many thanks for your time and effort!

[Previous page](https://community.wanikani.com/t/do-you-even-kana-okurigana-matcher/8440.md?page=1)

[Next page](https://community.wanikani.com/t/do-you-even-kana-okurigana-matcher/8440.md?page=3)
