Skip to content

fix: match network search criteria as whole words in candidate text - #31

Merged
VolodymyrLinuxovich merged 3 commits into
mainfrom
fix/network-search-word-match
Oct 31, 2026
Merged

VolodymyrLinuxovich merged 3 commits into
mainfrom
fix/network-search-word-match

Conversation

@VolodymyrLinuxovich

Copy link
Copy Markdown
Owner

Fixes #30

Summary

  • containsAny now matches each variant as a whole word, with an optional plural "s" or "es", instead of text.includes. "partner" no longer matches "partnerships" and "us" no longer matches "business".
  • tokenVariants only strips plural endings from words longer than 3 letters, so "us" is not turned into "u".

Validation

  • New regression test in tests/network-search.test.ts: for "Find investors in the us", a Berlin partnerships lead is not returned and a US VC partner still matches role and geography. It fails without the fix.
  • npx tsc --noEmit, eslint on the changed files, npx vitest run (176 tests) pass.

@vercel

vercel Bot commented Oct 4, 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 Nov 1, 2026 12:04am UTC

containsAny used substring matching and stripped the s from "us", so
"partner" matched "partnerships" and "us" matched any text with a u.

Fixes #30
@VolodymyrLinuxovich
VolodymyrLinuxovich merged commit 58586fa into main Oct 31, 2026
5 of 6 checks passed

This branch was successfully deployed

1 active deployment
Preview — 59f4d50d Deployed Nov 1, 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.

Network search matches roles and geographies inside other words in candidate text

1 participant