Reply to post

Hot![FAQ]Pronunciation of Years: E.G.: 1954 as Nineteen Fifty Four

Author
gece
User
  • Total Posts : 0
  • Reward points: 0
  • Joined: 2020/12/09 03:32:57
  • Status: offline
2020/12/09 04:46:51 (permalink)

Pronunciation of Years: E.G.: 1954 as Nineteen Fifty Four

Hi All, 
That's my first message: Many thanks for the app and the forum! 
A simple RegEx rule to have 4 digit numbers pronounced the usual way: E.G.: 1954 Not as "One thousand nine hundred fifty four" (which rather annoyed me) but as "nineteen fifty four." 
 
I'm sure there are already much more elaborate ways to do that, with dates, for instance. Yet, my initial search here did not find one; thus, just in case this simple one may be helpful for some folks: 
This makes numbers/ years from 1100 to 1999 pronounced the usual way...
 
Pattern: ([1][1-9])([0-9][0-9]) 
Replace: $1 $2
 
 
post edited by gece - 2020/12/09 04:50:21

3 Replies Related Threads

    Admin
    Administrator
    • Total Posts : 275
    • Reward points: 0
    • Joined: 2010/11/22 00:00:00
    • Location: USA
    • Status: offline
    Re: Pronunciation of Years: E.G.: 1954 as Nineteen Fifty Four 2020/12/09 05:07:37 (permalink)
    Thank you for posting this! I mark this message as FAQ and pin so that it appears among other frequently asked questions, first, before all others. Of course the rule could be extended to 2000s as well, but it seems OK to hear "two thousand nineteen" instead of "twenty nineteen".
     
    Happy reading and listening!
     
    Greg
    gece
    User
    • Total Posts : 0
    • Reward points: 0
    • Joined: 2020/12/09 03:32:57
    • Status: offline
    Re: Pronunciation of Years: E.G.: 1954 as Nineteen Fifty Four 2020/12/09 05:17:52 (permalink)
    Glad that this simple one turns out to be useful! 
    Same here, 2000s sounded fine to me.* 
    Thank you!
     
    *Surely, as you said already, we can change the pattern a little bit to include the 2000s: 
    ([1-2][0-9])([0-9][0-9]) 


    (This comprises the years/ numbers 1000 to 2999)
    post edited by gece - 2020/12/09 23:51:35
    tonybrix
    User
    • Total Posts : 0
    • Reward points: 0
    • Joined: 2017/02/20 11:34:49
    • Status: offline
    Re: Pronunciation of Years: E.G.: 1954 as Nineteen Fifty Four 2020/12/11 11:56:38 (permalink)
    If you still want to hear "two thousand and nine" instead of "twenty oh nine" you can add a negative look ahead
    \b(?![1-2]00[0-9])([1-2][0-9])([0-9][0-9])\b
    Jump to:
    © 2021 APG vNext Commercial Version 5.1