summaryrefslogtreecommitdiff
path: root/ext/jp/translator.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-03-25 20:54:04 -0700
committerAlex Yatskov <alex@foosoft.net>2016-03-25 20:54:04 -0700
commita1bab38a2dafcbf0657ea3e653980cc053006ce7 (patch)
treed7d7002140204a18a07a14780a1b1b561cca11df /ext/jp/translator.js
parent059b2eb4f229f9669709520a5c88d041b3b64590 (diff)
Deinflection fixes
Diffstat (limited to 'ext/jp/translator.js')
-rw-r--r--ext/jp/translator.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/jp/translator.js b/ext/jp/translator.js
index b3e96538..79f8515a 100644
--- a/ext/jp/translator.js
+++ b/ext/jp/translator.js
@@ -98,6 +98,10 @@ class Translator {
processTerm(groups, source, rules=[], root='') {
for (const entry of this.dictionary.findTerm(root || source)) {
+ if (entry.id in groups) {
+ continue;
+ }
+
groups[entry.id] = {
expression: entry.expression,
reading: entry.reading,