is.sor 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. ^0 núll
  2. 1 einn
  3. 2 tveir
  4. 3 þrír
  5. 4 fjórir
  6. 5 fimm
  7. 6 sex
  8. 7 sjö
  9. 8 átta
  10. 9 níu
  11. 10 tíu
  12. 11 ellefu
  13. 12 tólf
  14. 13 þrettán
  15. 14 fjórtán
  16. 1([56]) $1tán
  17. 17 sautján
  18. 18 átján
  19. 19 nítján
  20. 2(\d) tuttugu[ og $1]
  21. 3(\d) þrjátíu[ og $1]
  22. 4(\d) fjörutíu[ og $1]
  23. (\d)(\d) $1tíu[ og $2]
  24. 1(\d\d) hundrað[ og $1]
  25. (\d)(\d\d) [$(cardinal-neuter $1) ]hundrað[ og $2]
  26. 1(\d{3}) þúsund[ og $1]
  27. (\d{1,3})(\d{3}) [$(cardinal-neuter $1) ]þúsund[ og $2]
  28. 1(\d{6}) ein milljón[ $1]
  29. (\d{1,3})(\d{6}) [$(cardinal-feminine $1) ]milljónir[ og $2]
  30. 1(\d{9}) einn miljarður[ $1]
  31. (\d{1,33})(\d{9}) [$1 ]miljarðar[ $2]
  32. # negative number
  33. [-−](\d+) neikvæð |$1
  34. # decimals
  35. 0[.,] kommu
  36. ([-−]?\d+)[.,] $1| kommu
  37. ([-−]?\d+[.,]\d*)(\d) $1| |$2
  38. # currency
  39. # unit/subunit singular/plural
  40. "us, (.*): (.*), (.*), (.*), (.*), (.*), (.*)" $(\2 \1) \3
  41. "up, (.*): (.*), (.*), (.*), (.*), (.*), (.*)" $(\2 \1) \4
  42. "ss, (.*): (.*), (.*), (.*), (.*), (.*), (.*)" $(\5 \1) \6
  43. "sp, (.*): (.*), (.*), (.*), (.*), (.*), (.*)" $(\5 \1) \7
  44. DKK:(\D+,.*) $(\1: cardinal, dönsk króna, dönsk króna, cardinal, aura, aura)
  45. EUR:(\D+,.*) $(\1: cardinal, evra, evra, cardinal-neuter, sent, sent)
  46. ISK:(\D+,.*) $(\1: cardinal, króna, krónur, cardinal, aura, aura)
  47. GBP:(\D+,.*) $(\1: cardinal-neuter, breskt pund, breskt pund, cardinal, penní, penní)
  48. NOK:(\D+,.*) $(\1: cardinal, norsk króna, norsk krónur, cardinal, aura, aura)
  49. SEK:(\D+,.*) $(\1: cardinal, sænsk króna, sænsk krónur, cardinal, aura, aura)
  50. USD:(\D+,.*) $(\1: cardinal, Bandaríkjadalur, Bandaríkjadalir, cardinal-neuter, sent, sent)
  51. "([A-Z]{3}) ([-−]?1)([.,]00?)?"$(\1:us, \2)
  52. "([A-Z]{3}) ([-−]?\d+)([.,]00?)?"$(\1:up, \2)
  53. "(([A-Z]{3}) [-−]?\d+)[.,](01)" $1 $(\2:ss, 1)
  54. "(([A-Z]{3}) [-−]?\d+)[.,](\d)" $1 $(\2:sp, \30)
  55. "(([A-Z]{3}) [-−]?\d+)[.,](\d\d)" $1 $(\2:sp, \3)
  56. == cardinal(-masculine)? ==
  57. (\d+) $2
  58. == cardinal-feminine ==
  59. (\d+) $(cardinal-feminine $1)
  60. (.*)einn \1ein
  61. (.*)tveir \1tvær
  62. (.*)þrír \1þrjár
  63. (.*)fjórir \1fjórar
  64. (.*) \1
  65. == cardinal-neuter ==
  66. (\d+) $(cardinal-neuter $1)
  67. (.*)einn \1eitt
  68. (.*)tveir \1tvö
  69. (.*)þrír \1þrjú
  70. (.*)fjórir \1fjögur
  71. (.*) \1
  72. == ordinal(-masculine)? ==
  73. 0
  74. 1 fyrsti
  75. 2 annar
  76. 3 þriðji
  77. 4 fjórði
  78. 5 fimmti
  79. 6 sjötti
  80. 7 sjöundi
  81. 8 áttundi
  82. 9 níundi
  83. 10 tíundi
  84. (1\d) $2di
  85. 2(\d) tuttugasti[ og $(ordinal \2)]
  86. 3(\d) þrítugasti[ og $(ordinal \2)]
  87. 4(\d) fertugasti[ og $(ordinal \2)]
  88. 8(\d) áttugasti[ og $(ordinal \2)]
  89. (\d)(\d) $2tugasti[ og $(ordinal \3)]
  90. 1(\d\d) hundraðasti[ og $(ordinal \2)]
  91. (\d)(\d\d) [$(cardinal-neuter \2)]hundraðasti[ og $(ordinal \3)]
  92. 1(\d{3}) þúsundasti[ og $(ordinal \2)]
  93. (\d{1,3})(\d{3}) [$(cardinal-neuter \2)]hundraðasti[ og $(ordinal \3)]
  94. (.*) \1
  95. == ordinal-feminine ==
  96. (.*)annar(.*) $(ordinal-feminine \1önnur\2)
  97. == ordinal-neuter ==
  98. (.*)annar(.*) $(ordinal-feminine \1annað\2)
  99. == ordinal(-feminine|-neuter)? ==
  100. (\d+) $(ordinal-feminine |$(ordinal \2))
  101. (.*)i\b(.*) $(ordinal-feminine \2a\3)
  102. (.*) \2
  103. == ordinal-number ==
  104. (\d+) \1.
  105. == help ==
  106. "" |$(1)|, |$(2)|, |$(3)|\n$(help cardinal-feminine)$(help cardinal-masculine)$(help cardinal-neuter)$(help ordinal-feminine)$(help ordinal-masculine)$(help ordinal-neuter)$(help ordinal-number)
  107. (.*) \1: |$(\1 1)|, |$(\1 2)|, |$(\1 3)|\n