From 7828e568a7710e972e975c8f3c746ef3b1277efd Mon Sep 17 00:00:00 2001 From: Al Date: Thu, 15 Aug 2019 02:01:46 -0400 Subject: [PATCH] [fix] remove hyphens option in libpostal expansions/token normalizations --- src/normalize.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/normalize.c b/src/normalize.c index 3e218e9d..7a16bdee 100644 --- a/src/normalize.c +++ b/src/normalize.c @@ -434,7 +434,7 @@ void add_normalized_token(char_array *array, char *str, token_t token, uint64_t char_array_append(array, " "); append_char = false; } else if (is_hyphen && options & NORMALIZE_TOKEN_DELETE_HYPHENS) { - append_char = !is_hyphen_between_letter_and_number; + append_char = is_hyphen_between_letter_and_number; } if ((is_hyphen || is_full_stop) && token.type == NUMERIC && options & NORMALIZE_TOKEN_SPLIT_ALPHA_FROM_NUMERIC && last_was_letter) {