From 9bab70909dda7af8bf82643a33a9f41e7b08eb95 Mon Sep 17 00:00:00 2001 From: Al Date: Mon, 7 Dec 2015 14:29:13 -0500 Subject: [PATCH] [numex] Always adding a version of the string without Roman numeral expansion since many times those tokens can be ambiguous --- src/libpostal.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/libpostal.c b/src/libpostal.c index affe9d67..f1b2f8eb 100644 --- a/src/libpostal.c +++ b/src/libpostal.c @@ -297,20 +297,17 @@ string_tree_t *add_string_alternatives(char *str, normalize_options_t options) { } void add_postprocessed_string(cstring_array *strings, char *str, normalize_options_t options) { - bool add_string = true; + cstring_array_add_string(strings, str); if (options.roman_numerals) { char *numex_replaced = replace_numeric_expressions(str, LATIN_LANGUAGE_CODE); if (numex_replaced != NULL) { cstring_array_add_string(strings, numex_replaced); free(numex_replaced); - add_string = false; } + } - if (add_string) { - cstring_array_add_string(strings, str); - } }