From c29557c16bcbc0d74ecc54f4580231c51e2d8a3c Mon Sep 17 00:00:00 2001 From: Al Date: Mon, 8 Jan 2018 19:03:50 -0500 Subject: [PATCH] [expand] adding another check in root expansions, making sure we don't ignore the unmodified ambiguous phrase --- src/expand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/expand.c b/src/expand.c index e17256b7..dc184bce 100644 --- a/src/expand.c +++ b/src/expand.c @@ -1142,7 +1142,7 @@ string_tree_t *add_string_alternatives_phrase_option(char *str, libpostal_normal log_debug("current_phrase_have_ambiguous && have_non_phrase_tokens\n"); log_debug("current_phrase_ignorable = %d\n", current_phrase_ignorable); - } else if (!is_valid_for_components) { + } else if (!is_valid_for_components && !is_ambiguous) { log_debug("!is_valid_for_components\n"); current_phrase_ignorable = current_phrase_have_ignorable; log_debug("current_phrase_ignorable = %d\n", current_phrase_ignorable);