Glossary: find terms by their other names ("alpha error" finds Type I error)
Someone who searches the glossary for "alpha error", "source control" or "pre-analysis plan" finds nothing, because the filter only matches entry titles. The Glossary sheet now records other names for 28 terms (the related_terms_linking tab, read by the generator in #1214). This PR shows those names and uses them for finding terms.
- Term page: an "Also known as" line under the heading, e.g. Type I error — Also known as: False positive result, Alpha error.
- Glossary hub filter and the side list's filter: a term is also found by its other names. Typing "alpha error" leaves Type I error.
- Site search: a term's other names lead its summary, so the search finds it and highlights the name.
- Structured data: the DefinedTerm JSON-LD carries them as
alternateName. - Check 24 in
check_seo_html.py: every name a term page shows must be in the hub filter. Unit tests are included.
The side list carries data-term only for the 28 terms that have other names, so term pages stay small (#668).
Checked: I regenerated the glossary from the live sheet with #1214's generator and built the site.
- Every check in
check_seo_html.pypasses, including the new check 24, and all 174 unit tests pass. - In Chromium, "alpha error" in both filters leaves only Type I error, and "type i" still finds Type I and Type II error.
- I looked at the Type I error and p-hacking pages at 1440 and 390 px. There were no console errors.
- Without #1214's pages nothing changes: no committed page has
also_known_asyet, so the line appears with the next glossary regeneration after #1214.
Created with Claude Opus 5.5 in Claude Code.
Summary by cubic
Glossary terms can now be found by their other names, so searching "alpha error" leaves Type I error. Term pages show an "Also known as" line under the heading, the hub and side filters match those names, and site search and structured data (DefinedTerm alternateName) include them; site search strips backslashes from other names as the hub filter does.
- New check 24 in
check_seo_html.pyverifies every name a term page shows is in the hub filter, with unit tests. It also works on preview builds served under a URL prefix and fails when the glossary hub is missing. - The names come from the Glossary sheet's
related_terms_linkingtab and appear only after the next regeneration with #1214's generator; without it nothing changes.