Skip to content

fix(conflate): leave address words out of similar_osm name words - #1064

Open
brawer wants to merge 2 commits into
mainfrom
similar-osm-place-words-1050
Open

brawer wants to merge 2 commits into
mainfrom
similar-osm-place-words-1050

Conversation

@brawer

@brawer brawer commented Nov 27, 2026 •

Copy link
Copy Markdown
Owner

Requested by Sascha · project thread

Fixes #1050.

nearest_similar now leaves out of the shared name words those that appear in either side's address: addr:city, addr:street, addr:suburb, addr:place, and ATP's addr:street_address or addr:full. So an estate agent with official_name=Orpi Anma Gestion Immo Crosne no longer counts as similar_osm (by = name) for a BNP Paribas in Crosne, and the create is no longer held back.

  • New address_words (address values tokenized like name_words) and names_alike, which only computes the OSM feature's address words when the names share a word at all.
  • Docs: CONFLATED_PARQUET.md describes the rule.
  • Unit tests for both helpers, using the Crosne example from the issue.

cargo fmt, cargo clippy --all-targets -- -D warnings and cargo test pass (unit and integration). ### Eval

See docs/notes/2026-11-28-similar-place-words.md. Across 11 eval regions, the change adds 421 creates and removes 1, and no modify changes. Île-de-France gets the most (+176), followed by Brazil Sudeste (+97), Switzerland (+72) and Massachusetts (+37). Most of the OSM features that used to hold these creates back are unrelated places that only share the town or street. About 15 look like duplicates, all places named after their location, such as Hotel Vezia next to Motel Vezia, or BigC อ่างทอง next to บิ๊กซี อ่างทอง. Japan hardly changes (−3% of rows held back by name) because names there aren't split into words yet (#953).

https://claude.ai/code/session_01Ttfb2MZeX6bJZkZbtzPxEu


Generated by Claude Code

A name word that is in either feature's address, such as the town in
an `official_name` like `Orpi Anma Gestion Immo Crosne`, no longer
makes an OSM feature like the ATP feature for `similar_osm` with
`by = name`. Such words held back unrelated bank and optician creates
in Île-de-France.

Fixes #1050

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ttfb2MZeX6bJZkZbtzPxEu
@brawer brawer self-assigned this Nov 27, 2026
@github-actions github-actions Bot added the bug Something isn't working label Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

similar_osm: place names count as distinctive name words

2 participants