improve sorting a little

This commit is contained in:
wareya committed 2017-12-17 20:28:07 -05:00
1 parent 30b2fe351e
commit 2c8dfbec73
1 file changed
+2
+2
View File
@@ -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;