From 1b278320542fd18a6426b433ea4d042781311812 Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Thu, 24 Mar 2016 20:20:46 -0700 Subject: Deinflection now same as in Yomichan for Anki --- ext/jp/translator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext') diff --git a/ext/jp/translator.js b/ext/jp/translator.js index 36ed60f3..b3e96538 100644 --- a/ext/jp/translator.js +++ b/ext/jp/translator.js @@ -46,7 +46,7 @@ class Translator { findTerm(text) { const groups = {}; - for (let i = text.length; i >= 0; --i) { + for (let i = text.length; i > 0; --i) { const term = text.slice(0, i); const dfs = this.deinflector.deinflect(term, t => { -- cgit v1.2.3