Converts words that represent a currency into a standard ISO 4217 alphabetic currency code and a number. Amazon Lex recognizes currencies, it does not convert from one currency to another.
Amazon Lex recognizes the following currencies in these English and Spanish locales: English (en-US, en-GB, en-AU, en-IN, en-ZA), Spanish (es-419, es-ES, es-US).
For more information, see Currency codes - ISO 4217
The currency represented is structured as follows: {Unit} {Amount}
-
{Unit} refers to the specific currency unit (e.g., USD).
-
{Amount} denotes the monetary value, formatted to two decimal places (e.g., 300.00).
Examples (all examples below are using the en-US locale; different locales may yield different results):
-
"3USD": USD 3.00
-
"USD300": USD 300.00
-
"3 dimes" : USD 0.30
-
"$1.56": USD 1.56
-
"5c": USD 0.05
-
"1 dollar": USD 1.00
-
"five fifteen": USD 515.00
-
“five dollars fifteen cents”: USD 5.15
-
"5 usd and 1/2": USD 5.50