From 024ec83251d05b966ceeb90fd1a531b36567b31b Mon Sep 17 00:00:00 2001
From: Alex Yatskov <alex@foosoft.net>
Date: Sat, 6 Aug 2016 23:16:55 -0700
Subject: Reduce file size

---
 ext/bg/js/deinflector.js | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

(limited to 'ext')

diff --git a/ext/bg/js/deinflector.js b/ext/bg/js/deinflector.js
index a0a72872..6520cbc0 100644
--- a/ext/bg/js/deinflector.js
+++ b/ext/bg/js/deinflector.js
@@ -56,18 +56,18 @@ class Deinflection {
                     // TODO: Handle addons through tags.json or rules.json
                     //
 
-                    if (v.tagsIn.indexOf(tag) !== -1) {
+                    if (v.ti.indexOf(tag) !== -1) {
                         allowed = true;
                         break;
                     }
                 }
 
-                if (!allowed || !this.term.endsWith(v.kanaIn)) {
+                if (!allowed || !this.term.endsWith(v.ki)) {
                     continue;
                 }
 
-                const term = this.term.slice(0, -v.kanaIn.length) + v.kanaOut;
-                const child = new Deinflection(term, v.tagsOut, rule);
+                const term = this.term.slice(0, -v.ki.length) + v.ko;
+                const child = new Deinflection(term, v.to, rule);
                 if (child.deinflect(validator, rules)) {
                     this.children.push(child);
                 }
-- 
cgit v1.2.3