From fdecc896fa5ed1a9b9b37850c48ea416af762781 Mon Sep 17 00:00:00 2001 From: Edward Mac Gillavry Date: Wed, 23 Nov 2022 20:34:19 +0100 Subject: [PATCH] Recognise '-dreef' in street names. (#167). --- .../libpostal/nl/concatenated_suffixes_separable.txt | 1 + test/address.nld.test.js | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/resources/pelias/dictionaries/libpostal/nl/concatenated_suffixes_separable.txt b/resources/pelias/dictionaries/libpostal/nl/concatenated_suffixes_separable.txt index 0d5c9e83..b8c3f773 100644 --- a/resources/pelias/dictionaries/libpostal/nl/concatenated_suffixes_separable.txt +++ b/resources/pelias/dictionaries/libpostal/nl/concatenated_suffixes_separable.txt @@ -1,6 +1,7 @@ baan daal dijk +dreef !plain|pln. plein|pln plantsoen|plnts diff --git a/test/address.nld.test.js b/test/address.nld.test.js index 35ba1f07..989fc31b 100644 --- a/test/address.nld.test.js +++ b/test/address.nld.test.js @@ -13,6 +13,10 @@ const testcase = (test, common) => { { street: 'Bosserdijk' }, { locality: 'Hoogland' } ]) + assert('Rubicondreef, Utrecht', [ + { street: 'Rubicondreef' }, { locality: 'Utrecht' } + ]) + assert('St Ludgerusstraat, Utrecht', [ { street: 'Ludgerusstraat' }, { locality: 'Utrecht' } ])