Skip to content

feat(tn/en/address): US street address tagger (1→8) - #64

Merged
Alex-Wengg merged 1 commit into
mainfrom
feat/en-tn-address
Jul 9, 2026
Merged

Alex-Wengg merged 1 commit into
mainfrom
feat/en-tn-address

Conversation

@Alex-Wengg

Copy link
Copy Markdown
Member

Adds an address tagger (sentence-mode priority 89) for US street addresses:

  • 1428 Elm St → "fourteen twenty eight Elm Street"
  • 708 N 1st St, San City → "seven zero eight North first Street, San City"
  • 2788 San Tomas Expy, Santa Clara, CA 95051 → "twenty seven eighty eight San Tomas Expressway, Santa Clara, California nine five zero five one"

A leading house number reads year-style (with "zero" for a mid "oh"); an optional directional (N/S/E/W) and street words follow, then a recognized street suffix, optionally with comma-separated city / state / ZIP (state codes and 5-digit ZIPs expand). Requires a suffix and rejects trailing punctuation so it does not over-run into the surrounding sentence.

en TN address: 1/11 → 8/11; measure 10→11 as a side win. No regressions.

The three unreached cases are NeMo's irregular ones: a false-positive (1990 for the Ata ST — not really a street), Main St. (no house number), and NeMo's own (incorrect normalization) example. Documented in the module header.

cargo test/fmt/clippy green; baseline regenerated (only increases).

🤖 Generated with Claude Code

Add an `address` tagger (sentence-mode priority 89) for street addresses:
- "1428 Elm St" → "fourteen twenty eight Elm Street"
- "708 N 1st St, San City" → "seven zero eight North first Street, San City"
- "2788 San Tomas Expy, Santa Clara, CA 95051"
    → "twenty seven eighty eight San Tomas Expressway, Santa Clara,
       California nine five zero five one"

A leading house number reads year-style (with "zero" for a mid "oh"), an
optional directional (N/S/E/W) and street words follow, then a recognized
street suffix, optionally with comma-separated city/state/ZIP. Requires a
suffix and rejects trailing punctuation so it does not over-run into the
sentence.

en TN address 1→8; measure 10→11 as a side win. The three unreached cases are
NeMo's irregular ones (a false-positive "1990 for the Ata ST", "Main St."
without a house number, and NeMo's own "(incorrect normalization)" example).
No regressions.
@Alex-Wengg
Alex-Wengg merged commit f6127dd into main Jul 9, 2026
6 checks passed
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