Skip to content

Commit 94eae1b

Browse files
committed
feat(parish): do not consider "parish" as a venue designation
1 parent 90481c5 commit 94eae1b

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

resources/pelias/dictionaries/libpostal/en/place_names.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ cathedral
33
stop
44
!dist
55
building
6-
field
6+
field
7+
!parish

test/address.usa.test.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,12 @@ const testcase = (test, common) => {
279279
{ housenumber: '24' }, { street: 'West Broadway' },
280280
{ locality: 'Manhattan' }
281281
])
282+
283+
// These solutions aren't perfect but the cases exist to
284+
// ensure that 'parish' isnt being interpreted as a venue.
285+
// https://github.com/pelias/pelias/issues/912
286+
assert('Jefferson Parish', [{ locality: 'Jefferson' }])
287+
assert('Mills County', [{ locality: 'Mills' }])
282288
}
283289

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

0 commit comments

Comments
 (0)