Skip to content

Use "1 star" instead of "1 stars" in star pills - #96

Merged
floatdrop merged 1 commit into
mainfrom
fix-star-plural
Nov 13, 2026
Merged

floatdrop merged 1 commit into
mainfrom
fix-star-plural

Conversation

@floatdrop

Copy link
Copy Markdown
Owner

The README alt text and the star badge's aria-label both appended "stars" to the count. For the two entries with one star (evict and vanitypages) that produced "1 stars".

  • Adds render.StarWord(n), which returns "star" for exactly one and "stars" otherwise.
  • Uses it in the README item alt text (internal/render/readme.go) and in the badge title (cmd/awesome/sync.go).
  • Adds TestStarWord.

Generated files are not included. The sync job regenerates them after merge. Locally, generate now outputs alt="1 star" and aria-label="floatdrop/evict has 1 star on GitHub".

🤖 Generated with Claude Code

The README alt text and the star badge's tooltip both appended "stars"
to any count. StarWord picks the singular for exactly one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@floatdrop
floatdrop merged commit d733ead into main Nov 13, 2026
2 checks passed
@floatdrop
floatdrop deleted the fix-star-plural branch November 13, 2026 03:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant