From 14a1efea7dd25daf92374245cfc969f29127e19e Mon Sep 17 00:00:00 2001 From: Peter Johnson Date: Thu, 6 Jun 2019 15:33:46 +0200 Subject: [PATCH] fix: add broadway to list of invalid locality endings (#43) --- classifier/WhosOnFirstClassifier.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classifier/WhosOnFirstClassifier.js b/classifier/WhosOnFirstClassifier.js index 06086f4d..7df57863 100644 --- a/classifier/WhosOnFirstClassifier.js +++ b/classifier/WhosOnFirstClassifier.js @@ -69,7 +69,7 @@ class WhosOnFirstClassifier extends PhraseClassifier { // placetype specific modifications if (placetype === 'locality') { // remove locality names that sound like streets - let remove = ['avenue', 'lane', 'terrace', 'street', 'road', 'crescent', 'furlong'] + let remove = ['avenue', 'lane', 'terrace', 'street', 'road', 'crescent', 'furlong', 'broadway'] this.tokens.locality.forEach(token => { let split = token.split(/\s/) let lastWord = split[split.length - 1]