From 2c8dfbec7375e9bf4964a2bdc4510c6bf813399a Mon Sep 17 00:00:00 2001 From: wareya Date: Sun, 17 Dec 2017 20:28:07 -0500 Subject: [PATCH] improve sorting a little --- background-script.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/background-script.js b/background-script.js index 7a9f2c0..06cf87e 100644 --- a/background-script.js +++ b/background-script.js @@ -862,6 +862,8 @@ function sort_results(text, results) entry.priority += 12; if(reading_kana == prefers_kana(entry)) entry.priority += 10; + if(entry.sense && entry.sense.length >= 3) + entry.priority += 3; // FIXME: affects words with only one obscure/rare/obsolete sense if(all_senses_have_a_tag(entry, ["obsc", "rare", "obs"])) entry.priority -= 5;