Skip to content

PROJECT_ANCHORS / projectAnchors maps are missing Tenant Screening, breaking its link in 2 shipped explainers #350

Description

@yakew7

Where: scripts/build_explainers.py:38-45 (PROJECT_ANCHORS) and assets/explainers-ui.js:14-22 (projectAnchors) - two parallel maps of audit-folder name -> homepage anchor ID, used to turn a Markdown link like [Tenant Screening/](../Tenant%20Screening/) into a proper ../index.html#project-tenant link when an explainer's page is rendered.

Both maps list COMPAS, AI Fair Recruitment, German Credit Lending, Insurance Denial, Benefits Denial, and Healthcare Readmission - but not Tenant Screening, even though index.html has a real id="project-tenant" anchor for it, exactly like the other six audits.

Real, live consequence: explainers/equal-opportunity.html (line ~273) resolves its [COMPAS/](../COMPAS/) related-project link to ../index.html#project-compas correctly, but the identically-formatted [Tenant Screening/](../Tenant%20Screening/) link two items later stays as a bare, unconverted folder link instead of ../index.html#project-tenant. The same bug affects explainers/fairness-through-unawareness.html, and will silently affect every future explainer that cites the Tenant Screening audit.

Suggested fix: add "Tenant Screening": "project-tenant" to both PROJECT_ANCHORS (Python) and projectAnchors (JS), then make build-explainers to fix the two already-shipped pages. While in there: assets/explainers-ui.js's map also has a dead, misspelled legacy key 'Ai Fair Recrutment Dataset': 'project-hiring' (line 17) worth removing in the same PR - it doesn't match any real folder name and has no Python-side counterpart.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions