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

Add place occupancy #8

Merged
merged 1 commit into from
Sep 29, 2022
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
Add place occupancy
  • Loading branch information
Thomas committed Sep 29, 2022
commit fadd717be31c89745b6f3977a18579ee980a4563
3 changes: 3 additions & 0 deletions pyap/source_US/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -827,6 +827,9 @@ def street_type_list_to_regex(street_type_list):
|
# Unit
[Uu][Nn][Ii][Tt]\
|
# Place
[Pp][Ll][Aa][Cc][Ee]\ |[Pp][Ll]\.?\
)
(?:
[A-Za-z\#\&\-\d]{1,7}
Expand Down
5 changes: 5 additions & 0 deletions tests/test_parser_us.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,11 @@ def test_building(input, expected):
("Unit 101", True),
("unit 101", True),
("#20", True),
("Place ", True),
("Pl ", True),
("PL. ", True),
("Place #1200", True),
("Pl #1200 ", True),
# negative assertions
("suite900 ", False),
("Suite#2", False),
Expand Down