diff options
author | Alex Yatskov <alex@foosoft.net> | 2016-09-19 21:12:45 -0700 |
---|---|---|
committer | Alex Yatskov <alex@foosoft.net> | 2016-09-19 21:12:45 -0700 |
commit | adfc9b7f2a46b545530df94e122112a5d02e8d81 (patch) | |
tree | 91635f5e387f18f5cd5546948b619f0ddd16c2aa | |
parent | fcd9439bf5883eda6d4ee55c9a58932679b9b829 (diff) |
Cleanup
-rw-r--r-- | ext/bg/js/deinflector.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/bg/js/deinflector.js b/ext/bg/js/deinflector.js index 8b9f88e2..1474e56d 100644 --- a/ext/bg/js/deinflector.js +++ b/ext/bg/js/deinflector.js @@ -55,22 +55,22 @@ class Deinflection { for (const variant of rules[rule]) { let allowed = this.tags.length === 0; for (const tag of this.tags) { - if (variant.ti.includes(tag)) { + if (variant.tagsIn.includes(tag)) { allowed = true; break; } } - if (!allowed || !this.term.endsWith(variant.ki)) { + if (!allowed || !this.term.endsWith(variant.kanaIn)) { continue; } - const term = this.term.slice(0, -variant.ki.length) + variant.ko; + const term = this.term.slice(0, -variant.kanaIn.length) + variant.kanaOut; if (term.length === 0) { continue; } - const child = new Deinflection(term, variant.to, rule); + const child = new Deinflection(term, variant.tagsOut, rule); promises.push( child.deinflect(validator, rules).then(valid => { if (valid) { |