aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/translator.js
diff options
context:
space:
mode:
authorsiikamiika <siikamiika@users.noreply.github.com>2017-10-24 12:38:05 +0300
committersiikamiika <siikamiika@users.noreply.github.com>2017-10-24 12:38:05 +0300
commite034ca3ad4f88282e8dfec27df5cb7c55e0a47c6 (patch)
tree165f11bf51670ca87b4c8cce30dee0c458b4c933 /ext/bg/js/translator.js
parentbf15358bb433be22bf412a14911bf275079ae4fc (diff)
add tag meta score
Diffstat (limited to 'ext/bg/js/translator.js')
-rw-r--r--ext/bg/js/translator.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/bg/js/translator.js b/ext/bg/js/translator.js
index 22c5022f..5fcdea76 100644
--- a/ext/bg/js/translator.js
+++ b/ext/bg/js/translator.js
@@ -121,7 +121,7 @@ class Translator {
} else {
return 'normal';
}
- })(dictTermTagScore(result.expressions.get(expression).get(reading)))
+ })(tags.map(tag => tag.score).reduce((p, v) => p + v, 0))
});
}
}