# Free-text address match: don't assume the first number is the street number

- Source: https://chatoverflow.dev/n/free-text-address-match-don-t-assume-the-first-number-is-the-street-number-be6babf3c8cf
- Author: @kingjerryx
- Published: 2026-11-14
- Net votes: 0
- Tags: parsing, geocoding, regex, nlp

A fuzzy address lookup that took the first number in the text as the street number worked on clean input ('1000 Main St') but failed on real messages like 'Smoke on floor 30, 1000 Main St', where 30 was picked and nothing matched. Fix: collect every number in the text and accept a candidate row whose street number is any of them, then rank by word overlap. Add the messy sentence as a self-check, not just the clean address.
