de.sor 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. ^0$ null
  2. 1$ eins
  3. 1 ein
  4. 2 zwei
  5. 3 drei
  6. 4 vier
  7. 5 fünf
  8. 6 sechs
  9. 7 sieben
  10. 8 acht
  11. 9 neun
  12. 10 zehn
  13. 11 elf
  14. 12 zwölf
  15. 16 sechzehn
  16. 17 siebzehn
  17. 1(\d) $1zehn
  18. 2(\d) [$1und]zwanzig
  19. 3(\d) [$1und]dreissig # [:de-CH:] [:de-LI:]
  20. 3(\d) [$1und]dreißig
  21. 6(\d) [$1und]sechzig
  22. 7(\d) [$1und]siebzig
  23. (\d)(\d) [$2und]$1zig
  24. (\d)(\d\d) $1hundert$2
  25. (\d{1,3})(\d{3}) $1tausend$2
  26. 1(\d{6}) eine Million[ $1]
  27. (\d{1,3})(\d{6}) $1 Millionen[ $2]
  28. 1(\d{9}) eine Milliarde[ $1]
  29. (\d{1,3})(\d{9}) $1 Milliarden[ $2]
  30. 1(\d{12}) eine Billion[ $1]
  31. (\d{1,3})(\d{12}) $1 Billionen[ $2]
  32. 1(\d{15}) eine Billiarde[ $1]
  33. (\d{1,3})(\d{15}) $1 Billiarden[ $2]
  34. 1(\d{18}) eine Trillion[ $1]
  35. (\d{1,3})(\d{18}) $1 Trillionen[ $2]
  36. 1(\d{21}) eine Trilliarde[ $1]
  37. (\d{1,3})(\d{21}) $1 Trilliarden[ $2]
  38. # negative number
  39. [-−](\d+) minus |$1
  40. # decimals
  41. "([-−]?\d+)[.,]" $1| Komma
  42. "([-−]?\d+[.,]\d*)(\d)" $1| |$2
  43. # currency
  44. # unit/subunit singular/plural
  45. us:([^,]*),([^,]*),([^,]*),([^,]*) \1
  46. up:([^,]*),([^,]*),([^,]*),([^,]*) \2
  47. ss:([^,]*),([^,]*),([^,]*),([^,]*) \3
  48. sp:([^,]*),([^,]*),([^,]*),([^,]*) \4
  49. CHF:(\D+) $(\1: Schweizer Franken, Schweizer Franken, Rappen, Rappen)
  50. CNY:(\D+) $(\1: Yuan, Yuan, Fen, Fen)
  51. EUR:(\D+) $(\1: Euro, Euro, Cent, Cent)
  52. GBP:(\D+) $(\1: Pfund Sterling, Pfund Sterling, Penny, Pence)
  53. USD:(\D+) $(\1: US-Dollar, US-Dollar, Cent, Cents)
  54. "JPY ([-−]?\d+([.,]\d+)?)" $1 Yen
  55. "([A-Z]{3}) ([-−]?1)([.,]00?)?" $2$(\1:us)
  56. "([A-Z]{3}) ([-−]?\d+)([.,]00?)?" $2$(\1:up)
  57. "(CNY [-−]?\d+)[.,]10?" $1 $2 Jiao
  58. "(CNY [-−]?\d+)[.,](\d)0?" $1 $2 Jiao
  59. "(CNY [-−]?\d+[.,]\d)1" $1 $2 Fen
  60. "(CNY [-−]?\d+[.,]\d)(\d)" $1 $2 Fen
  61. "(([A-Z]{3}) [-−]?\d+)[.,](01)" $1 und $(1)$(\2:ss)
  62. "(([A-Z]{3}) [-−]?\d+)[.,](\d)" $1 und $(\30)$(\2:sp)
  63. "(([A-Z]{3}) [-−]?\d+)[.,](\d\d)" $1 und $3$(\2:sp)
  64. == ordinal ==
  65. ([-−]?[024569]) $1te
  66. ([-−]?\d*0[24569]) $1te
  67. ([-−]?\d*1\d) $1te
  68. ([-−]?\d+) $(ordinal $1)
  69. (.*)eins \1erste
  70. (.*)drei \1dritte
  71. (.*)sieben \1siebte
  72. (.*)acht \1achte
  73. "(.*)eine Milli(on|ard)e?" \1einmilli\2ste
  74. "(.*)eine Billi(on|ard)e?" \1einbilli\2ste
  75. "(.*)eine Trilli(on|ard)e?" \1eintrilli\2ste
  76. "(.*) Milli(on|ard)en" \1milli\2ste
  77. "(.*) Billi(on|ard)en" \1billi\2ste
  78. "(.*) Trilli(on|ard)en" \1trilli\2ste
  79. (.*) \1ste
  80. == ordinal-number ==
  81. (\d+) \1.
  82. == year ==
  83. (10)([0-9][0-9]) tausend$2
  84. (1[1-9])([0-9][0-9]) $1hundert$2
  85. (.*) $1
  86. == help ==
  87. "" |$(1)|, |$(2)|, |$(3)|\n$(help ordinal)$(help ordinal-number)
  88. (ordinal(-number)?) \1: |$(\1 1)|, |$(\1 2)|, |$(\1 3)|\n