numbers_and_words 0.10.0 → 0.11.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (202) hide show
  1. checksums.yaml +6 -14
  2. data/CHANGELOG.md +264 -0
  3. data/README.rdoc +154 -19
  4. data/lib/numbers_and_words/core_ext/array.rb +4 -2
  5. data/lib/numbers_and_words/core_ext/float.rb +3 -1
  6. data/lib/numbers_and_words/core_ext/integer.rb +3 -1
  7. data/lib/numbers_and_words/core_ext.rb +2 -0
  8. data/lib/numbers_and_words/helper_classes/array_extensions/helpers.rb +26 -16
  9. data/lib/numbers_and_words/helper_classes/figures_array.rb +9 -6
  10. data/lib/numbers_and_words/helper_classes/words_array.rb +6 -6
  11. data/lib/numbers_and_words/helper_classes.rb +3 -1
  12. data/lib/numbers_and_words/i18n/initialization.rb +4 -2
  13. data/lib/numbers_and_words/i18n/locales/numbers.cs.yml +95 -0
  14. data/lib/numbers_and_words/i18n/locales/numbers.de.yml +5 -4
  15. data/lib/numbers_and_words/i18n/locales/numbers.en-GB.yml +24 -8
  16. data/lib/numbers_and_words/i18n/locales/numbers.en.yml +24 -8
  17. data/lib/numbers_and_words/i18n/locales/numbers.es.yml +102 -13
  18. data/lib/numbers_and_words/i18n/locales/numbers.et.yml +4 -4
  19. data/lib/numbers_and_words/i18n/locales/numbers.fr.yml +73 -15
  20. data/lib/numbers_and_words/i18n/locales/numbers.hu.yml +11 -8
  21. data/lib/numbers_and_words/i18n/locales/numbers.hy.yml +7 -0
  22. data/lib/numbers_and_words/i18n/locales/numbers.it.yml +3 -3
  23. data/lib/numbers_and_words/i18n/locales/numbers.ka.yml +15 -0
  24. data/lib/numbers_and_words/i18n/locales/numbers.kz.yml +7 -0
  25. data/lib/numbers_and_words/i18n/locales/numbers.lt.yml +14 -15
  26. data/lib/numbers_and_words/i18n/locales/numbers.lv.yml +5 -6
  27. data/lib/numbers_and_words/i18n/locales/numbers.nl.yml +7 -4
  28. data/lib/numbers_and_words/i18n/locales/numbers.pt-BR.yml +121 -0
  29. data/lib/numbers_and_words/i18n/locales/numbers.pt.yml +25 -0
  30. data/lib/numbers_and_words/i18n/locales/numbers.ru.yml +39 -27
  31. data/lib/numbers_and_words/i18n/locales/numbers.se.yml +3 -3
  32. data/lib/numbers_and_words/i18n/locales/numbers.tr.yml +3 -3
  33. data/lib/numbers_and_words/i18n/locales/numbers.ua.yml +39 -15
  34. data/lib/numbers_and_words/i18n/locales/numbers.vi.yml +13 -0
  35. data/lib/numbers_and_words/i18n/pluralization.rb +6 -5
  36. data/lib/numbers_and_words/i18n/plurals/cs.rb +38 -0
  37. data/lib/numbers_and_words/i18n/plurals/lt.rb +17 -11
  38. data/lib/numbers_and_words/i18n/plurals/lv.rb +6 -4
  39. data/lib/numbers_and_words/i18n/plurals/plurals.rb +11 -7
  40. data/lib/numbers_and_words/i18n/plurals/ru.rb +23 -13
  41. data/lib/numbers_and_words/i18n/plurals/ua.rb +2 -0
  42. data/lib/numbers_and_words/i18n.rb +7 -5
  43. data/lib/numbers_and_words/strategies/array_joiner/languages/base.rb +3 -1
  44. data/lib/numbers_and_words/strategies/array_joiner/languages/cs.rb +12 -0
  45. data/lib/numbers_and_words/strategies/array_joiner/languages/{en_gb.rb → en-GB.rb} +3 -1
  46. data/lib/numbers_and_words/strategies/array_joiner/languages/en.rb +2 -0
  47. data/lib/numbers_and_words/strategies/array_joiner/languages/es.rb +12 -0
  48. data/lib/numbers_and_words/strategies/array_joiner/languages/families/base.rb +7 -6
  49. data/lib/numbers_and_words/strategies/array_joiner/languages/fr.rb +12 -0
  50. data/lib/numbers_and_words/strategies/array_joiner/languages/hu.rb +2 -0
  51. data/lib/numbers_and_words/strategies/array_joiner/languages/pt-BR.rb +12 -0
  52. data/lib/numbers_and_words/strategies/array_joiner/languages/ru.rb +2 -0
  53. data/lib/numbers_and_words/strategies/array_joiner/languages/ua.rb +2 -0
  54. data/lib/numbers_and_words/strategies/array_joiner/languages/vi.rb +12 -0
  55. data/lib/numbers_and_words/strategies/array_joiner/languages.rb +11 -4
  56. data/lib/numbers_and_words/strategies/array_joiner.rb +3 -2
  57. data/lib/numbers_and_words/strategies/figures_converter/decorators/base.rb +4 -2
  58. data/lib/numbers_and_words/strategies/figures_converter/decorators/cs/base.rb +14 -0
  59. data/lib/numbers_and_words/strategies/figures_converter/decorators/cs/fractional.rb +40 -0
  60. data/lib/numbers_and_words/strategies/figures_converter/decorators/cs/integral.rb +31 -0
  61. data/lib/numbers_and_words/strategies/figures_converter/decorators/{en_gb.rb → cs.rb} +5 -3
  62. data/lib/numbers_and_words/strategies/figures_converter/decorators/en/base.rb +3 -1
  63. data/lib/numbers_and_words/strategies/figures_converter/decorators/en/fractional.rb +4 -3
  64. data/lib/numbers_and_words/strategies/figures_converter/decorators/en/integral.rb +3 -1
  65. data/lib/numbers_and_words/strategies/figures_converter/decorators/{en_gb → en-GB}/base.rb +2 -0
  66. data/lib/numbers_and_words/strategies/figures_converter/decorators/{en_gb → en-GB}/fractional.rb +2 -0
  67. data/lib/numbers_and_words/strategies/figures_converter/decorators/{en_gb → en-GB}/integral.rb +2 -0
  68. data/lib/numbers_and_words/strategies/figures_converter/decorators/en-GB.rb +5 -0
  69. data/lib/numbers_and_words/strategies/figures_converter/decorators/en.rb +2 -0
  70. data/lib/numbers_and_words/strategies/figures_converter/decorators/es/base.rb +14 -0
  71. data/lib/numbers_and_words/strategies/figures_converter/decorators/es/fractional.rb +40 -0
  72. data/lib/numbers_and_words/strategies/figures_converter/decorators/es/integral.rb +14 -0
  73. data/lib/numbers_and_words/strategies/figures_converter/decorators/es.rb +5 -0
  74. data/lib/numbers_and_words/strategies/figures_converter/decorators/fr/base.rb +14 -0
  75. data/lib/numbers_and_words/strategies/figures_converter/decorators/fr/fractional.rb +39 -0
  76. data/lib/numbers_and_words/strategies/figures_converter/decorators/fr/integral.rb +14 -0
  77. data/lib/numbers_and_words/strategies/figures_converter/decorators/fr.rb +5 -0
  78. data/lib/numbers_and_words/strategies/figures_converter/decorators/hu/base.rb +3 -1
  79. data/lib/numbers_and_words/strategies/figures_converter/decorators/hu/fractional.rb +5 -4
  80. data/lib/numbers_and_words/strategies/figures_converter/decorators/hu/integral.rb +3 -1
  81. data/lib/numbers_and_words/strategies/figures_converter/decorators/hu.rb +3 -1
  82. data/lib/numbers_and_words/strategies/figures_converter/decorators/pt-BR/base.rb +14 -0
  83. data/lib/numbers_and_words/strategies/figures_converter/decorators/pt-BR/fractional.rb +39 -0
  84. data/lib/numbers_and_words/strategies/figures_converter/decorators/pt-BR/integral.rb +31 -0
  85. data/lib/numbers_and_words/strategies/figures_converter/decorators/pt-BR.rb +5 -0
  86. data/lib/numbers_and_words/strategies/figures_converter/decorators/ru/base.rb +3 -1
  87. data/lib/numbers_and_words/strategies/figures_converter/decorators/ru/fractional.rb +4 -3
  88. data/lib/numbers_and_words/strategies/figures_converter/decorators/ru/integral.rb +3 -2
  89. data/lib/numbers_and_words/strategies/figures_converter/decorators/ru.rb +2 -0
  90. data/lib/numbers_and_words/strategies/figures_converter/decorators/ua/base.rb +3 -1
  91. data/lib/numbers_and_words/strategies/figures_converter/decorators/ua/fractional.rb +4 -3
  92. data/lib/numbers_and_words/strategies/figures_converter/decorators/ua/integral.rb +3 -2
  93. data/lib/numbers_and_words/strategies/figures_converter/decorators/ua.rb +2 -0
  94. data/lib/numbers_and_words/strategies/figures_converter/decorators/vi/base.rb +14 -0
  95. data/lib/numbers_and_words/strategies/figures_converter/decorators/vi/fractional.rb +14 -0
  96. data/lib/numbers_and_words/strategies/figures_converter/decorators/vi/integral.rb +14 -0
  97. data/lib/numbers_and_words/strategies/figures_converter/decorators/vi.rb +5 -0
  98. data/lib/numbers_and_words/strategies/figures_converter/decorators.rb +17 -10
  99. data/lib/numbers_and_words/strategies/figures_converter/languages/base.rb +6 -4
  100. data/lib/numbers_and_words/strategies/figures_converter/languages/cs.rb +53 -0
  101. data/lib/numbers_and_words/strategies/figures_converter/languages/de.rb +15 -15
  102. data/lib/numbers_and_words/strategies/figures_converter/languages/{en_gb.rb → en-GB.rb} +3 -1
  103. data/lib/numbers_and_words/strategies/figures_converter/languages/en.rb +20 -12
  104. data/lib/numbers_and_words/strategies/figures_converter/languages/es.rb +58 -17
  105. data/lib/numbers_and_words/strategies/figures_converter/languages/et.rb +3 -4
  106. data/lib/numbers_and_words/strategies/figures_converter/languages/families/base.rb +7 -5
  107. data/lib/numbers_and_words/strategies/figures_converter/languages/families/cyrillic.rb +8 -6
  108. data/lib/numbers_and_words/strategies/figures_converter/languages/families/helpers.rb +12 -14
  109. data/lib/numbers_and_words/strategies/figures_converter/languages/fr.rb +14 -14
  110. data/lib/numbers_and_words/strategies/figures_converter/languages/hu.rb +11 -11
  111. data/lib/numbers_and_words/strategies/figures_converter/languages/{families/latin.rb → hy.rb} +3 -4
  112. data/lib/numbers_and_words/strategies/figures_converter/languages/it.rb +2 -1
  113. data/lib/numbers_and_words/strategies/figures_converter/languages/ka.rb +39 -0
  114. data/lib/numbers_and_words/strategies/figures_converter/languages/kz.rb +12 -0
  115. data/lib/numbers_and_words/strategies/figures_converter/languages/lt.rb +10 -14
  116. data/lib/numbers_and_words/strategies/figures_converter/languages/lv.rb +5 -23
  117. data/lib/numbers_and_words/strategies/figures_converter/languages/nl.rb +31 -7
  118. data/lib/numbers_and_words/strategies/figures_converter/languages/pt-BR.rb +118 -0
  119. data/lib/numbers_and_words/strategies/figures_converter/languages/pt.rb +29 -0
  120. data/lib/numbers_and_words/strategies/figures_converter/languages/ru.rb +2 -0
  121. data/lib/numbers_and_words/strategies/figures_converter/languages/se.rb +2 -1
  122. data/lib/numbers_and_words/strategies/figures_converter/languages/tr.rb +19 -1
  123. data/lib/numbers_and_words/strategies/figures_converter/languages/ua.rb +2 -0
  124. data/lib/numbers_and_words/strategies/figures_converter/languages/vi.rb +100 -0
  125. data/lib/numbers_and_words/strategies/figures_converter/languages.rb +18 -14
  126. data/lib/numbers_and_words/strategies/figures_converter/options/base/gender.rb +30 -0
  127. data/lib/numbers_and_words/strategies/figures_converter/options/base/ordinal.rb +28 -0
  128. data/lib/numbers_and_words/strategies/figures_converter/options/base/remove_zero.rb +30 -0
  129. data/lib/numbers_and_words/strategies/figures_converter/options/{en_gb.rb → base.rb} +5 -4
  130. data/lib/numbers_and_words/strategies/figures_converter/options/cs/gender.rb +17 -0
  131. data/lib/numbers_and_words/strategies/figures_converter/options/cs/ordinal.rb +14 -0
  132. data/lib/numbers_and_words/strategies/figures_converter/options/cs/remove_zero.rb +14 -0
  133. data/lib/numbers_and_words/strategies/figures_converter/options/cs.rb +5 -0
  134. data/lib/numbers_and_words/strategies/figures_converter/options/en/hundreds_with_union.rb +5 -3
  135. data/lib/numbers_and_words/strategies/figures_converter/options/en/ordinal.rb +8 -14
  136. data/lib/numbers_and_words/strategies/figures_converter/options/en/pronounced.rb +60 -0
  137. data/lib/numbers_and_words/strategies/figures_converter/options/en/remove_hyphen.rb +4 -3
  138. data/lib/numbers_and_words/strategies/figures_converter/options/en/remove_zero.rb +4 -19
  139. data/lib/numbers_and_words/strategies/figures_converter/options/{en_gb → en-GB}/hundreds_with_union.rb +3 -1
  140. data/lib/numbers_and_words/strategies/figures_converter/options/{en_gb → en-GB}/ordinal.rb +3 -1
  141. data/lib/numbers_and_words/strategies/figures_converter/options/en-GB/pronounced.rb +14 -0
  142. data/lib/numbers_and_words/strategies/figures_converter/options/{en_gb → en-GB}/remove_hyphen.rb +3 -1
  143. data/lib/numbers_and_words/strategies/figures_converter/options/{en_gb → en-GB}/remove_zero.rb +3 -1
  144. data/lib/numbers_and_words/strategies/figures_converter/options/en-GB.rb +7 -0
  145. data/lib/numbers_and_words/strategies/figures_converter/options/en.rb +4 -1
  146. data/lib/numbers_and_words/strategies/figures_converter/options/es/apocopated.rb +30 -0
  147. data/lib/numbers_and_words/strategies/figures_converter/options/es/gender.rb +14 -0
  148. data/lib/numbers_and_words/strategies/figures_converter/options/es/remove_zero.rb +14 -0
  149. data/lib/numbers_and_words/strategies/figures_converter/options/es.rb +5 -0
  150. data/lib/numbers_and_words/strategies/figures_converter/options/hu/ordinal.rb +4 -50
  151. data/lib/numbers_and_words/strategies/figures_converter/options/hu.rb +2 -0
  152. data/lib/numbers_and_words/strategies/figures_converter/options/nl/tens_of_hundreds.rb +30 -0
  153. data/lib/numbers_and_words/strategies/figures_converter/options/nl.rb +3 -0
  154. data/lib/numbers_and_words/strategies/figures_converter/options/pt-BR/gender.rb +14 -0
  155. data/lib/numbers_and_words/strategies/figures_converter/options/pt-BR/ordinal.rb +14 -0
  156. data/lib/numbers_and_words/strategies/figures_converter/options/pt-BR/remove_zero.rb +14 -0
  157. data/lib/numbers_and_words/strategies/figures_converter/options/pt-BR.rb +5 -0
  158. data/lib/numbers_and_words/strategies/figures_converter/options/ru/gender.rb +4 -18
  159. data/lib/numbers_and_words/strategies/figures_converter/options/ru.rb +2 -0
  160. data/lib/numbers_and_words/strategies/figures_converter/options/ua/gender.rb +4 -18
  161. data/lib/numbers_and_words/strategies/figures_converter/options/ua.rb +2 -0
  162. data/lib/numbers_and_words/strategies/figures_converter/options.rb +26 -9
  163. data/lib/numbers_and_words/strategies/figures_converter.rb +5 -4
  164. data/lib/numbers_and_words/strategies.rb +3 -1
  165. data/lib/numbers_and_words/translations/base.rb +4 -2
  166. data/lib/numbers_and_words/translations/cs.rb +48 -0
  167. data/lib/numbers_and_words/translations/de.rb +10 -8
  168. data/lib/numbers_and_words/translations/en-GB.rb +10 -0
  169. data/lib/numbers_and_words/translations/en.rb +2 -0
  170. data/lib/numbers_and_words/translations/es.rb +21 -20
  171. data/lib/numbers_and_words/translations/et.rb +4 -11
  172. data/lib/numbers_and_words/translations/extensions/fraction_significance.rb +9 -8
  173. data/lib/numbers_and_words/translations/families/base.rb +13 -11
  174. data/lib/numbers_and_words/translations/families/cyrillic.rb +9 -11
  175. data/lib/numbers_and_words/translations/families/latin.rb +7 -7
  176. data/lib/numbers_and_words/translations/fr.rb +19 -14
  177. data/lib/numbers_and_words/translations/hu.rb +6 -13
  178. data/lib/numbers_and_words/translations/hy.rb +21 -0
  179. data/lib/numbers_and_words/translations/it.rb +5 -3
  180. data/lib/numbers_and_words/translations/ka.rb +64 -0
  181. data/lib/numbers_and_words/translations/kz.rb +9 -0
  182. data/lib/numbers_and_words/translations/lt.rb +4 -12
  183. data/lib/numbers_and_words/translations/lv.rb +4 -12
  184. data/lib/numbers_and_words/translations/nl.rb +16 -4
  185. data/lib/numbers_and_words/translations/pt-BR.rb +77 -0
  186. data/lib/numbers_and_words/translations/pt.rb +20 -0
  187. data/lib/numbers_and_words/translations/ru.rb +2 -17
  188. data/lib/numbers_and_words/translations/se.rb +4 -2
  189. data/lib/numbers_and_words/translations/tr.rb +8 -2
  190. data/lib/numbers_and_words/translations/ua.rb +2 -13
  191. data/lib/numbers_and_words/translations/vi.rb +24 -0
  192. data/lib/numbers_and_words/translations.rb +11 -2
  193. data/lib/numbers_and_words/version.rb +3 -1
  194. data/lib/numbers_and_words/wrappers/float.rb +22 -16
  195. data/lib/numbers_and_words/wrappers/integer.rb +6 -4
  196. data/lib/numbers_and_words/wrappers.rb +3 -1
  197. data/lib/numbers_and_words.rb +2 -3
  198. metadata +108 -58
  199. data/lib/numbers_and_words/helper_classes/array_extensions/validations.rb +0 -19
  200. data/lib/numbers_and_words/i18n/plurals/es.rb +0 -11
  201. data/lib/numbers_and_words/i18n/plurals/fr.rb +0 -15
  202. data/lib/numbers_and_words/translations/en_gb.rb +0 -6
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module NumbersAndWords
2
4
  module ArrayExtensions
3
5
  module Helpers
@@ -12,31 +14,44 @@ module NumbersAndWords
12
14
 
13
15
  def capacity_count
14
16
  count = capacity_length / FIGURES_IN_CAPACITY
15
- 0 == count ? nil : count
17
+ count.zero? ? nil : count
16
18
  end
17
19
 
18
- def figures_array_in_capacity capacity
20
+ def figures_array_in_capacity(capacity)
19
21
  self[capacity * FIGURES_IN_CAPACITY, FIGURES_IN_CAPACITY]
20
22
  end
21
23
 
22
- def number_in_capacity capacity
24
+ def number_in_capacity(capacity)
23
25
  figures_array_in_capacity(capacity).reverse.join.to_i
24
26
  end
25
27
 
26
- def is_a_thousand_capacity? capacity
27
- THOUSAND_CAPACITY == capacity
28
+ def number_under_capacity(capacity)
29
+ figures_array_under_capacity(capacity).reverse.join.to_i
30
+ end
31
+
32
+ def opaque?(capacity)
33
+ figures_under = figures_array_under_capacity(capacity)
34
+ figures_under.count(0) == figures_under.length
35
+ end
36
+
37
+ def figures_array_under_capacity(capacity)
38
+ self[0..(capacity * FIGURES_IN_CAPACITY) - ONES_SHIFT]
28
39
  end
29
40
 
30
41
  def ones
31
- self[0].to_i if 0 < self[0].to_i
42
+ self[0].to_i if self[0].to_i.positive?
43
+ end
44
+
45
+ def only_ones
46
+ ones if !tens && !hundreds
32
47
  end
33
48
 
34
49
  def teens
35
- tens_with_ones if 1 == tens
50
+ tens_with_ones if tens == 1
36
51
  end
37
52
 
38
53
  def tens
39
- self[1].to_i if self[1] && 0 < self[1].to_i
54
+ self[1].to_i if self[1].to_i.positive?
40
55
  end
41
56
 
42
57
  def tens_with_ones
@@ -44,7 +59,7 @@ module NumbersAndWords
44
59
  end
45
60
 
46
61
  def hundreds
47
- self[2].to_i if 0 < self[2].to_i
62
+ self[2].to_i if self[2].to_i.positive?
48
63
  end
49
64
 
50
65
  def round_hundred?
@@ -55,10 +70,6 @@ module NumbersAndWords
55
70
  capacity_length % FIGURES_IN_CAPACITY
56
71
  end
57
72
 
58
- def fraction_index
59
- index '.'
60
- end
61
-
62
73
  def fraction_capacity
63
74
  [fraction_capacity_count, fraction_sub_capacity]
64
75
  end
@@ -72,14 +83,13 @@ module NumbersAndWords
72
83
  end
73
84
 
74
85
  def ordinal_index
75
- index { |figure| figure != 0 }
86
+ index(&:positive?)
76
87
  end
77
88
 
78
89
  def ordinal_capacity
79
90
  count = ordinal_index / FIGURES_IN_CAPACITY
80
- 0 == count ? nil : count
91
+ count.zero? ? nil : count
81
92
  end
82
93
  end
83
94
  end
84
95
  end
85
-
@@ -1,13 +1,12 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'numbers_and_words/helper_classes/array_extensions/helpers'
2
- require 'numbers_and_words/helper_classes/array_extensions/validations'
3
4
 
4
5
  module NumbersAndWords
5
6
  class FiguresArray < Array
6
7
  include ArrayExtensions::Helpers
7
- include ArrayExtensions::Validations
8
8
 
9
- def to_words options = {}
10
- validate_figure_array!
9
+ def to_words(options = {})
11
10
  local_language { Strategies.figures_converter.new(self, options).run }
12
11
  end
13
12
 
@@ -15,8 +14,12 @@ module NumbersAndWords
15
14
  super.to_figures
16
15
  end
17
16
 
18
- def local_language
19
- ::I18n.with_locale(I18n.local_language) { yield }
17
+ def figures_array_in_capacity(capacity)
18
+ super.to_figures
19
+ end
20
+
21
+ def local_language(&block)
22
+ ::I18n.with_locale(I18n.local_language, &block)
20
23
  end
21
24
  end
22
25
  end
@@ -1,15 +1,15 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'numbers_and_words/helper_classes/array_extensions/helpers'
2
- require 'numbers_and_words/helper_classes/array_extensions/validations'
3
4
 
4
5
  module NumbersAndWords
5
6
  class WordsArray < Array
6
-
7
- def join options = {}
8
- local_language { Strategies.array_joiner.new(self.to_a, options).run }
7
+ def join(options = {})
8
+ local_language { Strategies.array_joiner.new(to_a, options).run }
9
9
  end
10
10
 
11
- def local_language
12
- ::I18n.with_locale(I18n.local_language) { yield }
11
+ def local_language(&block)
12
+ ::I18n.with_locale(I18n.local_language, &block)
13
13
  end
14
14
  end
15
15
  end
@@ -1,2 +1,4 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'numbers_and_words/helper_classes/figures_array'
2
- require 'numbers_and_words/helper_classes/words_array'
4
+ require 'numbers_and_words/helper_classes/words_array'
@@ -1,10 +1,12 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module NumbersAndWords
2
4
  module I18n
3
5
  module Initialization
4
- extend self
6
+ module_function
5
7
 
6
8
  def init
7
- I18n.locale_files.each { |locale_file| ::I18n.load_path << locale_file}
9
+ I18n.locale_files.each { |locale_file| ::I18n.load_path << locale_file }
8
10
  NumbersAndWords::I18n::Pluralization.init
9
11
  end
10
12
  end
@@ -0,0 +1,95 @@
1
+ cs:
2
+ numbers:
3
+ ones:
4
+ male: [nula, jeden, dva, tři, čtyři, pět, šest, sedm, osm, devět]
5
+ female: [nula, jedna, dvě, tři, čtyři, pět, šest, sedm, osm, devět]
6
+ neuter: [nula, jedno, dvě, tři, čtyři, pět, šest, sedm, osm, devět]
7
+ teens: [_, jedenáct, dvanáct, třináct, čtrnáct, patnáct, šestnáct, sedmnáct, osmnáct, devatenáct]
8
+ tens: [_, deset, dvacet, třicet, čtyřicet, padesát, šedesát, sedmdesát, osmdesát, devadesát]
9
+ hundreds: [_, jedno sto, dvě stě, tři sta, čtyři sta, pět set, šest set, sedm set, osm set, devět set]
10
+ mega: [_, thousands, millions, billions, trillions, quadrillions, quintillions, sextillions, septillions, octillions]
11
+ thousands:
12
+ one: tisíc
13
+ few: tisíce
14
+ many: tisíc
15
+ millions:
16
+ one: milión
17
+ few: milióny
18
+ many: miliónů
19
+ billions:
20
+ one: miliarda
21
+ few: miliardy
22
+ many: miliard
23
+ trillions:
24
+ one: bilion
25
+ few: biliony
26
+ many: bilionů
27
+ quadrillions:
28
+ one: biliarda
29
+ few: biliardy
30
+ many: biliard
31
+ quintillion:
32
+ one: trilion
33
+ few: triliony
34
+ many: trilionů
35
+ sextillions:
36
+ one: triliarda
37
+ few: triliardy
38
+ many: triliard
39
+ septillions:
40
+ one: kvadrilion
41
+ few: kvadriliony
42
+ many: kvadrilionů
43
+ octillions:
44
+ one: kvadriliarda
45
+ few: kvadriliardy
46
+ many: kvadriliard
47
+ ordinal:
48
+ ones:
49
+ male: [nultý, první, druhý, třetí, čtvrtý, pátý, šestý, sedmý, osmý, devátý]
50
+ female: [nultá, první, druhá, třetí, čtvrtá, pátá, šestá, sedmá, osmá, devátá]
51
+ neuter: [nulté, první, druhé, třetí, čtvrté, páté, šesté, sedmé, osmé, deváté]
52
+ teens:
53
+ male: [_, jedenáctý, dvanáctý, třináctý, čtrnáctý, patnáctý, šestnáctý, sedmnáctý, osmnáctý, devatenáctý]
54
+ female: [_, jedenáctá, dvanáctá, třináctá, čtrnáctá, patnáctá, šestnáctá, sedmnáctá, osmnáctá, devatenáctá]
55
+ neuter: [_, jedenácté, dvanácté, třinácté, čtrnácté, patnácté, šestnácté, sedmnácté, osmnácté, devatenácté]
56
+ tens:
57
+ male: [_, desátý, dvacátý, třicátý, čtyřicátý, padesátý, šedesátý, sedmdesátý, osmdesátý, devadesátý]
58
+ female: [_, desátá, dvacátá, třicátá, čtyřicátá, padesátá, šedesátá, sedmdesátá, osmdesátá, devadesátá]
59
+ neuter: [_, desáté, dvacáté, třicáté, čtyřicáté, padesáté, šedesáté, sedmdesáté, osmdesáté, devadesáté]
60
+ hundreds:
61
+ male: [_, stý, dvoustý, třístý, čtyřstý, pětistý, šestistý, sedmistý, osmistý, devítistý]
62
+ female: [_, stá, dvoustá, třístá, čtyřstá, pětistá, šestistá, sedmistá, osmistá, devítistá]
63
+ neuter: [_, sté, dvousté, třísté, čtyřsté, pětisté, šestisté, sedmisté, osmisté, devítisté]
64
+ integral: celých
65
+ micro: [_, tenths, hundredths, thousandths, millionths, billionths, trillionths]
66
+ tenths:
67
+ one: desetina
68
+ few: desetiny
69
+ many: desetin
70
+ hundredths:
71
+ one: setina
72
+ few: setiny
73
+ many: setin
74
+ thousandths:
75
+ one: tisícina
76
+ few: tisíciny
77
+ many: tisícin
78
+ millionths:
79
+ one: milióntina
80
+ few: milióntiny
81
+ many: milióntin
82
+ billionths:
83
+ one: miliardtina
84
+ few: miliardtiny
85
+ many: miliardtin
86
+ trillionths:
87
+ one: bilióntina
88
+ few: bilióntiny
89
+ many: bilióntin
90
+ micro_separator: ''
91
+ micro_prefix:
92
+ tens: deseti
93
+ hundreds: sto
94
+ union: ''
95
+ union: ''
@@ -4,10 +4,10 @@ de:
4
4
  default: ['null', eins, zwei, drei, vier, fünf, sechs, sieben, acht, neun]
5
5
  combine: ['null', ein, zwei, drei, vier, fünf, sechs, sieben, acht, neun]
6
6
  gender: ['null', eine, zwei, drei, vier, fünf, sechs, sieben, acht, neun]
7
- teens: [zehn, elf, zwölf, dreizehn, vierzehn, fünfzehn, sechzehn, siebzehn, achtzehn, neunzehn]
8
- tens: [null, zehn, zwanzig, dreißig, vierzig, fünfzig, sechzig, siebzig, achtzig, neunzig]
9
- mega: [ones, thousands, millions, billions, trillions, quadrillions, quintillion, sextillions, septillions, octillions, nonillions, decillions]
7
+ teens: [_, elf, zwölf, dreizehn, vierzehn, fünfzehn, sechzehn, siebzehn, achtzehn, neunzehn]
8
+ tens: [_, zehn, zwanzig, dreißig, vierzig, fünfzig, sechzig, siebzig, achtzig, neunzig]
10
9
  hundreds: hundert
10
+ mega: [_, thousands, millions, billions, trillions, quadrillions, quintillion, sextillions, septillions, octillions, nonillions, decillions]
11
11
  thousands:
12
12
  one: tausend
13
13
  other: tausend
@@ -40,4 +40,5 @@ de:
40
40
  other: Quintillionen
41
41
  decillions:
42
42
  one: Quintilliarde
43
- other: Quintilliarden
43
+ other: Quintilliarden
44
+ union: und
@@ -1,18 +1,17 @@
1
1
  en-GB:
2
2
  numbers:
3
3
  ones: [zero, one, two, three, four, five, six, seven, eight, nine]
4
- teens: [ten, eleven, twelve, thirteen, fourteen, fifteen, sixteen, seventeen, eighteen, nineteen]
5
- tens: [zero, ten, twenty, thirty, forty, fifty, sixty, seventy, eighty, ninety]
4
+ teens: [_, eleven, twelve, thirteen, fourteen, fifteen, sixteen, seventeen, eighteen, nineteen]
5
+ tens: [_, ten, twenty, thirty, forty, fifty, sixty, seventy, eighty, ninety]
6
6
  hundreds: hundred
7
- mega: [ones, thousand, million, billion, trillion, quadrillion, quintillion, sextillion, septillion, octillion, nonillion, decillion]
7
+ mega: [_, thousand, million, billion, trillion, quadrillion, quintillion, sextillion, septillion, octillion, nonillion, decillion, undecillion, duodecillion, tredecillion, quattuordecillion]
8
8
  ordinal:
9
9
  ones: [zeroth, first, second, third, fourth, fifth, sixth, seventh, eighth, ninth]
10
10
  teens: [tenth, eleventh, twelfth, thirteenth, fourteenth, fifteenth, sixteenth, seventeenth, eighteenth, nineteenth]
11
- tens: [zeroth, tenth, twentieth, thirtieth, fortieth, fiftieth, sixtieth, seventieth, eightieth, ninetieth]
11
+ tens: [_, tenth, twentieth, thirtieth, fortieth, fiftieth, sixtieth, seventieth, eightieth, ninetieth]
12
12
  hundreds: hundredth
13
- mega: [zeroth, thousandth, millionth, billionth, trillionth, quadrillionth, quintillionth, sextillionth, septillionth, octillionth, nonillionth, decillionth]
14
- union_separator: point
15
- micro: [_, tenths, hundredths, thousandths, millionths, billionths, trillionths, quadrillionths, quintillionths, sextillionths, septillionths, octillionths, nonillionths, decillionths]
13
+ mega: [_, thousandth, millionth, billionth, trillionth, quadrillionth, quintillionth, sextillionth, septillionth, octillionth, nonillionth, decillionth, undecillionth, duodecillionth, tredecillionth, quattuordecillionth]
14
+ micro: [_, tenths, hundredths, thousandths, millionths, billionths, trillionths, quadrillionths, quintillionths, sextillionths, septillionths, octillionths, nonillionths, decillionths, undecillionths, duodecillionths, tredecillionths, quattuordecillionths]
16
15
  tenths:
17
16
  one: tenth
18
17
  other: tenths
@@ -52,4 +51,21 @@ en-GB:
52
51
  decillionths:
53
52
  one: decillionth
54
53
  other: decillionths
55
- union: and
54
+ undecillionths:
55
+ one: undecillionth
56
+ other: undecillionths
57
+ duodecillionths:
58
+ one: duodecillionth
59
+ other: duodecillionths
60
+ tredecillionths:
61
+ one: tredecillionth
62
+ other: tredecillionths
63
+ quattuordecillionths:
64
+ one: quattuordecillionth
65
+ other: quattuordecillionths
66
+ micro_separator: point
67
+ micro_prefix:
68
+ tens: ten
69
+ hundreds: hundred
70
+ union: '-'
71
+ union: and
@@ -1,18 +1,17 @@
1
1
  en:
2
2
  numbers:
3
3
  ones: [zero, one, two, three, four, five, six, seven, eight, nine]
4
- teens: [ten, eleven, twelve, thirteen, fourteen, fifteen, sixteen, seventeen, eighteen, nineteen]
5
- tens: [zero, ten, twenty, thirty, forty, fifty, sixty, seventy, eighty, ninety]
4
+ teens: [_, eleven, twelve, thirteen, fourteen, fifteen, sixteen, seventeen, eighteen, nineteen]
5
+ tens: [_, ten, twenty, thirty, forty, fifty, sixty, seventy, eighty, ninety]
6
6
  hundreds: hundred
7
- mega: [ones, thousand, million, billion, trillion, quadrillion, quintillion, sextillion, septillion, octillion, nonillion, decillion]
7
+ mega: [_, thousand, million, billion, trillion, quadrillion, quintillion, sextillion, septillion, octillion, nonillion, decillion, undecillion, duodecillion, tredecillion, quattuordecillion]
8
8
  ordinal:
9
9
  ones: [zeroth, first, second, third, fourth, fifth, sixth, seventh, eighth, ninth]
10
10
  teens: [tenth, eleventh, twelfth, thirteenth, fourteenth, fifteenth, sixteenth, seventeenth, eighteenth, nineteenth]
11
- tens: [zeroth, tenth, twentieth, thirtieth, fortieth, fiftieth, sixtieth, seventieth, eightieth, ninetieth]
11
+ tens: [_, tenth, twentieth, thirtieth, fortieth, fiftieth, sixtieth, seventieth, eightieth, ninetieth]
12
12
  hundreds: hundredth
13
- mega: [zeroth, thousandth, millionth, billionth, trillionth, quadrillionth, quintillionth, sextillionth, septillionth, octillionth, nonillionth, decillionth]
14
- union_separator: and
15
- micro: [_, tenths, hundredths, thousandths, millionths, billionths, trillionths, quadrillionths, quintillionths, sextillionths, septillionths, octillionths, nonillionths, decillionths]
13
+ mega: [_, thousandth, millionth, billionth, trillionth, quadrillionth, quintillionth, sextillionth, septillionth, octillionth, nonillionth, decillionth, undecillionth, duodecillionth, tredecillionth, quattuordecillionth]
14
+ micro: [_, tenths, hundredths, thousandths, millionths, billionths, trillionths, quadrillionths, quintillionths, sextillionths, septillionths, octillionths, nonillionths, decillionths, undecillionths, duodecillionths, tredecillionths, quattuordecillionths]
16
15
  tenths:
17
16
  one: tenth
18
17
  other: tenths
@@ -52,4 +51,21 @@ en:
52
51
  decillionths:
53
52
  one: decillionth
54
53
  other: decillionths
55
- union: and
54
+ undecillionths:
55
+ one: undecillionth
56
+ other: undecillionths
57
+ duodecillionths:
58
+ one: duodecillionth
59
+ other: duodecillionths
60
+ tredecillionths:
61
+ one: tredecillionth
62
+ other: tredecillionths
63
+ quattuordecillionths:
64
+ one: quattuordecillionth
65
+ other: quattuordecillionths
66
+ micro_separator: and
67
+ micro_prefix:
68
+ tens: ten
69
+ hundreds: hundred
70
+ union: '-'
71
+ union: and
@@ -1,15 +1,104 @@
1
1
  es:
2
2
  numbers:
3
- ones: [cero, uno, dos, tres, cuatro, cinco, seis, siete, ocho, nueve]
4
- one: un
5
-
6
- teens: [diez, once, doce, trece, catorce, quince, dieciseis, diecisiete, dieciocho, diecinueve]
7
- tens: [cero, diez, veinti, treinta, cuarenta, cincuenta, sesenta, setenta, ochenta, noventa]
8
- twenty: veinte
9
-
10
- hundreds: [ciento, doscientos, trescientos, cuatrocientos, quinientos, seiscientos, setecientos, ochocientos, novecientos]
11
- one_hundred: cien
12
-
13
- mega: [ones, mil, millón, millardo, billón, billardo, trillón, trillardo, quadrillón, quadrillardo, quintillón, quintillardo]
14
- megas: [ones, mil, millones, millardos, billones, billardos, trillones, trillardos, quadrillones, quadrillardos, quintillones, quintillardos]
15
-
3
+ ones:
4
+ apocopated: un
5
+ male: [cero, uno, dos, tres, cuatro, cinco, seis, siete, ocho, nueve]
6
+ female: [cero, una, dos, tres, cuatro, cinco, seis, siete, ocho, nueve]
7
+ teens: [_, once, doce, trece, catorce, quince, dieciséis, diecisiete, dieciocho, diecinueve]
8
+ tens: [_, diez, veinte, treinta, cuarenta, cincuenta, sesenta, setenta, ochenta, noventa]
9
+ twenties:
10
+ apocopated: veintiún
11
+ male: [_, veintiuno, veintidós, veintitrés, veinticuatro, veinticinco, veintiséis, veintisiete, veintiocho, veintinueve]
12
+ female: [_, veintiuna, veintidós, veintitrés, veinticuatro, veinticinco, veintiséis, veintisiete, veintiocho, veintinueve]
13
+ hundreds:
14
+ apocopated: cien
15
+ male: [_, ciento, doscientos, trescientos, cuatrocientos, quinientos, seiscientos, setecientos, ochocientos, novecientos]
16
+ female: [_, ciento, doscientas, trescientas, cuatrocientas, quinientas, seiscientas, setecientas, ochocientas, novecientas]
17
+ mega: [_, thousands, millions, billions, trillions, quadrillions, quintillions, sextillions, septillions, octillions, nonillions, decillions, undecillions, duodecillions, tredecillions, quattuordecillions]
18
+ thousands: mil
19
+ millions:
20
+ one: millón
21
+ other: millones
22
+ billions: mil millones
23
+ trillions:
24
+ one: billón
25
+ other: billones
26
+ quadrillions: mil billones
27
+ quintillions:
28
+ one: trillón
29
+ other: trillones
30
+ sextillions: mil trillones
31
+ septillions:
32
+ one: cuatrillón
33
+ other: cuatrillones
34
+ octillions: mil cuatrillones
35
+ nonillions:
36
+ one: quintillón
37
+ other: quintillones
38
+ decillions: mil quintillones
39
+ undecillions:
40
+ one: sextillón
41
+ other: sextillones
42
+ duodecillions: mil sextillones
43
+ tredecillions:
44
+ one: septillón
45
+ other: septillones
46
+ quattuordecillions: mil septillones
47
+ micro: [_, tenths, hundredths, thousandths, millionths, billionths, trillionths, quadrillionths, quintillionths, sextillionths, septillionths, octillionths, nonillionths, decillionths, undecillionths, duodecillionths, tredecillionths, quattuordecillionths]
48
+ tenths:
49
+ one: décima
50
+ other: décimas
51
+ hundredths:
52
+ one: centésima
53
+ other: centésimas
54
+ thousandths:
55
+ one: milésima
56
+ other: milésimas
57
+ millionths:
58
+ one: millonésima
59
+ other: millonésimas
60
+ billionths:
61
+ one: milmillonésima
62
+ other: milmillonésimas
63
+ trillionths:
64
+ one: billonésima
65
+ other: billonésimas
66
+ quadrillionths:
67
+ one: milbillonésima
68
+ other: milbillonésimas
69
+ quintillionths:
70
+ one: trillonésima
71
+ other: trillonésimas
72
+ sextillionths:
73
+ one: miltrillonésima
74
+ other: miltrillonésimas
75
+ septillionths:
76
+ one: cuatrillonésima
77
+ other: cuatrillonésimas
78
+ octillionths:
79
+ one: milcuatrillonésima
80
+ other: milcuatrillonésimas
81
+ nonillionths:
82
+ one: quintillonésima
83
+ other: quintillonésimas
84
+ decillionths:
85
+ one: milquintillonésima
86
+ other: milquintillonésimas
87
+ undecillionths:
88
+ one: sextillonésima
89
+ other: sextillonésimas
90
+ duodecillionths:
91
+ one: milsextillonésima
92
+ other: milsextillonésimas
93
+ tredecillionths:
94
+ one: septillonésima
95
+ other: septillonésimas
96
+ quattuordecillionths:
97
+ one: milseptillonésima
98
+ other: milseptillonésimas
99
+ micro_separator: con
100
+ micro_prefix:
101
+ tens: diez
102
+ hundreds: cien
103
+ union: ''
104
+ union: y
@@ -1,10 +1,10 @@
1
1
  et:
2
2
  numbers:
3
- ones: ["null", üks, kaks, kolm, neli, viis, kuus, seitse, kaheksa, üheksa]
4
- teens: [kümme, üksteist, kaksteist, kolmteist, neliteist, viisteist, kuusteist, seitseteist, kaheksateist, üheksateist]
5
- tens: ["null", kümme, kakskümmend, kolmkümmend, nelikümmend, viiskümmend, kuuskümmend, seitsekümmend, kaheksakümmend, üheksakümmend]
6
- mega: [ones, thousands, millions, billions, trillions, quadrillions, quintillion, sextillions, septillions, octillions, nonillions, decillions]
3
+ ones: ['null', üks, kaks, kolm, neli, viis, kuus, seitse, kaheksa, üheksa]
4
+ teens: [_, üksteist, kaksteist, kolmteist, neliteist, viisteist, kuusteist, seitseteist, kaheksateist, üheksateist]
5
+ tens: [_, kümme, kakskümmend, kolmkümmend, nelikümmend, viiskümmend, kuuskümmend, seitsekümmend, kaheksakümmend, üheksakümmend]
7
6
  hundreds: sada
7
+ mega: [_, thousands, millions, billions, trillions, quadrillions, quintillion, sextillions, septillions, octillions, nonillions, decillions]
8
8
  thousands: tuhat
9
9
  millions:
10
10
  one: miljon
@@ -1,43 +1,101 @@
1
1
  fr:
2
2
  numbers:
3
3
  ones: [zéro, un, deux, trois, quatre, cinq, six, sept, huit, neuf]
4
- teens: [dix, onze, douze, treize, quatorze, quinze, seize, dix-sept, dix-huit, dix-neuf]
5
- tens: [zéro, dix, vingt, trente, quarante, cinquante, soixante, soixante-dix, quatre-vingt, quatre-vingt-dix]
6
- mega: [ones, thousands, millions, billions, trillions, quadrillions, quintillion, sextillions, septillions, octillions, nonillions, decillions]
4
+ teens: [_, onze, douze, treize, quatorze, quinze, seize, dix-sept, dix-huit, dix-neuf]
5
+ tens: [_, dix, vingt, trente, quarante, cinquante, soixante, soixante-dix, quatre-vingt, quatre-vingt-dix]
7
6
  eighty: quatre-vingts
8
7
  hundreds:
9
8
  one: cent
10
- many: cents
9
+ other: cents
10
+ mega: [_, thousands, millions, billions, trillions, quadrillions, quintillion, sextillions, septillions, octillions, nonillions, decillions]
11
11
  thousands:
12
12
  one: mille
13
- many: mille
13
+ other: mille
14
14
  millions:
15
15
  one: million
16
- many: millions
16
+ other: millions
17
17
  billions:
18
18
  one: milliard
19
- many: milliards
19
+ other: milliards
20
20
  trillions:
21
21
  one: billion
22
- many: billions
22
+ other: billions
23
23
  quadrillions:
24
24
  one: billiard
25
- many: billiards
25
+ other: billiards
26
26
  quintillions:
27
27
  one: trillion
28
- many: trillions
28
+ other: trillions
29
29
  sextillions:
30
30
  one: trilliard
31
- many: trilliards
31
+ other: trilliards
32
32
  septillions:
33
33
  one: quadrillion
34
- many: quadrillions
34
+ other: quadrillions
35
35
  octillions:
36
36
  one: quadrilliard
37
- many: quadrilliards
37
+ other: quadrilliards
38
38
  nonillions:
39
39
  one: quintillion
40
- many: quintillions
40
+ other: quintillions
41
41
  decillions:
42
42
  one: quintilliard
43
- many: quintilliards
43
+ other: quintilliards
44
+ micro: [_, tenths, hundredths, thousandths, millionths, billionths, trillionths, quadrillionths, quintillionths, sextillionths, septillionths, octillionths, nonillionths, decillionths, undecillionths, duodecillionths, tredecillionths, quattuordecillionths]
45
+ tenths:
46
+ one: dixième
47
+ other: dixièmes
48
+ hundredths:
49
+ one: centième
50
+ other: centièmes
51
+ thousandths:
52
+ one: millième
53
+ other: millièmes
54
+ millionths:
55
+ one: millionième
56
+ other: millionièmes
57
+ billionths:
58
+ one: milliardième
59
+ other: milliardièmes
60
+ trillionths:
61
+ one: billionième
62
+ other: billionièmes
63
+ quadrillionths:
64
+ one: billiardième
65
+ other: billiardièmes
66
+ quintillionths:
67
+ one: trillionième
68
+ other: trillionièmes
69
+ sextillionths:
70
+ one: trilliardième
71
+ other: trilliardièmes
72
+ septillionths:
73
+ one: quadrillionième
74
+ other: quadrillionièmes
75
+ octillionths:
76
+ one: quadrilliardième
77
+ other: quadrilliardièmes
78
+ nonillionths:
79
+ one: quintillionième
80
+ other: quintillionièmes
81
+ decillionths:
82
+ one: quintilliardième
83
+ other: quintilliardièmes
84
+ undecillionths:
85
+ one: sextillionième
86
+ other: sextillionièmes
87
+ duodecillionths:
88
+ one: sextilliardième
89
+ other: sextilliardièmes
90
+ tredecillionths:
91
+ one: septillionième
92
+ other: septillionièmes
93
+ quattuordecillionths:
94
+ one: septilliardième
95
+ other: septilliardièmes
96
+ micro_separator: et
97
+ micro_prefix:
98
+ tens: dix
99
+ hundreds: cent
100
+ union: '-'
101
+ union: et
@@ -1,17 +1,20 @@
1
1
  hu:
2
2
  numbers:
3
3
  ones: [nulla, egy, kettő, három, négy, öt, hat, hét, nyolc, kilenc]
4
- ones_with_tens: [nulla, egy, kettő, három, négy, öt, hat, hét, nyolc, kilenc]
5
- tens: [nulla, tíz, húsz, harminc, negyven, ötven, hatvan, hetven, nyolcvan, kilencven]
6
- tens_with_ones: [nulla, tizen, huszon, harminc, negyven, ötven, hatvan, hetven, nyolcvan, kilencven]
4
+ ones_with_tens: [_, egy, kettő, három, négy, öt, hat, hét, nyolc, kilenc]
5
+ tens: [_, tíz, húsz, harminc, negyven, ötven, hatvan, hetven, nyolcvan, kilencven]
6
+ tens_with_ones: [_, tizen, huszon, harminc, negyven, ötven, hatvan, hetven, nyolcvan, kilencven]
7
7
  hundreds: száz
8
- mega: [egy, ezer, millió, milliárd, billió, billiárd, trillió, trilliárd, kvadrillió, kvadrilliárd, kvintillió, kvintilliárd]
9
- union_separator: egész
10
- union: egész
8
+ mega: [_, ezer, millió, milliárd, billió, billiárd, trillió, trilliárd, kvadrillió, kvadrilliárd, kvintillió, kvintilliárd]
11
9
  ordinal:
12
10
  ones: [nulladik, első, második, harmadik, negyedik, ötödik, hatodik, hetedik, nyolcadik, kilencedik]
13
11
  ones_with_tens: [nulladik, egyedik, kettedik, harmadik, negyedik, ötödik, hatodik, hetedik, nyolcadik, kilencedik]
14
- tens: [nulladik, tizedik, huszadik, harmincadik, negyvenedik, ötvenedik, hatvanadik, hetvenedik, nyolcvanadik, kilencvenedik]
12
+ tens: [_, tizedik, huszadik, harmincadik, negyvenedik, ötvenedik, hatvanadik, hetvenedik, nyolcvanadik, kilencvenedik]
15
13
  hundreds: századik
16
- mega: [nulladik, ezredik, milliomodik, milliárdodik, billiomodik, billiárdodik, trilliomodik, trilliárdodik, kvadrilliomodik, kvadrilliárdodik, kvintilliomodik, kvintilliárdodik]
14
+ mega: [_, ezredik, milliomodik, milliárdodik, billiomodik, billiárdodik, trilliomodik, trilliárdodik, kvadrilliomodik, kvadrilliárdodik, kvintilliomodik, kvintilliárdodik]
17
15
  micro: [_, tized, század, ezred, milliomod, milliárdod, billiomod, billiárdod, trilliomod, trilliárdod, kvadrilliomod, kvadrilliárdod, kvintilliomod, kvintilliárdod]
16
+ micro_separator: egész
17
+ micro_prefix:
18
+ tens: tíz
19
+ hundreds: száz
20
+ union: ''