Skip to content

fix: keep sectors after "in" out of network search geographies - #71

Merged
VolodymyrLinuxovich merged 1 commit into
mainfrom
fix/network-search-sector-in-phrases
Oct 31, 2026
Merged

VolodymyrLinuxovich merged 1 commit into
mainfrom
fix/network-search-sector-in-phrases

Conversation

@VolodymyrLinuxovich

@VolodymyrLinuxovich VolodymyrLinuxovich commented Oct 16, 2026 •

Copy link
Copy Markdown
Owner

Fixes #70

Summary

Geographies now come from every "in" and "near" phrase in the query. A phrase is skipped when "in" follows a sector word such as working or investors. Each place also stops at the next "in" or "near". So "working in climate in Berlin" gives only berlin. Climate stays a topic. "investors in fintech" gives no geography and keeps fintech as a topic.

Open PRs #25 and #33 touch the same geographies line on their own branches. This branch is based on main. A small merge conflict is expected there.

Validation

  • New test in network-search.test.ts.
  • npm test passes.
  • npm run typecheck and lint pass.

The parser took everything after the first "in" as a place. "working in climate in Berlin" gave "climate in berlin" and "investors in fintech" gave "fintech", and those words were then dropped from the topics. Read every "in" and "near" phrase, skip the ones that follow a sector word such as working or investors, and stop each place at the next preposition.

Fixes #70
@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:09am UTC

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

This branch was successfully deployed

1 active deployment
Preview — 2a66c300 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.

Network search reads sectors after "in" as geographies

1 participant