summaryrefslogtreecommitdiff
path: root/ext/bg/js/dictionary.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/bg/js/dictionary.js')
-rw-r--r--ext/bg/js/dictionary.js21
1 files changed, 1 insertions, 20 deletions
diff --git a/ext/bg/js/dictionary.js b/ext/bg/js/dictionary.js
index ee056273..50932735 100644
--- a/ext/bg/js/dictionary.js
+++ b/ext/bg/js/dictionary.js
@@ -293,6 +293,7 @@ function dictTagSanitize(tag) {
tag.category = tag.category || 'default';
tag.notes = tag.notes || '';
tag.order = tag.order || 0;
+ tag.score = tag.score || 0;
return tag;
}
@@ -318,26 +319,6 @@ function dictTagsSort(tags) {
});
}
-function dictTermTagScore(tags) {
- let score = 0;
-
- const tagScores = {
- 'ik': -5,
- 'iK': -5,
- 'ok': -5,
- 'oK': -5,
- 'io': -5,
- 'oik': -5,
- 'P': 10
- };
-
- for (const tag of tags) {
- score += tagScores[tag] || 0;
- }
-
- return score;
-}
-
function dictFieldSplit(field) {
return field.length === 0 ? [] : field.split(' ');
}