question

PKR avatar image
PKR asked

Ordinal Numbers

I've looked around for this type of problem but haven't been able to find anything - if this ends up being a duplicate thread, I apologize and would appreciate it if someone can point me to the original. I'm running into problems with ordinal numbers (first, second, third, etc) - it seems that it's captured as '1st', '2nd', '3rd', etc but Alexa apparently doesn't know how to pronounce those correctly. '1st' is spoken as 'one stop' and so on - is anyone aware of a way to capture them to that they're just the word? I've been using a custom data type that only lists individual words but somewhere along the line it's being converted to abbreviations. I'd rather not have to do something hacky like a big case/switch to convert them, but nothing I've tried has worked. If anyone has any suggestions I'd love to hear them. Thanks!
alexa skills kitdebugging
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

jjaquinta avatar image
jjaquinta answered
I just invested in a big-old utility routine that converts to and from cardinal or ordinal numbers. I work in Java so having libraries of stuff is comparatively easier than in, say, a nodejs Lambda function. For playback, I would recheck. I just tried 1st, 2nd, 3rd and they were pronounced as expected.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Steve A avatar image
Steve A answered
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

PKR avatar image
PKR answered
Sweet, thanks Steven!
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.