Repository navigation
fix(parser): respect hostname and path boundaries - #38
Merged
Merged
Conversation
Prevent unrelated hostnames such as netflix.com from being classified as Twitter. Index hostname and path rules with explicit Google Images aliases so existing source data is recognized while preserving hostname priority and search terms.
This was referenced Oct 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Unrelated hosts such as
netflix.comandnotgoogle.comwere classified as Twitter or Google because domain matching ignored DNS label boundaries.Match complete hostname labels through an indexed lookup, with the most specific hostname winning. Within each hostname, prefer matching path rules on whole path segments. This also activates existing path-specific sources and adds 195 explicit Google Images
wwwaliases while preserving Gmail/Gemini priority, search terms, and internal-referral behavior.Closes #35.
Validation
Includes a patch changeset for 1.1.1. Some matching URLs now report Google Images, Google Product Search or Bing Images instead of their generic source; Inbox.com search URLs now report the search medium rather than email.
Implementation: Claude Opus 5.5 via Claude Code and GPT-6.1-Sol via Codex in T3 Code; reviews by Claude Opus 5.5 and GPT-6.1-Sol.