Skip to content

Commit

Permalink
fix(dictionary): add "field" to place names
Browse files Browse the repository at this point in the history
* add field to place names

"field" is common in large baseball stadiums like wrigley field and citi
field

this will be paired with another PR for api that notices if the top two
interpretations are full street & place parses, and if so, boosts
neither

* move field to user contributed place names txt
  • Loading branch information
blackmad authored May 7, 2020
1 parent dd24aaf commit ba9eee1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions resources/pelias/dictionaries/libpostal/en/place_names.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ cathedral
stop
!dist
building
field
4 changes: 4 additions & 0 deletions test/address.usa.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
const testcase = (test, common) => {
let assert = common.assert(test)

assert('wrigley field',
[ [ { place: 'wrigley field' } ], [ { street: 'wrigley field' } ], [ { locality: 'field' } ] ],
false)

assert('Martin Luther King Jr. Blvd.', [
{ street: 'Martin Luther King Jr. Blvd.' }
])
Expand Down

0 comments on commit ba9eee1

Please sign in to comment.