Skip to content

fix: read people search lead phrases as whole words - #77

Merged
VolodymyrLinuxovich merged 1 commit into
mainfrom
fix/people-query-phrase-words
Oct 31, 2026
Merged

VolodymyrLinuxovich merged 1 commit into
mainfrom
fix/people-query-phrase-words

Conversation

@VolodymyrLinuxovich

Copy link
Copy Markdown
Owner

Fixes #76

Summary

extractAfterPhrases in query.ts now starts its pattern with a word boundary. A lead phrase only matches as a whole word. "investors focusing on robotics" no longer gives on robotics as a technology keyword. "angels backing housing startups" no longer gives startups. A real phrase like "working on robotics" still gives robotics.

Open PR #69 also edits query.ts on its own branch. It changes other lines, so no conflict is expected.

Validation

  • New tests in people-query-phrases.test.ts. They fail on main.
  • npm test passes.
  • npm run typecheck and lint pass.

extractAfterPhrases had no word boundary before the phrase, so "using" matched inside "focusing" and "housing". "investors focusing on robotics" gave the technology keyword "on robotics".

Fixes #76
@vercel

vercel Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
largevcmodel Ready Ready Preview Oct 16, 2026 5:12am UTC

@VolodymyrLinuxovich
VolodymyrLinuxovich merged commit 6d93820 into main Oct 31, 2026
6 checks passed

This branch was successfully deployed

1 active deployment
Preview — 58cc8fad Deployed Oct 16, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

People search finds lead phrases inside other words

1 participant