added some more thorough description checking into rusty-checker

This commit is contained in:
Luxferre
2026-01-30 12:30:33 +02:00
parent ac54a72732
commit a767c5a39c
+2 -1
View File
@@ -44,7 +44,8 @@ langdata="$(curl -sSL $LANG_URL)"
desc="$(echo $repodata | jq -r .description)"
topics=$(echo $repodata | jq -r .topics)
# mentioning the language in the description boosts the score a lot
echo "$desc" | grep -qi "$CHLANG" && CORR_SCORE=$((CORR_SCORE + 50))
echo "$desc" | grep -qi "${CHLANG}-" && CORR_SCORE=$((CORR_SCORE + 50))
echo "$desc" | grep -qi " ${CHLANG}" && CORR_SCORE=$((CORR_SCORE + 50))
# mentioning the language in the topics also boosts the score
echo "$topics" | grep -qi "$CHLANG" && CORR_SCORE=$((CORR_SCORE + 30))
# get the most popular language in the language list