jj-tetraquark / wanikani-burn

Adds a space on the wanikani dash that reviews random burned items

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow auto-correction of "n" to "ん" at end of input for Reading quiz

gremlinn opened this issue · comments

Minor enhancement request, but it'd be great (to speed up quizzes) if, when processing the input for a Reading quiz, any input string ending in "n" would have this automatically replaced this with kana "ん" (as WaniKani does in reviews).
image

From kaniwani

function addTerminalN(str = '') {
  return /n/i.test(str.slice(-1)) ? `${str.slice(0, -1)}ん` : str;
}

:)

Yeah that'd do it :) If you want to submit a pull request I'll happily merge it in.