From 1480381d3410551f3964a65bf982b3ca3b0ca478 Mon Sep 17 00:00:00 2001 From: DeviousStoat Date: Tue, 3 Mar 2026 16:46:23 +0100 Subject: [PATCH] Add `tract` street type --- pyap/source_US/data.py | 1 + tests/test_parser_us.py | 1 + 2 files changed, 2 insertions(+) diff --git a/pyap/source_US/data.py b/pyap/source_US/data.py index 6cd040b..d9ccf0a 100644 --- a/pyap/source_US/data.py +++ b/pyap/source_US/data.py @@ -723,6 +723,7 @@ def str_list_to_upper_lower_regex(str_list: List[str]) -> str: "Traces", "Track", "Tracks", + "Tract", "Trafficway", "Trail", "Trailer", diff --git a/tests/test_parser_us.py b/tests/test_parser_us.py index 0d78958..dc96fa0 100644 --- a/tests/test_parser_us.py +++ b/tests/test_parser_us.py @@ -519,6 +519,7 @@ def test_po_box_positive(input, expected): ("123 WHITNEY CHASE", True), ("123 Chase street", True), ("123 Chase Wimbledom St.", True), + ("82 ALBRO TRACT", True), # negative assertions ("6 95 34 75 COMPANY PHONE IS", False), (", 666 Hell ST PMB 29700", False),