Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Pk as street type #61

Merged
merged 1 commit into from
Oct 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pyap/source_US/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -572,6 +572,7 @@ def str_list_to_upper_lower_regex(str_list: List[str]) -> str:
"Pikes",
"Pine",
"Pines",
"Pk",
"Pkway",
"Pkwy",
"Pkwys",
Expand Down
2 changes: 2 additions & 0 deletions tests/test_parser_us.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ def test_post_direction(input, expected):
"input,expected",
[
# positive assertions
("PK", True),
("Street", True),
("St.", True),
("Blvd.", True),
Expand Down Expand Up @@ -497,6 +498,7 @@ def test_full_street_positive(input, expected):
"input,expected",
[
# positive assertions
("2222 WASHINGTON PK SUITE 401 BRIDGEVILLE, PA 11111", True),
("1234 Avenue N, Rosenberg, Texas 77777", True),
("One Baylor Plaza MS: BCM204\nHouston TX 77030-3411", True),
("ONE ADP DRIVE\nMS CORP 003\nAUGUSTA, GA 30909", True),
Expand Down
Loading