Repository navigation
Commit fefb92a
test(copy): fail the build when the site claims something it does not do
Every phrase in this list was found by reading the live site, was false, and had
to be corrected - "every score is a percentile rank", "the single best free video
for every step", "release cadence", "a syllabus that updates itself", "real-time",
"AI-powered". They were found one at a time over a week. This finds them all at
once, and finds the next one.
It scans the TypeScript a visitor's copy lives in, with code comments stripped so
a comment explaining why a claim was removed can still quote it. Each pattern
carries the reason it is wrong.
Its first run found four the manual sweep had missed - three "Hand-picked" tiles
in the plan UI and one more "best free video each step" - which is the case for
having it. It also produced two false positives, which shaped the patterns:
LearningResources' keyless-fallback banner really is hand-picked, and /compare
lists what the page shows (it does display sentiment) rather than what the score
is built from. Both patterns now target the claim, not the word.
Guards against scanning nothing (>50 files), and the comment stripper is tested
against a URL so "https://" is not eaten. 206 pass.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>1 parent 52c84e7 commit fefb92a
1 file changed
Lines changed: 75 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
0 commit comments