Skip to content

Detect keyword stuffing (SEO abuse) in alt-text-quality#54

Merged
kzhou314 merged 2 commits into
mainfrom
detect-seo-abuse-alt-text
Jul 24, 2026
Merged

Detect keyword stuffing (SEO abuse) in alt-text-quality#54
kzhou314 merged 2 commits into
mainfrom
detect-seo-abuse-alt-text

Conversation

@kzhou314

@kzhou314 kzhou314 commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Closes github/accessibility#10634

Adds keyword-stuffing detection to the opt-in alt-text-quality judge, so it flags alt text padded with search keywords instead of a real description.

@kzhou314
kzhou314 marked this pull request as ready for review July 23, 2026 19:41
@kzhou314
kzhou314 requested a review from a team as a code owner July 23, 2026 19:41
@kzhou314
kzhou314 requested review from Copilot and rickyzhangca July 23, 2026 19:41
@kzhou314
kzhou314 requested a review from JoyceZhu July 23, 2026 19:43

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds keyword-stuffing detection and tailored SEO-abuse findings to the opt-in alt-text quality rule.

Changes:

  • Expands the judge prompt with keyword-stuffing criteria and examples.
  • Adds tailored remediation for keyword-stuffing verdicts.
  • Adds unit and grading cases for stuffed and legitimate alt text.
Show a summary per file
File Description
src/judges/prompt.ts Defines keyword-stuffing detection guidance.
src/rules/alt-text-quality.ts Maps detected stuffing to tailored findings.
tests/unit/alt-text-quality.test.ts Tests tailored finding generation.
tests/fixtures/alt-quality/cases-keyword-stuffing.json Adds grading examples and counterexamples.

Review details

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 4/4 changed files
  • Comments generated: 3
  • Review effort level: Medium

Comment thread src/rules/alt-text-quality.ts Outdated
Comment thread src/judges/prompt.ts
Comment thread tests/fixtures/alt-quality/cases-keyword-stuffing.json Outdated
Copilot AI review requested due to automatic review settings July 23, 2026 19:55

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review details

  • Files reviewed: 5/5 changed files
  • Comments generated: 0 new
  • Review effort level: Medium

@JoyceZhu JoyceZhu left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@kzhou314
kzhou314 merged commit 6731ab3 into main Jul 24, 2026
10 checks passed
@kzhou314
kzhou314 deleted the detect-seo-abuse-alt-text branch July 24, 2026 17:39
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.

3 participants