Skip to content

Commit

Permalink
feat: remove "art" as a steet suffix/type and locality (#116)
Browse files Browse the repository at this point in the history
  • Loading branch information
blackmad authored Aug 2, 2020
1 parent 172fac1 commit 697145d
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
2 changes: 2 additions & 0 deletions resources/pelias/dictionaries/libpostal/en/street_names.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# bad abbreviation for the very uncommon suffix "Artery"
!art
5 changes: 4 additions & 1 deletion resources/pelias/dictionaries/libpostal/en/street_types.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@
paku

# Rushendon Furlong, Pitstone, England
furlong
furlong

# bad abbreviation for the very uncommon suffix "Artery"
!art
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ sf
!germany
!empire
!unit
# 18 person county in texas
!art
# remove any localities which share a name with a US state
!alabama
!alaska
Expand Down
5 changes: 5 additions & 0 deletions test/venue.usa.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ const testcase = (test, common) => {
{ venue: 'Empire State Building' },
{ locality: 'NYC' }
])

// checking that "art" is not interpreted as a street suffix
assert('philadelphia museum of art', [
{ venue: 'philadelphia museum of art' }
])
}

module.exports.all = (tape, common) => {
Expand Down

0 comments on commit 697145d

Please sign in to comment.