Debian Codegraph @

data/mr.sor

raw
1 # mr.sor for - MARATHI मराठी Indian Language (mr-IN)
2 # In many Indian languages including MARATHI, rules of number reading (from 0 up to number 100) are complex and inconsistent.
3 # e.g often a number is read first with units place & then ten's place. - e.g 34 read as " चौतीस " where " चौ " stands for 4 (units place) and then तीस for 30 (ten's place) which is inverse with the number reading logic in ENGLISH (where it is read as Thirty Four)
4 # Pronunciations of numbers changes and follows virtually no logic - e.g. 54 read as " चौपन्न " where ten's place 50 is read as पन्न but only No. 50 would be read as पन्नास !
5 # when units place number is 9, the number is read with the reference to the NEXT number e.g. 39 is read as एकोणचाळीस where " एकोण " stands for 9 (units place) and then चाळीस with reference to 40 (the NEXT number) which is inverse with the number reading logic in ENGLISH (where it is read as Thirty Nine - reference of previous ten's place)
6 # Reading of same units place but different ten's place is vastly different - e.g. 27 सत्तावीस , 47 सत्तेचाळीस , 67 सदुसष्ट , 77 सत्त्याहत्तर . Here same units place 7 has been read differently as सत्ता , सत्ते , सदु , सत्त्या ... very difficult to frame any logic !
7 # Therefore we have hard coded numbers from 0 to 100 with Marathi translations.
8 # Number reading after Hundred's place is very similar to English logic ... hence no problem in coding for further Marathi numbers
9 # --------------------------------------
10 # Number List in English , word in MARATHI
11 # - Ankur Joshi , [email protected]
12 #
13
14 ^0 शून्य
15 1 एक
16 2 दोन
17 3 तीन
18 4 चार
19 5 पाच
20 6 सहा
21 7 सात
22 8 आठ
23 9 नऊ
24 10 दहा
25 11 अकरा
26 12 बारा
27 13 तेरा
28 14 चौदा
29 15 पंधरा
30 16 सोळा
31 17 सतरा
32 18 अठरा
33 19 एकोणीस
34 20 वीस
35 21 एकवीस
36 22 बावीस
37 23 तेवीस
38 24 चोवीस
39 25 पंचवीस
40 26 सव्वीस
41 27 सत्तावीस
42 28 अठ्ठावीस
43 29 एकोणतीस
44 30 तीस
45 31 एकतीस
46 32 बत्तीस
47 33 तेहतीस
48 34 चौतीस
49 35 पस्तीस
50 36 छत्तीस
51 37 सदतीस
52 38 अडतीस
53 39 एकोणचाळीस
54 40 चाळीस
55 41 एक्केचाळीस
56 42 बेचाळीस
57 43 त्रेचाळीस
58 44 चव्वेचाळीस
59 45 पंचेचाळीस
60 46 सेहेचाळीस
61 47 सत्तेचाळीस
62 48 अठ्ठेचाळीस
63 49 एकोणपन्नास
64 50 पन्नास
65 51 एकावन्न
66 52 बावन्न
67 53 त्रेपन्न
68 54 चौपन्न
69 55 पंचावन्न
70 56 छप्पन्न
71 57 सत्तावन्न
72 58 अठ्ठावन्न
73 59 एकोणसाठ
74 60 साठ
75 61 एकसष्ट
76 62 बासष्ट
77 63 त्रेसष्ट
78 64 चौसष्ट
79 65 पासष्ट
80 66 सहासष्ट
81 67 सदुसष्ट
82 68 अडुसष्ट
83 69 एकोणसत्तर
84 70 सत्तर
85 71 एकाहत्तर
86 72 बाहत्तर
87 73 त्र्याहत्तर
88 74 चौऱ्याहत्तर
89 75 पंचाहत्तर
90 76 शाहत्तर
91 77 सत्त्याहत्तर
92 78 अठ्ठ्याहत्तर
93 79 एकोणऐंशी
94 80 ऐंशी
95 81 एक्याऐंशी
96 82 ब्याऐंशी
97 83 त्र्याऐंशी
98 84 चौऱ्याऐंशी
99 85 पंचाऐंशी
100 86 शहाऐंशी
101 87 सत्त्याऐंशी
102 88 अठ्ठ्याऐंशी
103 89 एकोणनव्वद
104 90 नव्वद
105 91 एक्याण्णव
106 92 ब्याण्णव
107 93 त्र्याण्णव
108 94 चौऱ्याण्णव
109 95 पंचाण्णव
110 96 शहाण्णव
111 97 सत्त्याण्णव
112 98 अठ्ठ्याण्णव
113 99 नव्याण्णव
114 100 शंभर
115
116 # ------------------------
117
118 # separator function
119 :0+ # एक हजार
120 :0*\d?\d " आणि " # एक हजार आणि पाच
121 :\d+ ", " # एक कोटी, एक लाख, एक हजार दोनशेएक्केचाळीस
122
123 # ------------------------
124
125 (\d)(\d\d) $1शे[ $2] # default: एकशे एक Note - The intentional space before $ in [ $2] . This is done to eliminate Zero error after 100
126 (\d{1,2})(\d\d\d) $1 हजार[ $2] # दहा हजार दोनशे
127 (\d{1,2})(\d{5}) $1 लाख$(:\2)$2 # 5 zero after number thus its a LAKH [ 5th power of 10 is LAKH thus expression (\d{5}) , after this next is CRORE which is 7th power i.e. diff of 2 powers thus expression (\d{1,2}) . Foww this henceforth if in future needs to adjust Name of decimal places ]
128 (\d{1,2})(\d{7}) $1 कोटी$(:\2)$2 # 7 zero after number thus its a CRORE
129 (\d{1,1})(\d{9}) $1 अब्ज$(:\2)$2 # 9 zero after number thus its a ABJA (equivalant to a BILLION)
130 (\d{1,1})(\d{10}) $1 खर्व$(:\2)$2 # 10 zero after number thus its a KHARVA
131 (\d{1,1})(\d{11}) $1 निखर्व$(:\2)$2 # 11 zero after number thus its a NIKHARVA
132 (\d{1,1})(\d{12}) $1 महापद्म$(:\2)$2 # 12 zero after number thus its a MAHAPADMA (equivalant to a TRILLION)
133 (\d{1,1})(\d{13}) $1 शंकू$(:\2)$2 # 1३ zero after number thus its a SHANKU
134 (\d{1,1})(\d{14}) $1 जलधि$(:\2)$2 # 14 zero after number thus its a JALADHI
135 (\d{1,1})(\d{15}) $1 अन्त्य$(:\2)$2 # 15 zero after number thus its a ANTYA (equivalant to a QUADRILLION)
136 (\d{1,1})(\d{16}) $1 मध्य$(:\2)$2 # 16 zero after number thus its a MADHYA
137 (\d{1,50})(\d{17}) $1 परार्ध$(:\2)$2 # 17 zero after number thus its a PARARDH. Practically unlimited numbers are sumed um in Parardh.
138
139 ### Above nameing for decimal places is with reference to work by BHASKARACHARYA (1150 AD) from book LILAVATI , SHLOKA (Verse) no 11 & 12 which is -->
140 ### एक दशशत सहस्त्र अयुत लक्ष प्रयुत कोट्य: क्रमश: |
141 ### अर्बुदम् अब्जम् खर्व निखर्व महापद्म शंकव: तस्मात्: || 11 ||
142 ### जलधिंच अन्त्यम् मध्यम् परार्धम् इति दशगुणोत्तरम् संज्ञा: |
143 ### संख्याया: स्थानानां व्यवहारार्थम् कृता: पूर्वै: || 12 ||
144 ###
145 ### Verse is translated as -->
146 ### Positions of the digits from right to left are unit, ten, hundred, thousand, ten thousand, hundred thousand (lakh), million, ten million (Crore), hundred million, billion (abja), Kharva, Nikharva, Mahapadma, Sanku, Jaladhi, Antya, Madhya, Parardha. The value of each digit on the left is ten times that on the right.
147 ### Although for practical purpose this verse goes up to parardha (17th power of 10), there are terms for numbers up to 140th power of 10 in Sanskrit.
148 ### In todays practice wordings अयुत and प्रयुत are not used and if used are replaced by दशसहस्त्र and दशलक्ष / दशलाख respectively (Not used here)
149 ###
150
151 # ------------------------
152
153 # negative number
154
155 [-−](\d+) उणे |$1
156
157 # ------------------------
158
159 # decimals
160
161 0[.,] शून्य दशांश
162 ([-−]?\d+)[.,] $1| दशांश
163
164 "([-−]?\d+[.,])([^0]\d)" $1| |$2 # e.g. एकशे वीस दशांश नऊ
165 "([-−]?\d+[.,])(0)(0)(\d)" $1| |$2 |$3 |$4 # e.g. सदुसष्ठ दशांश शून्य शून्य नऊ
166 "([-−]?\d+[.,])(0)(\d\d)" $1| |$2 |$3 # e.g. एकोणनव्वद दशांश शून्य एकोणनव्वद
167 "([-−]?\d+[.,])(\d\d\d)" $1| |$2 # e.g. तेवीस दशांश पाचशे सदुसष्ठ , upto 3 places after decimal, decimals read in hundreds
168 "([-−]?\d+[.,])(\d)(\d)(\d)(\d)" $1| |$2 |$3 |$4 |$5 # e.g. चव्वेचाळीस दशांश पाच सात दोन पाच
169 "([-−]?\d+[.,]\d*)(\d)" $1| |$2
170
171 # ------------------------
172 # currency
173 # unit/subunit singular/plural
174
175 us:([^,]*),([^,]*),([^,]*),([^,]*) \1
176 up:([^,]*),([^,]*),([^,]*),([^,]*) \2
177 ss:([^,]*),([^,]*),([^,]*),([^,]*) \3
178 sp:([^,]*),([^,]*),([^,]*),([^,]*) \4
179
180 AED:(\D+) $(\1: अमीराती दिऱ्हाम, अमीराती दिऱ्हाम, फिल्स्, फिल्स्)
181 AUD:(\D+) $(\1: ऑस्ट्रेलिअन डॉलर, ऑस्ट्रेलिअन डॉलर्स, सेंट, सेंटस्)
182 BGN:(\D+) $(\1: lev, leva, stotinka, stotinki)
183 BWP:(\D+) $(\1: pula, pula, thebe, thebe)
184 CAD:(\D+) $(\1: कॅनेडीअन डॉलर, कॅनेडीअन डॉलर्स, सेंट, सेंटस्)
185 CHF:(\D+) $(\1: स्विस् फ्रॅंक, स्विस् फ्रॅंकस्, सेंटीम, सेंटीमस्)
186 CNY:(\D+) $(\1: चायनीज युआन, चायनीज युआन, फेन, फेन)
187 CZK:(\D+) $(\1: Czech koruna, Czech koruny, halér, halére)
188 EEK:(\D+) $(\1: kroon, kroonid, sent, senti)
189 EUR:(\D+) $(\1: युरो, युरो, सेंट, सेंटस्)
190 GBP:(\D+) $(\1: पौंड स्टर्लिंग, पौंडस् स्टर्लिंग, पेनी, पेन्स्)
191 GHS:(\D+) $(\1: Ghana cedi, Ghana cedis, pesewa, pesewas)
192 GMD:(\D+) $(\1: dalasi, dalasi, butut, bututs)
193 HKD:(\D+) $(\1: हॉन्गकॉन्ग डॉलर, हॉन्गकॉन्ग डॉलर्स, सेंट, सेंटस्)
194 HRK:(\D+) $(\1: kuna, kuna, lipa, lipa)
195 HUF:(\D+) $(\1: forint, forint, fillér, fillér)
196
197 # --- Using Indian Rupee Symbol " ₹ " ------
198 INR:(\D+) $(\1: ₹ रुपया, ₹ रुपये, पैसा, पैसे)
199 # ------------------------------------------
200
201 JMD:(\D+) $(\1: Jamaica dollar, Jamaica dollars, cent, cents)
202 JPY:(\D+) $(\1: जपानी येन, जपानी येन, सेन, सेन)
203 KES:(\D+) $(\1: Kenyan shilling, Kenyan shillings, cent, cents)
204 KRW:(\D+) $(\1: Korean won, Korean won, jeon, jeon)
205 KWD:(\D+) $(\1: कुवेती दिनार, कुवेती दिनार, फिल्स्, फिल्स्)
206 LRD:(\D+) $(\1: Liberian dollar, Liberian dollars, cent, cents)
207 LSL:(\D+) $(\1: loti, maloti, sente, lisente)
208 LTL:(\D+) $(\1: litas, litai, centas, centai)
209 LVL:(\D+) $(\1: lats, lati, santims, santimi)
210 MGA:(\D+) $(\1: ariary, ariaries, iraimbilanja, iraimbilanja)
211 MUR:(\D+) $(\1: Mauritian rupee, Mauritian rupees, cent, cents)
212 MXN:(\D+) $(\1: Mexican peso, Mexican pesos, centavo, centavos)
213 MWK:(\D+) $(\1: Malawian kwacha, Malawian kwacha, tambala, tambala)
214 MYR:(\D+) $(\1: Ringgit, Ringgit, cent, cents)
215 NAD:(\D+) $(\1: Namibian dollar, Namibian dollars, cent, cents)
216 NGN:(\D+) $(\1: naira, naira, kobo, kobo)
217 NZD:(\D+) $(\1: न्यूझीलंड डॉलर, न्यूझीलंड डॉलर्स, सेंट, सेंटस्)
218 PGK:(\D+) $(\1: kina, kina, toea, toea)
219 PHP:(\D+) $(\1: Philippine peso, Philippine pesos, centavo, centavos)
220 PKR:(\D+) $(\1: पाकिस्तानी रुपया, पाकिस्तानी रुपये, पैसा, पैसे)
221 PLN:(\D+) $(\1: zloty, zlotys, grosz, groszy)
222 RON:(\D+) $(\1: Romanian leu, Romanian lei, ban, bani)
223 RSD:(\D+) $(\1: Serbian dinar, Serbian dinars, para, para)
224 RUB:(\D+) $(\1: Russian ruble, Russian rubles, kopek, kopeks)
225 RWF:(\D+) $(\1: Rwandese franc, Rwandese francs, centime, centimes)
226 SAR:(\D+) $(\1: सौदी रियाल, सौदी रियाल, हलाला, हलाला)
227 SDG:(\D+) $(\1: Sudanese pound, Sudanese pounds, piastre, piastres)
228 SGD:(\D+) $(\1: सिंगापुर डॉलर, सिंगापुर डॉलर्स, सेंट, सेंटस्)
229 SLL:(\D+) $(\1: leone, leones, cent, cents)
230 SZL:(\D+) $(\1: lilangeni, emalangeni, cent, cents)
231 THB:(\D+) $(\1: baht, baht, satang, satang)
232 TRY:(\D+) $(\1: Turkish lira, Turkish lira, kurus, kurus)
233 TTD:(\D+) $(\1: Trinidad and Tobago dollar, Trinidad and Tobago dollars, cent, cents)
234 TZS:(\D+) $(\1: Tanzanian shilling, Tanzanian shillings, cent, cents)
235 UAH:(\D+) $(\1: hryvnia, hryvnia, kopiyka, kopiyka)
236 UGX:(\D+) $(\1: Uganda shilling, Uganda shillings, cent, cents)
237 USD:(\D+) $(\1: यु. एस. डॉलर, यु. एस. डॉलर्स, सेंट, सेंटस् )
238 X[AO]F:(\D+) $(\1: CFA franc, CFA francs, centime, centimes)
239 ZAR:(\D+) $(\1: South African rand, South African rand, cent, cents)
240 ZMK:(\D+) $(\1: Zambian kwacha, Zambian kwacha, ngwee, ngwee)
241 ZWL:(\D+) $(\1: Zimbabwe dollar, Zimbabwe dollars, cent, cents)
242
243 "(JPY [-−]?\d+)[.,](\d\d)0" $1
244 "(JPY [-−]?\d+[.,]\d\d)(\d)" $1 $2 रिन
245
246 "([A-Z]{3}) ([-−]?1)([.,]00?)?" $2$(\1:us)
247 "([A-Z]{3}) ([-−]?\d+)([.,]00?)?" $2$(\1:up)
248
249 "(CNY [-−]?\d+)[.,](\d)0?" $1 $2 ज्याओ
250 "(CNY [-−]?\d+[.,]\d)(\d)" $1 $2 फेन
251
252 "((MGA|MRO) [-−]?\d+)[.,]0" $1
253 "((MGA|MRO) [-−]?\d+)[.,]2" $1 आणि |$(1)$(\2:ss)
254 "((MGA|MRO) [-−]?\d+)[.,]4" $1 आणि |$(2)$(\2:sp)
255 "((MGA|MRO) [-−]?\d+)[.,]6" $1 आणि |$(3)$(\2:sp)
256 "((MGA|MRO) [-−]?\d+)[.,]8" $1 आणि |$(4)$(\2:sp)
257
258 "(([A-Z]{3}) [-−]?\d+)[.,](01)" $1 आणि |$(1)$(\2:ss)
259 "(([A-Z]{3}) [-−]?\d+)[.,](\d)" $1 आणि |$(\30)$(\2:sp)
260 "(([A-Z]{3}) [-−]?\d+)[.,](\d\d)" $1 आणि |$3$(\2:sp)
261
262 == money ==
263
264 "(JPY [-−]?\d+)[.,](\d\d)0" $1
265 "(JPY [-−]?\d+[.,]\d\d)(\d)" $1 $2 रिन
266
267 "([A-Z]{3}) ([-−]?1)([.,]00?)?" $2$(\1:us)
268 "([A-Z]{3}) ([-−]?\d+)([.,]00?)?" $2$(\1:up)
269
270 "(CNY [-−]?\d+)[.,](\d)0?" $1 $2 ज्याओ
271 "(CNY [-−]?\d+[.,]\d)(\d)" $1 $2 फेन
272
273 "(MGA|MRO) ([-−]?\d+)[.,]0" $2$(\1:us)
274 "(MGA|MRO) ([-−]?\d+)[.,]2" $2 आणि 1/5$(\1:us)
275 "(MGA|MRO) ([-−]?\d+)[.,]4" $2 आणि 2/5$(\1:up)
276 "(MGA|MRO) ([-−]?\d+)[.,]6" $2 आणि 3/5$(\1:up)
277 "(MGA|MRO) ([-−]?\d+)[.,]8" $2 आणि 4/5$(\1:up)
278
279 "([A-Z]{3}) ([-−]?1)" $2$(\1:us)
280 "([A-Z]{3}) ([-−]?\d+)" $2$(\1:up)
281 "(([A-Z]{3}) ([-−]?\d+))[.,](01)" $3 आणि 1/100$(\2:us)
282 "(([A-Z]{3}) ([-−]?\d+))[.,](\d)" $3 आणि \40/100$(\2:up)
283 "(([A-Z]{3}) ([-−]?\d+))[.,](\d\d)" $3 आणि \4/100$(\2:up)
284 "(([A-Z]{3}) ([-−]?\d+))[.,](\d\d\d)" $3 आणि \4/1000$(\2:up)
285
286 # ------------------------
287 # Ordinal ------
288 # Ordinal no. reading in Marathi are GENDER dependent ( and not as simple in English where anyone at no 1 will be read as FIRST )
289 # in Marathi there are 3 gender identities Male पुल्लिंगी , Female स्त्रिलिंगी & Neutral नपुसकलिंगी (similar to masculine, feminine, neuter in Swiss )
290 # -----------------------
291 # If a sentence refer to MALE subject equivalent of FIRST is पहिला
292 # ordinal masculine --- पुल्लिंगी
293
294 == ordinal-masculine ==
295 ([-−]?\d+) $(ordinal-masculine |$1)
296 (.*)एक \1पहिला
297 (.*)दोन \1दुसरा
298 (.*)तीन \1तिसरा
299 (.*)चार \1चौथा
300 (.*)पाच \1पाचवा
301 (.*)सहा \1सहावा
302 (.*)सात \1सातवा
303 (.*)आठ \1आठवा
304 (.*)नऊ \1नववा
305 (.*)दहा \1दहावा
306 (.*)अकरा \1अकरावा
307 (.*)बारा \1बारावा
308 (.*)तेरा \1तेरावा
309 (.*)चौदा \1चौदावा
310 (.*)पंधरा \1पंधरावा
311 (.*)सोळा \1सोळावा
312 (.*)सतरा \1सतरावा
313 (.*)अठरा \1अठरावा
314
315
316 (.*)एकोणऐंशी \1एकोणऐंशीवा
317 (.*)ऐंशी \1ऐंशीवा
318 (.*)एक्याऐंशी \1एक्याऐंशीवा
319 (.*)ब्याऐंशी \1ब्याऐंशीवा
320 (.*)त्र्याऐंशी \1त्र्याऐंशीवा
321 (.*)चौऱ्याऐंशी \1चौऱ्याऐंशीवा
322 (.*)पंचाऐंशी \1पंचाऐंशीवा
323 (.*)शहाऐंशी \1शहाऐंशीवा
324 (.*)सत्त्याऐंशी \1सत्त्याऐंशीवा
325 (.*)अठ्ठ्याऐंशी \1अठ्ठ्याऐंशीवा
326
327 ([-−]?\d+)[.,](.*) $1 दशांश $(\2)वा # Ordinal of Decimals
328 (.*) \1ावा # General Masculine Ordinal
329
330 # -----------------------
331 # If a sentence refer to FEMALE subject equivalent of FIRST is पहिली
332 # ordinal feminine --- स्त्रिलिंगी
333
334 == ordinal-feminine ==
335 ([-−]?\d+) $(ordinal-feminine |$1)
336 (.*)एक \1पहिली
337 (.*)दोन \1दुसरी
338 (.*)तीन \1तिसरी
339 (.*)चार \1चौथी
340 (.*)पाच \1पाचवी
341 (.*)सहा \1सहावी
342 (.*)सात \1सातवी
343 (.*)आठ \1आठवी
344 (.*)नऊ \1नववी
345 (.*)दहा \1दहावी
346 (.*)अकरा \1अकरावी
347 (.*)बारा \1बारावी
348 (.*)तेरा \1तेरावी
349 (.*)चौदा \1चौदावी
350 (.*)पंधरा \1पंधरावी
351 (.*)सोळा \1सोळावी
352 (.*)सतरा \1सतरावी
353 (.*)अठरा \1अठरावी
354
355
356 (.*)एकोणऐंशी \1एकोणऐंशीवी
357 (.*)ऐंशी \1ऐंशीवी
358 (.*)एक्याऐंशी \1एक्याऐंशीवी
359 (.*)ब्याऐंशी \1ब्याऐंशीवी
360 (.*)त्र्याऐंशी \1त्र्याऐंशीवी
361 (.*)चौऱ्याऐंशी \1चौऱ्याऐंशीवी
362 (.*)पंचाऐंशी \1पंचाऐंशीवी
363 (.*)शहाऐंशी \1शहाऐंशीवी
364 (.*)सत्त्याऐंशी \1सत्त्याऐंशीवी
365 (.*)अठ्ठ्याऐंशी \1अठ्ठ्याऐंशीवी
366
367 ([-−]?\d+)[.,](.*) $1 दशांश $(\2)वी # Ordinal of Decimals
368 (.*) \1ावी # General Feminine Ordinal
369
370 # -----------------------
371 # If a sentence refer to NEUTRAL subject equivalent of FIRST is पहिले / पहिलं
372 # ordinal neutral --- नपुसकलिंगी
373
374 == ordinal-neutral ==
375 ([-−]?\d+) $(ordinal-neutral |$1)
376 (.*)एक \1पहिले
377 (.*)दोन \1दुसरे
378 (.*)तीन \1तिसरे
379 (.*)चार \1चौथे
380 (.*)पाच \1पाचवे
381 (.*)सहा \1सहावे
382 (.*)सात \1सातवे
383 (.*)आठ \1आठवे
384 (.*)नऊ \1नववे
385 (.*)दहा \1दहावे
386 (.*)अकरा \1अकरावे
387 (.*)बारा \1बारावे
388 (.*)तेरा \1तेरावे
389 (.*)चौदा \1चौदावे
390 (.*)पंधरा \1पंधरावे
391 (.*)सोळा \1सोळावे
392 (.*)सतरा \1सतरावे
393 (.*)अठरा \1अठरावे
394
395 (.*)एकोणऐंशी \1एकोणऐंशीवे
396 (.*)ऐंशी \1ऐंशीवे
397 (.*)एक्याऐंशी \1एक्याऐंशीवे
398 (.*)ब्याऐंशी \1ब्याऐंशीवे
399 (.*)त्र्याऐंशी \1त्र्याऐंशीवे
400 (.*)चौऱ्याऐंशी \1चौऱ्याऐंशीवे
401 (.*)पंचाऐंशी \1पंचाऐंशीवे
402 (.*)शहाऐंशी \1शहाऐंशीवे
403 (.*)सत्त्याऐंशी \1सत्त्याऐंशीवे
404 (.*)अठ्ठ्याऐंशी \1अठ्ठ्याऐंशीवे
405
406 ([-−]?\d+)[.,](.*) $1 दशांश $(\2)वे # Ordinal of Decimals
407 (.*) \1ावे # General Neutral Ordinal
408
409 # -----------------------
410 # As the SUBJECT in the sentence forming is unknown and is out of scope of this code, default ordinal numbering is set to output all possible GENDERs separated by " / " , and hence may not deliver grammatically correct sentences ( we have hard coded Ordinal numbers from 1-10 with all possible GENDERs separated by " / " .. as in पहिला / पहिली / पहिले
411 # This is done deliberately considering ease of use.
412 # As separate commands for masculine, feminine & neutral eventhough exists, a User may not be aware. So by providing all gender words in default ordinal option, user at least will get some output of relevance.
413 # ordinal default --- ordinal words with all gender options separated by " / "
414
415 == ordinal == # Default
416 ([-−]?\d+) $(ordinal |$1)
417
418 (.*)एक \1पहिला / \1 पहिली / \1 पहिले
419 (.*)दोन \1दुसरा / \1 दुसरी / \1 दुसरे
420 (.*)तीन \1तिसरा / \1 तिसरी / \1 तिसरे
421 (.*)चार \1चौथा / \1 चौथी / \1 चौथे
422 (.*)पाच \1पाचवा / \1 पाचवी / \1 पाचवे
423 (.*)सहा \1सहावा / \1 सहावी / \1 सहावे
424 (.*)सात \1सातवा / \1 सातवी / \1 सातवे
425 (.*)आठ \1आठवा / \1 आठवी / \1 आठवे
426 (.*)नऊ \1नववा / \1 नववी / \1 नववे
427 (.*)दहा \1दहावा / \1 दहावी / \1 दहावे
428 (.*)अकरा \1अकरावा / \1 अकरावी / \1 अकरावे
429 (.*)बारा \1बारावा / \1 बारावी / \1 बारावे
430 (.*)तेरा \1तेरावा / \1 तेरावी / \1 तेरावे
431 (.*)चौदा \1चौदावा / \1 चौदावी / \1 चौदावे
432 (.*)पंधरा \1पंधरावा / \1 पंधरावी / \1 पंधरावे
433 (.*)सोळा \1सोळावा / \1 सोळावी / \1 सोळावे
434 (.*)सतरा \1सतरावा / \1 सतरावी / \1 सतरावे
435 (.*)अठरा \1अठरावा / \1 अठरावी / \1 अठरावे
436
437
438 (.*)एकोणऐंशी \1एकोणऐंशीवा / \1 एकोणऐंशीवी / \1 एकोणऐंशीवे
439 (.*)ऐंशी \1ऐंशीवा / \1 ऐंशीवी / \1 ऐंशीवे
440 (.*)एक्याऐंशी \1एक्याऐंशीवा / \1 एक्याऐंशीवी / \1 एक्याऐंशीवे
441 (.*)ब्याऐंशी \1ब्याऐंशीवा / \1 ब्याऐंशीवी / \1 ब्याऐंशीवे
442 (.*)त्र्याऐंशी \1त्र्याऐंशीवा / \1 त्र्याऐंशीवी / \1 त्र्याऐंशीवे
443 (.*)चौऱ्याऐंशी \1चौऱ्याऐंशीवा / \1 चौऱ्याऐंशीवी / \1 चौऱ्याऐंशीवे
444 (.*)पंचाऐंशी \1पंचाऐंशीवा / \1 पंचाऐंशीवी / \1 पंचाऐंशीवे
445 (.*)शहाऐंशी \1शहाऐंशीवा / \1 शहाऐंशीवी / \1 शहाऐंशीवे
446 (.*)सत्त्याऐंशी \1सत्त्याऐंशीवा / \1 सत्त्याऐंशीवी / \1 सत्त्याऐंशीवे
447 (.*)अठ्ठ्याऐंशी \1अठ्ठ्याऐंशीवा / \1 अठ्ठ्याऐंशीवी / \1 अठ्ठ्याऐंशीवे
448
449
450 ([-−]?\d+)[.,](.*) $1 दशांश $(\2)वा / $1 दशांश $(\2)वी / $1 दशांश $(\2)वे # Ordinal of Decimals
451 (.*) \1ावा / \1ावी / \1ावे # General ALL Gender Ordinals
452
453 # -----------------------
454 # Also we have considered to use generalized method where result for "ELEVEN" will be like - क्रमांक अकरा (similar to saying "Rank Eleven" in English in a gender neutral way.)
455 # ordinal Sequential --- ordinal-sq
456
457 == ordinal-sq ==
458 ([-−]?\d+) $(ordinal-sq |$1)
459 (.*) क्रमांक \1
460
461 # ------------------------
462 # ordinal-number
463 # Not relevant in Marathi
464
465 == ordinal-number ==
466 ([-−]?\d+) $(ordinal-number |$2)
467 (.*) \2
468
469 # ------------------------
470 # cardinal
471 # Not relevant in Marathi
472
473 == cardinal(-)? ==
474 ([-−]?\d+) $(cardinal |$2)
475 (.*) \2
476
477 # ------------------------
478
479 == year ==
480
481 (1[0-9])00 $1शे
482 (1[0-9])([0-9][0-9]) $1शे $2 # e.g. 1857 = अठराशे सत्तावन्न , 1947 = एकोणीसशे सत्तेचाळीस
483 (2[0-9])([0-9][0-9]) $1शे $2 # e.g. 2021 = वीसशे एकवीस
484 (3[0-9])([0-9][0-9]) $1शे $2
485 (4[0-9])([0-9][0-9]) $1शे $2
486 (5[0-9])([0-9][0-9]) $1शे $2
487 (6[0-9])([0-9][0-9]) $1शे $2
488 (7[0-9])([0-9][0-9]) $1शे $2
489 (8[0-9])([0-9][0-9]) $1शे $2
490 (9[0-9])([0-9][0-9]) $1शे $2
491 (.*) $(year-remove-and $1)
492
493 # ------------------------
494
495 == year-remove-and ==
496
497 "(.*) and (.*)" \1 \2
498 (.*) \1
499
500 == help ==
501
502 "" $(1)|, $(2), $(3)\n$(\0 ordinal)$(\0 ordinal-masculine)$(\0 ordinal-feminine)$(\0 ordinal-neutral)$(\0 ordinal-sq)$(\0 ordinal-number)year: $(year 1999), two thousand, $(year 2001)
503 "" \ncurrency \(for example, INR\): $(INR 2.5)\nmoney INR: $(money INR 2.5) \1: $(\1 1), $(\1 2), $(\1 3)\n