summaryrefslogtreecommitdiff
path: root/ext/bg/js/deinflector.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-08-06 23:16:55 -0700
committerAlex Yatskov <alex@foosoft.net>2016-08-06 23:16:55 -0700
commit024ec83251d05b966ceeb90fd1a531b36567b31b (patch)
tree5150cd2e9455c47aea755b7d528277834a03774c /ext/bg/js/deinflector.js
parent9468797b874bc39e8a9730fc67bb97fd2494f76f (diff)
Reduce file size
Diffstat (limited to 'ext/bg/js/deinflector.js')
-rw-r--r--ext/bg/js/deinflector.js8
1 files changed, 4 insertions, 4 deletions
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);
}