-
Notifications
You must be signed in to change notification settings - Fork 6
/
stem_UTF_8_armenian.c
559 lines (531 loc) · 22.8 KB
/
stem_UTF_8_armenian.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
/* Generated by Snowball 2.2.0 - https://snowballstem.org/ */
#include "header.h"
#ifdef __cplusplus
extern "C" {
#endif
extern int armenian_UTF_8_stem(struct SN_env * z);
#ifdef __cplusplus
}
#endif
static int r_ending(struct SN_env * z);
static int r_noun(struct SN_env * z);
static int r_verb(struct SN_env * z);
static int r_adjective(struct SN_env * z);
static int r_R2(struct SN_env * z);
static int r_mark_regions(struct SN_env * z);
#ifdef __cplusplus
extern "C" {
#endif
extern struct SN_env * armenian_UTF_8_create_env(void);
extern void armenian_UTF_8_close_env(struct SN_env * z);
#ifdef __cplusplus
}
#endif
static const symbol s_0_0[6] = { 0xD5, 0xA2, 0xD5, 0xA1, 0xD6, 0x80 };
static const symbol s_0_1[8] = { 0xD6, 0x80, 0xD5, 0xB8, 0xD6, 0x80, 0xD5, 0xA4 };
static const symbol s_0_2[10] = { 0xD5, 0xA5, 0xD6, 0x80, 0xD5, 0xB8, 0xD6, 0x80, 0xD5, 0xA4 };
static const symbol s_0_3[6] = { 0xD5, 0xA1, 0xD5, 0xAC, 0xD5, 0xAB };
static const symbol s_0_4[6] = { 0xD5, 0xA1, 0xD5, 0xAF, 0xD5, 0xAB };
static const symbol s_0_5[8] = { 0xD5, 0xB8, 0xD6, 0x80, 0xD5, 0xA1, 0xD5, 0xAF };
static const symbol s_0_6[4] = { 0xD5, 0xA5, 0xD5, 0xB2 };
static const symbol s_0_7[8] = { 0xD5, 0xBE, 0xD5, 0xB8, 0xD6, 0x82, 0xD5, 0xB6 };
static const symbol s_0_8[8] = { 0xD5, 0xA1, 0xD6, 0x80, 0xD5, 0xA1, 0xD5, 0xB6 };
static const symbol s_0_9[8] = { 0xD5, 0xA1, 0xD5, 0xAF, 0xD5, 0xA1, 0xD5, 0xB6 };
static const symbol s_0_10[4] = { 0xD5, 0xA5, 0xD5, 0xB6 };
static const symbol s_0_11[8] = { 0xD5, 0xA5, 0xD6, 0x80, 0xD5, 0xA5, 0xD5, 0xB6 };
static const symbol s_0_12[8] = { 0xD5, 0xA5, 0xD5, 0xAF, 0xD5, 0xA5, 0xD5, 0xB6 };
static const symbol s_0_13[8] = { 0xD5, 0xB8, 0xD6, 0x80, 0xD5, 0xA7, 0xD5, 0xB6 };
static const symbol s_0_14[4] = { 0xD5, 0xAB, 0xD5, 0xB6 };
static const symbol s_0_15[6] = { 0xD5, 0xA3, 0xD5, 0xAB, 0xD5, 0xB6 };
static const symbol s_0_16[8] = { 0xD5, 0xB8, 0xD5, 0xBE, 0xD5, 0xAB, 0xD5, 0xB6 };
static const symbol s_0_17[8] = { 0xD5, 0xAC, 0xD5, 0xA1, 0xD5, 0xB5, 0xD5, 0xB6 };
static const symbol s_0_18[6] = { 0xD5, 0xBA, 0xD5, 0xA5, 0xD5, 0xBD };
static const symbol s_0_19[4] = { 0xD5, 0xAB, 0xD5, 0xBE };
static const symbol s_0_20[4] = { 0xD5, 0xA1, 0xD5, 0xBF };
static const symbol s_0_21[8] = { 0xD5, 0xA1, 0xD5, 0xBE, 0xD5, 0xA5, 0xD5, 0xBF };
static const symbol s_0_22[6] = { 0xD5, 0xAF, 0xD5, 0xB8, 0xD5, 0xBF };
static const struct among a_0[23] =
{
{ 6, s_0_0, -1, 1, 0},
{ 8, s_0_1, -1, 1, 0},
{ 10, s_0_2, 1, 1, 0},
{ 6, s_0_3, -1, 1, 0},
{ 6, s_0_4, -1, 1, 0},
{ 8, s_0_5, -1, 1, 0},
{ 4, s_0_6, -1, 1, 0},
{ 8, s_0_7, -1, 1, 0},
{ 8, s_0_8, -1, 1, 0},
{ 8, s_0_9, -1, 1, 0},
{ 4, s_0_10, -1, 1, 0},
{ 8, s_0_11, 10, 1, 0},
{ 8, s_0_12, 10, 1, 0},
{ 8, s_0_13, -1, 1, 0},
{ 4, s_0_14, -1, 1, 0},
{ 6, s_0_15, 14, 1, 0},
{ 8, s_0_16, 14, 1, 0},
{ 8, s_0_17, -1, 1, 0},
{ 6, s_0_18, -1, 1, 0},
{ 4, s_0_19, -1, 1, 0},
{ 4, s_0_20, -1, 1, 0},
{ 8, s_0_21, -1, 1, 0},
{ 6, s_0_22, -1, 1, 0}
};
static const symbol s_1_0[4] = { 0xD5, 0xA1, 0xD6, 0x80 };
static const symbol s_1_1[8] = { 0xD5, 0xA1, 0xD6, 0x81, 0xD5, 0xA1, 0xD6, 0x80 };
static const symbol s_1_2[8] = { 0xD5, 0xA5, 0xD6, 0x81, 0xD5, 0xA1, 0xD6, 0x80 };
static const symbol s_1_3[10] = { 0xD5, 0xA1, 0xD6, 0x81, 0xD6, 0x80, 0xD5, 0xAB, 0xD6, 0x80 };
static const symbol s_1_4[8] = { 0xD5, 0xA1, 0xD6, 0x81, 0xD5, 0xAB, 0xD6, 0x80 };
static const symbol s_1_5[8] = { 0xD5, 0xA5, 0xD6, 0x81, 0xD5, 0xAB, 0xD6, 0x80 };
static const symbol s_1_6[10] = { 0xD5, 0xBE, 0xD5, 0xA5, 0xD6, 0x81, 0xD5, 0xAB, 0xD6, 0x80 };
static const symbol s_1_7[10] = { 0xD5, 0xA1, 0xD5, 0xAC, 0xD5, 0xB8, 0xD6, 0x82, 0xD6, 0x81 };
static const symbol s_1_8[10] = { 0xD5, 0xA5, 0xD5, 0xAC, 0xD5, 0xB8, 0xD6, 0x82, 0xD6, 0x81 };
static const symbol s_1_9[4] = { 0xD5, 0xA1, 0xD6, 0x81 };
static const symbol s_1_10[4] = { 0xD5, 0xA5, 0xD6, 0x81 };
static const symbol s_1_11[10] = { 0xD5, 0xA1, 0xD6, 0x81, 0xD6, 0x80, 0xD5, 0xA5, 0xD6, 0x81 };
static const symbol s_1_12[8] = { 0xD5, 0xA1, 0xD5, 0xAC, 0xD5, 0xB8, 0xD6, 0x82 };
static const symbol s_1_13[8] = { 0xD5, 0xA5, 0xD5, 0xAC, 0xD5, 0xB8, 0xD6, 0x82 };
static const symbol s_1_14[4] = { 0xD5, 0xA1, 0xD6, 0x84 };
static const symbol s_1_15[6] = { 0xD6, 0x81, 0xD5, 0xA1, 0xD6, 0x84 };
static const symbol s_1_16[8] = { 0xD5, 0xA1, 0xD6, 0x81, 0xD5, 0xA1, 0xD6, 0x84 };
static const symbol s_1_17[10] = { 0xD5, 0xA1, 0xD6, 0x81, 0xD6, 0x80, 0xD5, 0xAB, 0xD6, 0x84 };
static const symbol s_1_18[8] = { 0xD5, 0xA1, 0xD6, 0x81, 0xD5, 0xAB, 0xD6, 0x84 };
static const symbol s_1_19[8] = { 0xD5, 0xA5, 0xD6, 0x81, 0xD5, 0xAB, 0xD6, 0x84 };
static const symbol s_1_20[10] = { 0xD5, 0xBE, 0xD5, 0xA5, 0xD6, 0x81, 0xD5, 0xAB, 0xD6, 0x84 };
static const symbol s_1_21[6] = { 0xD5, 0xA1, 0xD5, 0xB6, 0xD6, 0x84 };
static const symbol s_1_22[8] = { 0xD6, 0x81, 0xD5, 0xA1, 0xD5, 0xB6, 0xD6, 0x84 };
static const symbol s_1_23[10] = { 0xD5, 0xA1, 0xD6, 0x81, 0xD5, 0xA1, 0xD5, 0xB6, 0xD6, 0x84 };
static const symbol s_1_24[12] = { 0xD5, 0xA1, 0xD6, 0x81, 0xD6, 0x80, 0xD5, 0xAB, 0xD5, 0xB6, 0xD6, 0x84 };
static const symbol s_1_25[10] = { 0xD5, 0xA1, 0xD6, 0x81, 0xD5, 0xAB, 0xD5, 0xB6, 0xD6, 0x84 };
static const symbol s_1_26[10] = { 0xD5, 0xA5, 0xD6, 0x81, 0xD5, 0xAB, 0xD5, 0xB6, 0xD6, 0x84 };
static const symbol s_1_27[12] = { 0xD5, 0xBE, 0xD5, 0xA5, 0xD6, 0x81, 0xD5, 0xAB, 0xD5, 0xB6, 0xD6, 0x84 };
static const symbol s_1_28[2] = { 0xD5, 0xA1 };
static const symbol s_1_29[6] = { 0xD5, 0xA1, 0xD6, 0x81, 0xD5, 0xA1 };
static const symbol s_1_30[6] = { 0xD5, 0xA5, 0xD6, 0x81, 0xD5, 0xA1 };
static const symbol s_1_31[4] = { 0xD5, 0xBE, 0xD5, 0xA5 };
static const symbol s_1_32[8] = { 0xD5, 0xA1, 0xD6, 0x81, 0xD6, 0x80, 0xD5, 0xAB };
static const symbol s_1_33[6] = { 0xD5, 0xA1, 0xD6, 0x81, 0xD5, 0xAB };
static const symbol s_1_34[6] = { 0xD5, 0xA5, 0xD6, 0x81, 0xD5, 0xAB };
static const symbol s_1_35[8] = { 0xD5, 0xBE, 0xD5, 0xA5, 0xD6, 0x81, 0xD5, 0xAB };
static const symbol s_1_36[4] = { 0xD5, 0xA1, 0xD5, 0xAC };
static const symbol s_1_37[6] = { 0xD5, 0xA8, 0xD5, 0xA1, 0xD5, 0xAC };
static const symbol s_1_38[10] = { 0xD5, 0xA1, 0xD6, 0x81, 0xD5, 0xB6, 0xD5, 0xA1, 0xD5, 0xAC };
static const symbol s_1_39[8] = { 0xD5, 0xA1, 0xD5, 0xB6, 0xD5, 0xA1, 0xD5, 0xAC };
static const symbol s_1_40[8] = { 0xD5, 0xA5, 0xD5, 0xB6, 0xD5, 0xA1, 0xD5, 0xAC };
static const symbol s_1_41[4] = { 0xD5, 0xA5, 0xD5, 0xAC };
static const symbol s_1_42[6] = { 0xD5, 0xA8, 0xD5, 0xA5, 0xD5, 0xAC };
static const symbol s_1_43[6] = { 0xD5, 0xB6, 0xD5, 0xA5, 0xD5, 0xAC };
static const symbol s_1_44[8] = { 0xD6, 0x81, 0xD5, 0xB6, 0xD5, 0xA5, 0xD5, 0xAC };
static const symbol s_1_45[10] = { 0xD5, 0xA5, 0xD6, 0x81, 0xD5, 0xB6, 0xD5, 0xA5, 0xD5, 0xAC };
static const symbol s_1_46[6] = { 0xD5, 0xB9, 0xD5, 0xA5, 0xD5, 0xAC };
static const symbol s_1_47[6] = { 0xD5, 0xBE, 0xD5, 0xA5, 0xD5, 0xAC };
static const symbol s_1_48[10] = { 0xD5, 0xA1, 0xD6, 0x81, 0xD5, 0xBE, 0xD5, 0xA5, 0xD5, 0xAC };
static const symbol s_1_49[10] = { 0xD5, 0xA5, 0xD6, 0x81, 0xD5, 0xBE, 0xD5, 0xA5, 0xD5, 0xAC };
static const symbol s_1_50[6] = { 0xD5, 0xBF, 0xD5, 0xA5, 0xD5, 0xAC };
static const symbol s_1_51[8] = { 0xD5, 0xA1, 0xD5, 0xBF, 0xD5, 0xA5, 0xD5, 0xAC };
static const symbol s_1_52[8] = { 0xD5, 0xB8, 0xD5, 0xBF, 0xD5, 0xA5, 0xD5, 0xAC };
static const symbol s_1_53[10] = { 0xD5, 0xAF, 0xD5, 0xB8, 0xD5, 0xBF, 0xD5, 0xA5, 0xD5, 0xAC };
static const symbol s_1_54[6] = { 0xD5, 0xBE, 0xD5, 0xA1, 0xD5, 0xAE };
static const symbol s_1_55[6] = { 0xD5, 0xB8, 0xD6, 0x82, 0xD5, 0xB4 };
static const symbol s_1_56[8] = { 0xD5, 0xBE, 0xD5, 0xB8, 0xD6, 0x82, 0xD5, 0xB4 };
static const symbol s_1_57[4] = { 0xD5, 0xA1, 0xD5, 0xB6 };
static const symbol s_1_58[6] = { 0xD6, 0x81, 0xD5, 0xA1, 0xD5, 0xB6 };
static const symbol s_1_59[8] = { 0xD5, 0xA1, 0xD6, 0x81, 0xD5, 0xA1, 0xD5, 0xB6 };
static const symbol s_1_60[10] = { 0xD5, 0xA1, 0xD6, 0x81, 0xD6, 0x80, 0xD5, 0xAB, 0xD5, 0xB6 };
static const symbol s_1_61[8] = { 0xD5, 0xA1, 0xD6, 0x81, 0xD5, 0xAB, 0xD5, 0xB6 };
static const symbol s_1_62[8] = { 0xD5, 0xA5, 0xD6, 0x81, 0xD5, 0xAB, 0xD5, 0xB6 };
static const symbol s_1_63[10] = { 0xD5, 0xBE, 0xD5, 0xA5, 0xD6, 0x81, 0xD5, 0xAB, 0xD5, 0xB6 };
static const symbol s_1_64[8] = { 0xD5, 0xA1, 0xD5, 0xAC, 0xD5, 0xAB, 0xD5, 0xBD };
static const symbol s_1_65[8] = { 0xD5, 0xA5, 0xD5, 0xAC, 0xD5, 0xAB, 0xD5, 0xBD };
static const symbol s_1_66[4] = { 0xD5, 0xA1, 0xD5, 0xBE };
static const symbol s_1_67[8] = { 0xD5, 0xA1, 0xD6, 0x81, 0xD5, 0xA1, 0xD5, 0xBE };
static const symbol s_1_68[8] = { 0xD5, 0xA5, 0xD6, 0x81, 0xD5, 0xA1, 0xD5, 0xBE };
static const symbol s_1_69[8] = { 0xD5, 0xA1, 0xD5, 0xAC, 0xD5, 0xB8, 0xD5, 0xBE };
static const symbol s_1_70[8] = { 0xD5, 0xA5, 0xD5, 0xAC, 0xD5, 0xB8, 0xD5, 0xBE };
static const struct among a_1[71] =
{
{ 4, s_1_0, -1, 1, 0},
{ 8, s_1_1, 0, 1, 0},
{ 8, s_1_2, 0, 1, 0},
{ 10, s_1_3, -1, 1, 0},
{ 8, s_1_4, -1, 1, 0},
{ 8, s_1_5, -1, 1, 0},
{ 10, s_1_6, 5, 1, 0},
{ 10, s_1_7, -1, 1, 0},
{ 10, s_1_8, -1, 1, 0},
{ 4, s_1_9, -1, 1, 0},
{ 4, s_1_10, -1, 1, 0},
{ 10, s_1_11, 10, 1, 0},
{ 8, s_1_12, -1, 1, 0},
{ 8, s_1_13, -1, 1, 0},
{ 4, s_1_14, -1, 1, 0},
{ 6, s_1_15, 14, 1, 0},
{ 8, s_1_16, 15, 1, 0},
{ 10, s_1_17, -1, 1, 0},
{ 8, s_1_18, -1, 1, 0},
{ 8, s_1_19, -1, 1, 0},
{ 10, s_1_20, 19, 1, 0},
{ 6, s_1_21, -1, 1, 0},
{ 8, s_1_22, 21, 1, 0},
{ 10, s_1_23, 22, 1, 0},
{ 12, s_1_24, -1, 1, 0},
{ 10, s_1_25, -1, 1, 0},
{ 10, s_1_26, -1, 1, 0},
{ 12, s_1_27, 26, 1, 0},
{ 2, s_1_28, -1, 1, 0},
{ 6, s_1_29, 28, 1, 0},
{ 6, s_1_30, 28, 1, 0},
{ 4, s_1_31, -1, 1, 0},
{ 8, s_1_32, -1, 1, 0},
{ 6, s_1_33, -1, 1, 0},
{ 6, s_1_34, -1, 1, 0},
{ 8, s_1_35, 34, 1, 0},
{ 4, s_1_36, -1, 1, 0},
{ 6, s_1_37, 36, 1, 0},
{ 10, s_1_38, 36, 1, 0},
{ 8, s_1_39, 36, 1, 0},
{ 8, s_1_40, 36, 1, 0},
{ 4, s_1_41, -1, 1, 0},
{ 6, s_1_42, 41, 1, 0},
{ 6, s_1_43, 41, 1, 0},
{ 8, s_1_44, 43, 1, 0},
{ 10, s_1_45, 44, 1, 0},
{ 6, s_1_46, 41, 1, 0},
{ 6, s_1_47, 41, 1, 0},
{ 10, s_1_48, 47, 1, 0},
{ 10, s_1_49, 47, 1, 0},
{ 6, s_1_50, 41, 1, 0},
{ 8, s_1_51, 50, 1, 0},
{ 8, s_1_52, 50, 1, 0},
{ 10, s_1_53, 52, 1, 0},
{ 6, s_1_54, -1, 1, 0},
{ 6, s_1_55, -1, 1, 0},
{ 8, s_1_56, 55, 1, 0},
{ 4, s_1_57, -1, 1, 0},
{ 6, s_1_58, 57, 1, 0},
{ 8, s_1_59, 58, 1, 0},
{ 10, s_1_60, -1, 1, 0},
{ 8, s_1_61, -1, 1, 0},
{ 8, s_1_62, -1, 1, 0},
{ 10, s_1_63, 62, 1, 0},
{ 8, s_1_64, -1, 1, 0},
{ 8, s_1_65, -1, 1, 0},
{ 4, s_1_66, -1, 1, 0},
{ 8, s_1_67, 66, 1, 0},
{ 8, s_1_68, 66, 1, 0},
{ 8, s_1_69, -1, 1, 0},
{ 8, s_1_70, -1, 1, 0}
};
static const symbol s_2_0[6] = { 0xD5, 0xA3, 0xD5, 0xA1, 0xD6, 0x80 };
static const symbol s_2_1[6] = { 0xD5, 0xBE, 0xD5, 0xB8, 0xD6, 0x80 };
static const symbol s_2_2[8] = { 0xD5, 0xA1, 0xD5, 0xBE, 0xD5, 0xB8, 0xD6, 0x80 };
static const symbol s_2_3[8] = { 0xD5, 0xA1, 0xD5, 0xB6, 0xD6, 0x85, 0xD6, 0x81 };
static const symbol s_2_4[4] = { 0xD5, 0xB8, 0xD6, 0x81 };
static const symbol s_2_5[4] = { 0xD5, 0xB8, 0xD6, 0x82 };
static const symbol s_2_6[2] = { 0xD6, 0x84 };
static const symbol s_2_7[6] = { 0xD5, 0xA1, 0xD6, 0x80, 0xD6, 0x84 };
static const symbol s_2_8[6] = { 0xD5, 0xB9, 0xD5, 0xA5, 0xD6, 0x84 };
static const symbol s_2_9[4] = { 0xD5, 0xAB, 0xD6, 0x84 };
static const symbol s_2_10[8] = { 0xD5, 0xA1, 0xD5, 0xAC, 0xD5, 0xAB, 0xD6, 0x84 };
static const symbol s_2_11[8] = { 0xD5, 0xA1, 0xD5, 0xB6, 0xD5, 0xAB, 0xD6, 0x84 };
static const symbol s_2_12[8] = { 0xD5, 0xBE, 0xD5, 0xA1, 0xD5, 0xAE, 0xD6, 0x84 };
static const symbol s_2_13[8] = { 0xD5, 0xB8, 0xD6, 0x82, 0xD5, 0xB5, 0xD6, 0x84 };
static const symbol s_2_14[8] = { 0xD5, 0xB8, 0xD6, 0x82, 0xD5, 0xB6, 0xD6, 0x84 };
static const symbol s_2_15[10] = { 0xD5, 0xB4, 0xD5, 0xB8, 0xD6, 0x82, 0xD5, 0xB6, 0xD6, 0x84 };
static const symbol s_2_16[6] = { 0xD5, 0xA5, 0xD5, 0xB6, 0xD6, 0x84 };
static const symbol s_2_17[6] = { 0xD5, 0xB8, 0xD5, 0xB6, 0xD6, 0x84 };
static const symbol s_2_18[6] = { 0xD5, 0xAB, 0xD5, 0xB9, 0xD6, 0x84 };
static const symbol s_2_19[6] = { 0xD5, 0xB8, 0xD6, 0x80, 0xD5, 0xA4 };
static const symbol s_2_20[8] = { 0xD5, 0xB8, 0xD6, 0x82, 0xD5, 0xB5, 0xD5, 0xA9 };
static const symbol s_2_21[4] = { 0xD6, 0x81, 0xD5, 0xAB };
static const symbol s_2_22[8] = { 0xD5, 0xB8, 0xD6, 0x82, 0xD5, 0xB0, 0xD5, 0xAB };
static const symbol s_2_23[4] = { 0xD5, 0xAB, 0xD5, 0xAC };
static const symbol s_2_24[6] = { 0xD5, 0xB8, 0xD6, 0x82, 0xD5, 0xAF };
static const symbol s_2_25[4] = { 0xD5, 0xA1, 0xD5, 0xAF };
static const symbol s_2_26[6] = { 0xD5, 0xB5, 0xD5, 0xA1, 0xD5, 0xAF };
static const symbol s_2_27[8] = { 0xD5, 0xA1, 0xD5, 0xB6, 0xD5, 0xA1, 0xD5, 0xAF };
static const symbol s_2_28[4] = { 0xD5, 0xAB, 0xD5, 0xAF };
static const symbol s_2_29[8] = { 0xD5, 0xB5, 0xD5, 0xB8, 0xD6, 0x82, 0xD5, 0xB6 };
static const symbol s_2_30[14] = { 0xD5, 0xB8, 0xD6, 0x82, 0xD5, 0xA9, 0xD5, 0xB5, 0xD5, 0xB8, 0xD6, 0x82, 0xD5, 0xB6 };
static const symbol s_2_31[4] = { 0xD5, 0xA1, 0xD5, 0xB6 };
static const symbol s_2_32[8] = { 0xD5, 0xA1, 0xD6, 0x80, 0xD5, 0xA1, 0xD5, 0xB6 };
static const symbol s_2_33[6] = { 0xD5, 0xBA, 0xD5, 0xA1, 0xD5, 0xB6 };
static const symbol s_2_34[8] = { 0xD5, 0xBD, 0xD5, 0xBF, 0xD5, 0xA1, 0xD5, 0xB6 };
static const symbol s_2_35[8] = { 0xD5, 0xA5, 0xD5, 0xB2, 0xD5, 0xA7, 0xD5, 0xB6 };
static const symbol s_2_36[6] = { 0xD5, 0xA1, 0xD5, 0xAE, 0xD5, 0xB8 };
static const symbol s_2_37[4] = { 0xD5, 0xAB, 0xD5, 0xB9 };
static const symbol s_2_38[6] = { 0xD5, 0xB8, 0xD6, 0x82, 0xD5, 0xBD };
static const symbol s_2_39[8] = { 0xD5, 0xB8, 0xD6, 0x82, 0xD5, 0xBD, 0xD5, 0xBF };
static const struct among a_2[40] =
{
{ 6, s_2_0, -1, 1, 0},
{ 6, s_2_1, -1, 1, 0},
{ 8, s_2_2, 1, 1, 0},
{ 8, s_2_3, -1, 1, 0},
{ 4, s_2_4, -1, 1, 0},
{ 4, s_2_5, -1, 1, 0},
{ 2, s_2_6, -1, 1, 0},
{ 6, s_2_7, 6, 1, 0},
{ 6, s_2_8, 6, 1, 0},
{ 4, s_2_9, 6, 1, 0},
{ 8, s_2_10, 9, 1, 0},
{ 8, s_2_11, 9, 1, 0},
{ 8, s_2_12, 6, 1, 0},
{ 8, s_2_13, 6, 1, 0},
{ 8, s_2_14, 6, 1, 0},
{ 10, s_2_15, 14, 1, 0},
{ 6, s_2_16, 6, 1, 0},
{ 6, s_2_17, 6, 1, 0},
{ 6, s_2_18, 6, 1, 0},
{ 6, s_2_19, -1, 1, 0},
{ 8, s_2_20, -1, 1, 0},
{ 4, s_2_21, -1, 1, 0},
{ 8, s_2_22, -1, 1, 0},
{ 4, s_2_23, -1, 1, 0},
{ 6, s_2_24, -1, 1, 0},
{ 4, s_2_25, -1, 1, 0},
{ 6, s_2_26, 25, 1, 0},
{ 8, s_2_27, 25, 1, 0},
{ 4, s_2_28, -1, 1, 0},
{ 8, s_2_29, -1, 1, 0},
{ 14, s_2_30, 29, 1, 0},
{ 4, s_2_31, -1, 1, 0},
{ 8, s_2_32, 31, 1, 0},
{ 6, s_2_33, 31, 1, 0},
{ 8, s_2_34, 31, 1, 0},
{ 8, s_2_35, -1, 1, 0},
{ 6, s_2_36, -1, 1, 0},
{ 4, s_2_37, -1, 1, 0},
{ 6, s_2_38, -1, 1, 0},
{ 8, s_2_39, -1, 1, 0}
};
static const symbol s_3_0[4] = { 0xD5, 0xA5, 0xD6, 0x80 };
static const symbol s_3_1[6] = { 0xD5, 0xB6, 0xD5, 0xA5, 0xD6, 0x80 };
static const symbol s_3_2[2] = { 0xD6, 0x81 };
static const symbol s_3_3[6] = { 0xD5, 0xB8, 0xD6, 0x82, 0xD6, 0x81 };
static const symbol s_3_4[4] = { 0xD5, 0xAB, 0xD6, 0x81 };
static const symbol s_3_5[8] = { 0xD5, 0xA5, 0xD6, 0x80, 0xD5, 0xAB, 0xD6, 0x81 };
static const symbol s_3_6[10] = { 0xD5, 0xB6, 0xD5, 0xA5, 0xD6, 0x80, 0xD5, 0xAB, 0xD6, 0x81 };
static const symbol s_3_7[6] = { 0xD6, 0x81, 0xD5, 0xAB, 0xD6, 0x81 };
static const symbol s_3_8[10] = { 0xD5, 0xBE, 0xD5, 0xA1, 0xD5, 0xB6, 0xD5, 0xAB, 0xD6, 0x81 };
static const symbol s_3_9[8] = { 0xD5, 0xB8, 0xD5, 0xBB, 0xD5, 0xAB, 0xD6, 0x81 };
static const symbol s_3_10[6] = { 0xD5, 0xBE, 0xD5, 0xAB, 0xD6, 0x81 };
static const symbol s_3_11[4] = { 0xD5, 0xB8, 0xD6, 0x81 };
static const symbol s_3_12[4] = { 0xD5, 0xBD, 0xD5, 0xA1 };
static const symbol s_3_13[4] = { 0xD5, 0xBE, 0xD5, 0xA1 };
static const symbol s_3_14[6] = { 0xD5, 0xA1, 0xD5, 0xB4, 0xD5, 0xA2 };
static const symbol s_3_15[2] = { 0xD5, 0xA4 };
static const symbol s_3_16[6] = { 0xD5, 0xA5, 0xD6, 0x80, 0xD5, 0xA4 };
static const symbol s_3_17[8] = { 0xD5, 0xB6, 0xD5, 0xA5, 0xD6, 0x80, 0xD5, 0xA4 };
static const symbol s_3_18[6] = { 0xD5, 0xB8, 0xD6, 0x82, 0xD5, 0xA4 };
static const symbol s_3_19[6] = { 0xD5, 0xA1, 0xD5, 0xB6, 0xD5, 0xA4 };
static const symbol s_3_20[14] = { 0xD5, 0xB8, 0xD6, 0x82, 0xD5, 0xA9, 0xD5, 0xB5, 0xD5, 0xA1, 0xD5, 0xB6, 0xD5, 0xA4 };
static const symbol s_3_21[8] = { 0xD5, 0xBE, 0xD5, 0xA1, 0xD5, 0xB6, 0xD5, 0xA4 };
static const symbol s_3_22[6] = { 0xD5, 0xB8, 0xD5, 0xBB, 0xD5, 0xA4 };
static const symbol s_3_23[2] = { 0xD5, 0xA8 };
static const symbol s_3_24[6] = { 0xD5, 0xA5, 0xD6, 0x80, 0xD5, 0xA8 };
static const symbol s_3_25[8] = { 0xD5, 0xB6, 0xD5, 0xA5, 0xD6, 0x80, 0xD5, 0xA8 };
static const symbol s_3_26[6] = { 0xD5, 0xA1, 0xD5, 0xB6, 0xD5, 0xA8 };
static const symbol s_3_27[14] = { 0xD5, 0xB8, 0xD6, 0x82, 0xD5, 0xA9, 0xD5, 0xB5, 0xD5, 0xA1, 0xD5, 0xB6, 0xD5, 0xA8 };
static const symbol s_3_28[8] = { 0xD5, 0xBE, 0xD5, 0xA1, 0xD5, 0xB6, 0xD5, 0xA8 };
static const symbol s_3_29[6] = { 0xD5, 0xB8, 0xD5, 0xBB, 0xD5, 0xA8 };
static const symbol s_3_30[2] = { 0xD5, 0xAB };
static const symbol s_3_31[6] = { 0xD5, 0xA5, 0xD6, 0x80, 0xD5, 0xAB };
static const symbol s_3_32[8] = { 0xD5, 0xB6, 0xD5, 0xA5, 0xD6, 0x80, 0xD5, 0xAB };
static const symbol s_3_33[4] = { 0xD5, 0xBE, 0xD5, 0xAB };
static const symbol s_3_34[10] = { 0xD5, 0xA5, 0xD6, 0x80, 0xD5, 0xB8, 0xD6, 0x82, 0xD5, 0xB4 };
static const symbol s_3_35[12] = { 0xD5, 0xB6, 0xD5, 0xA5, 0xD6, 0x80, 0xD5, 0xB8, 0xD6, 0x82, 0xD5, 0xB4 };
static const symbol s_3_36[10] = { 0xD5, 0xA1, 0xD5, 0xB6, 0xD5, 0xB8, 0xD6, 0x82, 0xD5, 0xB4 };
static const symbol s_3_37[2] = { 0xD5, 0xB6 };
static const symbol s_3_38[6] = { 0xD5, 0xA5, 0xD6, 0x80, 0xD5, 0xB6 };
static const symbol s_3_39[8] = { 0xD5, 0xB6, 0xD5, 0xA5, 0xD6, 0x80, 0xD5, 0xB6 };
static const symbol s_3_40[6] = { 0xD5, 0xB8, 0xD6, 0x82, 0xD5, 0xB6 };
static const symbol s_3_41[4] = { 0xD5, 0xA1, 0xD5, 0xB6 };
static const symbol s_3_42[12] = { 0xD5, 0xB8, 0xD6, 0x82, 0xD5, 0xA9, 0xD5, 0xB5, 0xD5, 0xA1, 0xD5, 0xB6 };
static const symbol s_3_43[6] = { 0xD5, 0xBE, 0xD5, 0xA1, 0xD5, 0xB6 };
static const symbol s_3_44[4] = { 0xD5, 0xAB, 0xD5, 0xB6 };
static const symbol s_3_45[8] = { 0xD5, 0xA5, 0xD6, 0x80, 0xD5, 0xAB, 0xD5, 0xB6 };
static const symbol s_3_46[10] = { 0xD5, 0xB6, 0xD5, 0xA5, 0xD6, 0x80, 0xD5, 0xAB, 0xD5, 0xB6 };
static const symbol s_3_47[14] = { 0xD5, 0xB8, 0xD6, 0x82, 0xD5, 0xA9, 0xD5, 0xB5, 0xD5, 0xA1, 0xD5, 0xB6, 0xD5, 0xB6 };
static const symbol s_3_48[4] = { 0xD5, 0xB8, 0xD5, 0xBB };
static const symbol s_3_49[14] = { 0xD5, 0xB8, 0xD6, 0x82, 0xD5, 0xA9, 0xD5, 0xB5, 0xD5, 0xA1, 0xD5, 0xB6, 0xD5, 0xBD };
static const symbol s_3_50[8] = { 0xD5, 0xBE, 0xD5, 0xA1, 0xD5, 0xB6, 0xD5, 0xBD };
static const symbol s_3_51[6] = { 0xD5, 0xB8, 0xD5, 0xBB, 0xD5, 0xBD };
static const symbol s_3_52[4] = { 0xD5, 0xB8, 0xD5, 0xBE };
static const symbol s_3_53[8] = { 0xD5, 0xA5, 0xD6, 0x80, 0xD5, 0xB8, 0xD5, 0xBE };
static const symbol s_3_54[10] = { 0xD5, 0xB6, 0xD5, 0xA5, 0xD6, 0x80, 0xD5, 0xB8, 0xD5, 0xBE };
static const symbol s_3_55[8] = { 0xD5, 0xA1, 0xD5, 0xB6, 0xD5, 0xB8, 0xD5, 0xBE };
static const symbol s_3_56[6] = { 0xD5, 0xBE, 0xD5, 0xB8, 0xD5, 0xBE };
static const struct among a_3[57] =
{
{ 4, s_3_0, -1, 1, 0},
{ 6, s_3_1, 0, 1, 0},
{ 2, s_3_2, -1, 1, 0},
{ 6, s_3_3, 2, 1, 0},
{ 4, s_3_4, 2, 1, 0},
{ 8, s_3_5, 4, 1, 0},
{ 10, s_3_6, 5, 1, 0},
{ 6, s_3_7, 4, 1, 0},
{ 10, s_3_8, 4, 1, 0},
{ 8, s_3_9, 4, 1, 0},
{ 6, s_3_10, 4, 1, 0},
{ 4, s_3_11, 2, 1, 0},
{ 4, s_3_12, -1, 1, 0},
{ 4, s_3_13, -1, 1, 0},
{ 6, s_3_14, -1, 1, 0},
{ 2, s_3_15, -1, 1, 0},
{ 6, s_3_16, 15, 1, 0},
{ 8, s_3_17, 16, 1, 0},
{ 6, s_3_18, 15, 1, 0},
{ 6, s_3_19, 15, 1, 0},
{ 14, s_3_20, 19, 1, 0},
{ 8, s_3_21, 19, 1, 0},
{ 6, s_3_22, 15, 1, 0},
{ 2, s_3_23, -1, 1, 0},
{ 6, s_3_24, 23, 1, 0},
{ 8, s_3_25, 24, 1, 0},
{ 6, s_3_26, 23, 1, 0},
{ 14, s_3_27, 26, 1, 0},
{ 8, s_3_28, 26, 1, 0},
{ 6, s_3_29, 23, 1, 0},
{ 2, s_3_30, -1, 1, 0},
{ 6, s_3_31, 30, 1, 0},
{ 8, s_3_32, 31, 1, 0},
{ 4, s_3_33, 30, 1, 0},
{ 10, s_3_34, -1, 1, 0},
{ 12, s_3_35, 34, 1, 0},
{ 10, s_3_36, -1, 1, 0},
{ 2, s_3_37, -1, 1, 0},
{ 6, s_3_38, 37, 1, 0},
{ 8, s_3_39, 38, 1, 0},
{ 6, s_3_40, 37, 1, 0},
{ 4, s_3_41, 37, 1, 0},
{ 12, s_3_42, 41, 1, 0},
{ 6, s_3_43, 41, 1, 0},
{ 4, s_3_44, 37, 1, 0},
{ 8, s_3_45, 44, 1, 0},
{ 10, s_3_46, 45, 1, 0},
{ 14, s_3_47, 37, 1, 0},
{ 4, s_3_48, -1, 1, 0},
{ 14, s_3_49, -1, 1, 0},
{ 8, s_3_50, -1, 1, 0},
{ 6, s_3_51, -1, 1, 0},
{ 4, s_3_52, -1, 1, 0},
{ 8, s_3_53, 52, 1, 0},
{ 10, s_3_54, 53, 1, 0},
{ 8, s_3_55, 52, 1, 0},
{ 6, s_3_56, 52, 1, 0}
};
static const unsigned char g_v[] = { 209, 4, 128, 0, 18 };
static int r_mark_regions(struct SN_env * z) {
z->I[1] = z->l;
z->I[0] = z->l;
{ int c1 = z->c;
{
int ret = out_grouping_U(z, g_v, 1377, 1413, 1);
if (ret < 0) goto lab0;
z->c += ret;
}
z->I[1] = z->c;
{
int ret = in_grouping_U(z, g_v, 1377, 1413, 1);
if (ret < 0) goto lab0;
z->c += ret;
}
{
int ret = out_grouping_U(z, g_v, 1377, 1413, 1);
if (ret < 0) goto lab0;
z->c += ret;
}
{
int ret = in_grouping_U(z, g_v, 1377, 1413, 1);
if (ret < 0) goto lab0;
z->c += ret;
}
z->I[0] = z->c;
lab0:
z->c = c1;
}
return 1;
}
static int r_R2(struct SN_env * z) {
if (!(z->I[0] <= z->c)) return 0;
return 1;
}
static int r_adjective(struct SN_env * z) {
z->ket = z->c;
if (!(find_among_b(z, a_0, 23))) return 0;
z->bra = z->c;
{ int ret = slice_del(z);
if (ret < 0) return ret;
}
return 1;
}
static int r_verb(struct SN_env * z) {
z->ket = z->c;
if (!(find_among_b(z, a_1, 71))) return 0;
z->bra = z->c;
{ int ret = slice_del(z);
if (ret < 0) return ret;
}
return 1;
}
static int r_noun(struct SN_env * z) {
z->ket = z->c;
if (!(find_among_b(z, a_2, 40))) return 0;
z->bra = z->c;
{ int ret = slice_del(z);
if (ret < 0) return ret;
}
return 1;
}
static int r_ending(struct SN_env * z) {
z->ket = z->c;
if (!(find_among_b(z, a_3, 57))) return 0;
z->bra = z->c;
{ int ret = r_R2(z);
if (ret <= 0) return ret;
}
{ int ret = slice_del(z);
if (ret < 0) return ret;
}
return 1;
}
extern int armenian_UTF_8_stem(struct SN_env * z) {
{ int ret = r_mark_regions(z);
if (ret < 0) return ret;
}
z->lb = z->c; z->c = z->l;
{ int mlimit1;
if (z->c < z->I[1]) return 0;
mlimit1 = z->lb; z->lb = z->I[1];
{ int m2 = z->l - z->c; (void)m2;
{ int ret = r_ending(z);
if (ret < 0) return ret;
}
z->c = z->l - m2;
}
{ int m3 = z->l - z->c; (void)m3;
{ int ret = r_verb(z);
if (ret < 0) return ret;
}
z->c = z->l - m3;
}
{ int m4 = z->l - z->c; (void)m4;
{ int ret = r_adjective(z);
if (ret < 0) return ret;
}
z->c = z->l - m4;
}
{ int m5 = z->l - z->c; (void)m5;
{ int ret = r_noun(z);
if (ret < 0) return ret;
}
z->c = z->l - m5;
}
z->lb = mlimit1;
}
z->c = z->lb;
return 1;
}
extern struct SN_env * armenian_UTF_8_create_env(void) { return SN_create_env(0, 2); }
extern void armenian_UTF_8_close_env(struct SN_env * z) { SN_close_env(z, 0); }