Skip to content

Commit

Permalink
feat(place_name): fix parsing of "Empire State Building" (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
missinglink authored Mar 17, 2020
1 parent 3a11c1b commit 452c83a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
3 changes: 2 additions & 1 deletion resources/pelias/dictionaries/libpostal/en/place_names.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
temple
cathedral
stop
!dist
!dist
building
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ sf
!deli
!us
!germany
!empire
# remove any localities which share a name with a US state
!alabama
!alaska
Expand Down Expand Up @@ -62,4 +63,4 @@ sf
#!washington
!west virginia
!wisconsin
!wyoming
!wyoming
5 changes: 5 additions & 0 deletions test/venue.usa.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ const testcase = (test, common) => {
{ place: 'Air & Space Museum' },
{ locality: 'Washington' }, { region: 'DC' }
])

assert('Empire State Building NYC', [
{ place: 'Empire State Building' },
{ locality: 'NYC' }
])
}

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

0 comments on commit 452c83a

Please sign in to comment.