Skip to content

Lookalike by name: ignore connector words like at/of (follow-up to #352) - #353

Merged
vs-githjk merged 2 commits into
mainfrom
f/lookalike-connectors
Nov 15, 2026
Merged

vs-githjk merged 2 commits into
mainfrom
f/lookalike-connectors

Conversation

@vs-githjk

Copy link
Copy Markdown
Collaborator

Real kit names such as 'District at Greenbriar' have a word under 3 letters, so the name index dropped them and #352 never fired on real data. Connector words (at, on, of, by, the, and, in) are now dropped from both the indexed names and the ad words before matching. Unchanged: at least 2 remaining words of 3+ letters, the longer-name blocker, one record per name, LIVE only. Tests in tests/test_lookalike_by_name.py (connector name matches and its lookalike host is flagged, 'The Oaks' still never matches, blocker still holds).

@vs-githjk

Copy link
Copy Markdown
Collaborator Author

Review (conductor, 05:37): PASS. 10-line change: connectors dropped from both name and ad tokens; >=2 words of >=3 letters, the longer-name blocker, unique record and LIVE-only all unchanged; red-green proven; 'The Oaks' still never matches. Merge on green.

@vs-githjk
vs-githjk merged commit 8040b77 into main Nov 15, 2026
3 checks passed
vs-githjk added a commit that referenced this pull request Nov 15, 2026
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.

1 participant