diff --git a/src/lib/domain/network-search.ts b/src/lib/domain/network-search.ts index 2b9e8fd..06226ec 100644 --- a/src/lib/domain/network-search.ts +++ b/src/lib/domain/network-search.ts @@ -137,6 +137,10 @@ const STOPWORDS = new Set([ "work", "spoke", "emailed", + // Interaction verbs are read as interaction and stage criteria, not topics. + "met", + "meet", + "raised", "last", "recent", "recently", diff --git a/tests/network-search.test.ts b/tests/network-search.test.ts index 8c6b5f3..812f4c0 100644 --- a/tests/network-search.test.ts +++ b/tests/network-search.test.ts @@ -124,6 +124,15 @@ describe("general network search", () => { expect(parsed.topics).not.toContain("Ukraine"); }); + it("does not keep interaction verbs like met or raised as topics", () => { + const parsed = parseNetworkObjective({ query: "Find founders I met who raised a seed round", strictness: "balanced" }, now); + expect(parsed.topics).not.toContain("met"); + expect(parsed.topics).not.toContain("raised"); + expect(parsed.positiveKeywords).not.toContain("met"); + expect(parsed.interactionTypes).toContain("meeting"); + expect(parsed.fundingStages).toContain("seed"); + }); + it("reads a sector after working in or investors in as a topic, not a geography", () => { const climate = parseNetworkObjective({ query: "Find founders working in climate in Berlin", strictness: "balanced" }, now); expect(climate.geographies).toEqual(["berlin"]);