[numex] add dehyphenated form when building numex table

This commit is contained in:
Al
2017-04-05 14:06:19 -04:00
parent 264866d719
commit 6219cc6378

View File

@@ -82,6 +82,13 @@ int main(int argc, char **argv) {
char *str_key = char_array_get_string(key);
trie_add(numex_table->trie, str_key, value);
if (string_contains_hyphen(str_key)) {
char *replaced = string_replace_char(str_key, '-', ' ');
trie_add(numex_table->trie, replaced, value);
free(replaced);
}
}
for (j = ordinal_indicator_index; j < ordinal_indicator_index + num_ordinal_indicators; j++) {