Archilyzer · Source

archilyzer

Archilyzer
git clone https://archilyzer.pages.dev/source/archilyzer.git
Log | Files | Refs | README | LICENSE

commit eb11348422226cd8871c8ee92e672603183153e0
parent bd6deacd5987a5ca16946a520357e17038d6fe04
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Thu, 12 Nov 2026 04:55:40 -0500

sweep-pipeline: a topic label's function words need no grounding (D2 round b)

"why the show has no audience" was refused for "why" and "has": pronouns,
question words and auxiliaries are not content words.

Co-Authored-By: Claude <noreply@anthropic.com>

Diffstat:
Mcommon/lib/report/draft/tasks/neutralClaim.test.ts | 2++
Mcommon/lib/report/draft/tasks/neutralClaim.ts | 4+++-
2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/common/lib/report/draft/tasks/neutralClaim.test.ts b/common/lib/report/draft/tasks/neutralClaim.test.ts @@ -24,6 +24,8 @@ test("the line: In <title> (<date>), on <topic>: — no speaker, no verb of sayi test("a topic label: the model's when it is a grounded noun phrase", () => { assert.deepEqual(label("the acolyte's audience score"), { label: "the acolyte's audience score", from: "model" }); assert.deepEqual(label('On "The Acolyte ratings".'), { label: "The Acolyte ratings", from: "model" }); + // Function words need no grounding. + assert.equal(label("why the acolyte has no audience").from, "model"); // A plural or an inflection of a word that is there. assert.equal(label("acolyte viewership number").from, "model"); }); diff --git a/common/lib/report/draft/tasks/neutralClaim.ts b/common/lib/report/draft/tasks/neutralClaim.ts @@ -86,7 +86,9 @@ export function attributes(text: string, hosts: readonly string[] = []): boolean } const LABEL_STOP = new Set( - "the a an of on in at to for and or with from by about its his her their this that these those is are was were be being as it into over new".split(" "), + "the a an of on in at to for and or with from by about its his her their this that these those is are was were be being as it into over new him them they she who whom what why how when where which someone something anyone has have had not no more most than then also own other".split( + " ", + ), ); const stem = (w: string) => (w.length > 5 ? w.slice(0, 5) : w.replace(/s$/, "")); const contentWords = (s: string) =>