From 771325c52e3db1a5dd2046e1f1b7869f7c554500 Mon Sep 17 00:00:00 2001 From: haoyuren <13851610112@163.com> Date: Wed, 11 Mar 2026 14:13:48 -0500 Subject: Show tied community tags joined with / When multiple tags have the same top score, display them all separated by " / " instead of picking just one. Co-Authored-By: Claude Opus 4.6 --- index.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 958dd8f..4f1469a 100644 --- a/index.html +++ b/index.html @@ -3226,16 +3226,17 @@ function communityAutoLabel(memberIds, allCommunityGroups) { }); // Score = coverage × specificity - let bestTag = null, bestScore = -1; + let bestTags = null, bestScore = -1; const size = memberIds.length; for (const [tag, intCount] of Object.entries(tagInternalCount)) { const coverage = intCount / size; const total = allTagTotal[tag] || intCount; const specificity = intCount / total; const score = coverage * specificity; - if (score > bestScore) { bestScore = score; bestTag = tag; } + if (score > bestScore) { bestScore = score; bestTags = [tag]; } + else if (score === bestScore && bestScore > 0) { bestTags.push(tag); } } - return bestTag; + return bestTags ? bestTags.join(' / ') : null; } function renderCommunityHulls() { -- cgit v1.2.3