diff --git a/semantica/normalize/number_normalizer.py b/semantica/normalize/number_normalizer.py index f7876b7c..29911cb9 100644 --- a/semantica/normalize/number_normalizer.py +++ b/semantica/normalize/number_normalizer.py @@ -562,6 +562,11 @@ def __init__(self, **config): "SEK", "NOK", "DKK", + "RUB", + "KRW", + "ILS", + "NGN", + "PKR", ] self.logger.debug("Currency normalizer initialized") @@ -606,13 +611,15 @@ def normalize_currency( # Check for currency code if not currency_code: for code in self.currency_codes: - if code in currency_input.upper(): + match = re.search( + rf"(?