From 40d7c021785c5cbfe548ad34da96a7d75aed9d27 Mon Sep 17 00:00:00 2001 From: Edward Mac Gillavry Date: Sat, 30 Jan 2021 15:04:44 +0100 Subject: [PATCH] Prevent 'St' as a suffix in NL streetnames. Add Jr and Sr. Addressing #126. --- .../pelias/dictionaries/libpostal/nl/personal_suffixes.txt | 4 ++++ test/address.nld.test.js | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 resources/pelias/dictionaries/libpostal/nl/personal_suffixes.txt diff --git a/resources/pelias/dictionaries/libpostal/nl/personal_suffixes.txt b/resources/pelias/dictionaries/libpostal/nl/personal_suffixes.txt new file mode 100644 index 00000000..37f65038 --- /dev/null +++ b/resources/pelias/dictionaries/libpostal/nl/personal_suffixes.txt @@ -0,0 +1,4 @@ +junior|jr|jnr +senior|sr|snr +# st is not a personal suffix in Dutch +!st \ No newline at end of file diff --git a/test/address.nld.test.js b/test/address.nld.test.js index 8cf3d401..8657f844 100644 --- a/test/address.nld.test.js +++ b/test/address.nld.test.js @@ -14,7 +14,7 @@ const testcase = (test, common) => { ]) assert('St Ludgerusstraat, Utrecht', [ - { street: 'St Ludgerusstraat' }, { locality: 'Utrecht' } + { street: 'Ludgerusstraat' }, { locality: 'Utrecht' } ]) assert('Lange Groenendaal, Gouda', [