added some more thorough description checking into rusty-checker
This commit is contained in:
+2
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user