You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
a11y/link-text and links/anchor-text only recognise English generic phrases #840
a11y/link-text and links/anchor-text only recognise English generic phrases ("click here", "read more", "learn more", "here", "more"). On a French, German or Spanish site, links reading "cliquez ici", "mehr", "haga clic aqui" or "en savoir plus" are never reported, so the checks silently pass for most of the web.
Change: a per-language generic phrase list, selected from the page's <html lang> primary subtag (English is always checked as well). Keep it conservative: whole-text matches only, and only phrases that are generic in that language. Follows the conventional-label set from the sign in / terms exemption issue, which must win over these lists.
Acceptance Criteria
Generic phrases exist for at least Spanish, French, German, Portuguese, Italian, Dutch, Japanese, Chinese, Korean and Russian, chosen by the page language, with English always applied
Matching is on the whole normalised link text (NFKC, case folding, trailing and full-width punctuation); CJK text is not split on word boundaries
A page with no or an unknown lang is checked with the English list only
Conventional account and legal labels are never reported in any language
A test per language covers a generic phrase that is reported and a descriptive link that is not
docs/rules/a11y/link-text.mdx and docs/rules/links/anchor-text.mdx document the languages, and the CHANGELOG has an entry
Still reproduces. Both phrase lists are English only: GENERIC_LINK_TEXT in packages/rules/src/a11y/link-text.ts and GENERIC_ANCHORS in packages/rules/src/links/anchor-text.ts. Neither reads <html lang>. "cliquez ici", "mehr" and "en savoir plus" pass.
Activity
nc9 commentedon Oct 16, 2026
Triage, checked on main d93241c:
GENERIC_LINK_TEXTinpackages/rules/src/a11y/link-text.tsandGENERIC_ANCHORSinpackages/rules/src/links/anchor-text.ts. Neither reads<html lang>. "cliquez ici", "mehr" and "en savoir plus" pass.nc9/link-section-findings(commit 3cc28f66, which toucheslink-text.ts). Building a11y/link-text and links/anchor-text only recognise English generic phrases #840 on main now would conflict with it in the same two files. Start it once that branch lands, on top of its shared label module.fix(rules): trim ambiguous generic phrases, map 3-letter lang codes, …
chore(release): v0.0.128 batch: Bun 1.4.4, lease-based crawl retireme…