1 /* Generated by Snowball 2.1.0 - https://snowballstem.org/ */
2 
3 #include "header.h"
4 
5 #ifdef __cplusplus
6 extern "C" {
7 #endif
8 extern int finnish_ISO_8859_1_stem(struct SN_env * z);
9 #ifdef __cplusplus
10 }
11 #endif
12 static int r_tidy(struct SN_env * z);
13 static int r_other_endings(struct SN_env * z);
14 static int r_t_plural(struct SN_env * z);
15 static int r_i_plural(struct SN_env * z);
16 static int r_case_ending(struct SN_env * z);
17 static int r_VI(struct SN_env * z);
18 static int r_LONG(struct SN_env * z);
19 static int r_possessive(struct SN_env * z);
20 static int r_particle_etc(struct SN_env * z);
21 static int r_R2(struct SN_env * z);
22 static int r_mark_regions(struct SN_env * z);
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
27 
28 extern struct SN_env * finnish_ISO_8859_1_create_env(void);
29 extern void finnish_ISO_8859_1_close_env(struct SN_env * z);
30 
31 
32 #ifdef __cplusplus
33 }
34 #endif
35 static const symbol s_0_0[2] = { 'p', 'a' };
36 static const symbol s_0_1[3] = { 's', 't', 'i' };
37 static const symbol s_0_2[4] = { 'k', 'a', 'a', 'n' };
38 static const symbol s_0_3[3] = { 'h', 'a', 'n' };
39 static const symbol s_0_4[3] = { 'k', 'i', 'n' };
40 static const symbol s_0_5[3] = { 'h', 0xE4, 'n' };
41 static const symbol s_0_6[4] = { 'k', 0xE4, 0xE4, 'n' };
42 static const symbol s_0_7[2] = { 'k', 'o' };
43 static const symbol s_0_8[2] = { 'p', 0xE4 };
44 static const symbol s_0_9[2] = { 'k', 0xF6 };
45 
46 static const struct among a_0[10] =
47 {
48 { 2, s_0_0, -1, 1, 0},
49 { 3, s_0_1, -1, 2, 0},
50 { 4, s_0_2, -1, 1, 0},
51 { 3, s_0_3, -1, 1, 0},
52 { 3, s_0_4, -1, 1, 0},
53 { 3, s_0_5, -1, 1, 0},
54 { 4, s_0_6, -1, 1, 0},
55 { 2, s_0_7, -1, 1, 0},
56 { 2, s_0_8, -1, 1, 0},
57 { 2, s_0_9, -1, 1, 0}
58 };
59 
60 static const symbol s_1_0[3] = { 'l', 'l', 'a' };
61 static const symbol s_1_1[2] = { 'n', 'a' };
62 static const symbol s_1_2[3] = { 's', 's', 'a' };
63 static const symbol s_1_3[2] = { 't', 'a' };
64 static const symbol s_1_4[3] = { 'l', 't', 'a' };
65 static const symbol s_1_5[3] = { 's', 't', 'a' };
66 
67 static const struct among a_1[6] =
68 {
69 { 3, s_1_0, -1, -1, 0},
70 { 2, s_1_1, -1, -1, 0},
71 { 3, s_1_2, -1, -1, 0},
72 { 2, s_1_3, -1, -1, 0},
73 { 3, s_1_4, 3, -1, 0},
74 { 3, s_1_5, 3, -1, 0}
75 };
76 
77 static const symbol s_2_0[3] = { 'l', 'l', 0xE4 };
78 static const symbol s_2_1[2] = { 'n', 0xE4 };
79 static const symbol s_2_2[3] = { 's', 's', 0xE4 };
80 static const symbol s_2_3[2] = { 't', 0xE4 };
81 static const symbol s_2_4[3] = { 'l', 't', 0xE4 };
82 static const symbol s_2_5[3] = { 's', 't', 0xE4 };
83 
84 static const struct among a_2[6] =
85 {
86 { 3, s_2_0, -1, -1, 0},
87 { 2, s_2_1, -1, -1, 0},
88 { 3, s_2_2, -1, -1, 0},
89 { 2, s_2_3, -1, -1, 0},
90 { 3, s_2_4, 3, -1, 0},
91 { 3, s_2_5, 3, -1, 0}
92 };
93 
94 static const symbol s_3_0[3] = { 'l', 'l', 'e' };
95 static const symbol s_3_1[3] = { 'i', 'n', 'e' };
96 
97 static const struct among a_3[2] =
98 {
99 { 3, s_3_0, -1, -1, 0},
100 { 3, s_3_1, -1, -1, 0}
101 };
102 
103 static const symbol s_4_0[3] = { 'n', 's', 'a' };
104 static const symbol s_4_1[3] = { 'm', 'm', 'e' };
105 static const symbol s_4_2[3] = { 'n', 'n', 'e' };
106 static const symbol s_4_3[2] = { 'n', 'i' };
107 static const symbol s_4_4[2] = { 's', 'i' };
108 static const symbol s_4_5[2] = { 'a', 'n' };
109 static const symbol s_4_6[2] = { 'e', 'n' };
110 static const symbol s_4_7[2] = { 0xE4, 'n' };
111 static const symbol s_4_8[3] = { 'n', 's', 0xE4 };
112 
113 static const struct among a_4[9] =
114 {
115 { 3, s_4_0, -1, 3, 0},
116 { 3, s_4_1, -1, 3, 0},
117 { 3, s_4_2, -1, 3, 0},
118 { 2, s_4_3, -1, 2, 0},
119 { 2, s_4_4, -1, 1, 0},
120 { 2, s_4_5, -1, 4, 0},
121 { 2, s_4_6, -1, 6, 0},
122 { 2, s_4_7, -1, 5, 0},
123 { 3, s_4_8, -1, 3, 0}
124 };
125 
126 static const symbol s_5_0[2] = { 'a', 'a' };
127 static const symbol s_5_1[2] = { 'e', 'e' };
128 static const symbol s_5_2[2] = { 'i', 'i' };
129 static const symbol s_5_3[2] = { 'o', 'o' };
130 static const symbol s_5_4[2] = { 'u', 'u' };
131 static const symbol s_5_5[2] = { 0xE4, 0xE4 };
132 static const symbol s_5_6[2] = { 0xF6, 0xF6 };
133 
134 static const struct among a_5[7] =
135 {
136 { 2, s_5_0, -1, -1, 0},
137 { 2, s_5_1, -1, -1, 0},
138 { 2, s_5_2, -1, -1, 0},
139 { 2, s_5_3, -1, -1, 0},
140 { 2, s_5_4, -1, -1, 0},
141 { 2, s_5_5, -1, -1, 0},
142 { 2, s_5_6, -1, -1, 0}
143 };
144 
145 static const symbol s_6_0[1] = { 'a' };
146 static const symbol s_6_1[3] = { 'l', 'l', 'a' };
147 static const symbol s_6_2[2] = { 'n', 'a' };
148 static const symbol s_6_3[3] = { 's', 's', 'a' };
149 static const symbol s_6_4[2] = { 't', 'a' };
150 static const symbol s_6_5[3] = { 'l', 't', 'a' };
151 static const symbol s_6_6[3] = { 's', 't', 'a' };
152 static const symbol s_6_7[3] = { 't', 't', 'a' };
153 static const symbol s_6_8[3] = { 'l', 'l', 'e' };
154 static const symbol s_6_9[3] = { 'i', 'n', 'e' };
155 static const symbol s_6_10[3] = { 'k', 's', 'i' };
156 static const symbol s_6_11[1] = { 'n' };
157 static const symbol s_6_12[3] = { 'h', 'a', 'n' };
158 static const symbol s_6_13[3] = { 'd', 'e', 'n' };
159 static const symbol s_6_14[4] = { 's', 'e', 'e', 'n' };
160 static const symbol s_6_15[3] = { 'h', 'e', 'n' };
161 static const symbol s_6_16[4] = { 't', 't', 'e', 'n' };
162 static const symbol s_6_17[3] = { 'h', 'i', 'n' };
163 static const symbol s_6_18[4] = { 's', 'i', 'i', 'n' };
164 static const symbol s_6_19[3] = { 'h', 'o', 'n' };
165 static const symbol s_6_20[3] = { 'h', 0xE4, 'n' };
166 static const symbol s_6_21[3] = { 'h', 0xF6, 'n' };
167 static const symbol s_6_22[1] = { 0xE4 };
168 static const symbol s_6_23[3] = { 'l', 'l', 0xE4 };
169 static const symbol s_6_24[2] = { 'n', 0xE4 };
170 static const symbol s_6_25[3] = { 's', 's', 0xE4 };
171 static const symbol s_6_26[2] = { 't', 0xE4 };
172 static const symbol s_6_27[3] = { 'l', 't', 0xE4 };
173 static const symbol s_6_28[3] = { 's', 't', 0xE4 };
174 static const symbol s_6_29[3] = { 't', 't', 0xE4 };
175 
176 static const struct among a_6[30] =
177 {
178 { 1, s_6_0, -1, 8, 0},
179 { 3, s_6_1, 0, -1, 0},
180 { 2, s_6_2, 0, -1, 0},
181 { 3, s_6_3, 0, -1, 0},
182 { 2, s_6_4, 0, -1, 0},
183 { 3, s_6_5, 4, -1, 0},
184 { 3, s_6_6, 4, -1, 0},
185 { 3, s_6_7, 4, 2, 0},
186 { 3, s_6_8, -1, -1, 0},
187 { 3, s_6_9, -1, -1, 0},
188 { 3, s_6_10, -1, -1, 0},
189 { 1, s_6_11, -1, 7, 0},
190 { 3, s_6_12, 11, 1, 0},
191 { 3, s_6_13, 11, -1, r_VI},
192 { 4, s_6_14, 11, -1, r_LONG},
193 { 3, s_6_15, 11, 2, 0},
194 { 4, s_6_16, 11, -1, r_VI},
195 { 3, s_6_17, 11, 3, 0},
196 { 4, s_6_18, 11, -1, r_VI},
197 { 3, s_6_19, 11, 4, 0},
198 { 3, s_6_20, 11, 5, 0},
199 { 3, s_6_21, 11, 6, 0},
200 { 1, s_6_22, -1, 8, 0},
201 { 3, s_6_23, 22, -1, 0},
202 { 2, s_6_24, 22, -1, 0},
203 { 3, s_6_25, 22, -1, 0},
204 { 2, s_6_26, 22, -1, 0},
205 { 3, s_6_27, 26, -1, 0},
206 { 3, s_6_28, 26, -1, 0},
207 { 3, s_6_29, 26, 2, 0}
208 };
209 
210 static const symbol s_7_0[3] = { 'e', 'j', 'a' };
211 static const symbol s_7_1[3] = { 'm', 'm', 'a' };
212 static const symbol s_7_2[4] = { 'i', 'm', 'm', 'a' };
213 static const symbol s_7_3[3] = { 'm', 'p', 'a' };
214 static const symbol s_7_4[4] = { 'i', 'm', 'p', 'a' };
215 static const symbol s_7_5[3] = { 'm', 'm', 'i' };
216 static const symbol s_7_6[4] = { 'i', 'm', 'm', 'i' };
217 static const symbol s_7_7[3] = { 'm', 'p', 'i' };
218 static const symbol s_7_8[4] = { 'i', 'm', 'p', 'i' };
219 static const symbol s_7_9[3] = { 'e', 'j', 0xE4 };
220 static const symbol s_7_10[3] = { 'm', 'm', 0xE4 };
221 static const symbol s_7_11[4] = { 'i', 'm', 'm', 0xE4 };
222 static const symbol s_7_12[3] = { 'm', 'p', 0xE4 };
223 static const symbol s_7_13[4] = { 'i', 'm', 'p', 0xE4 };
224 
225 static const struct among a_7[14] =
226 {
227 { 3, s_7_0, -1, -1, 0},
228 { 3, s_7_1, -1, 1, 0},
229 { 4, s_7_2, 1, -1, 0},
230 { 3, s_7_3, -1, 1, 0},
231 { 4, s_7_4, 3, -1, 0},
232 { 3, s_7_5, -1, 1, 0},
233 { 4, s_7_6, 5, -1, 0},
234 { 3, s_7_7, -1, 1, 0},
235 { 4, s_7_8, 7, -1, 0},
236 { 3, s_7_9, -1, -1, 0},
237 { 3, s_7_10, -1, 1, 0},
238 { 4, s_7_11, 10, -1, 0},
239 { 3, s_7_12, -1, 1, 0},
240 { 4, s_7_13, 12, -1, 0}
241 };
242 
243 static const symbol s_8_0[1] = { 'i' };
244 static const symbol s_8_1[1] = { 'j' };
245 
246 static const struct among a_8[2] =
247 {
248 { 1, s_8_0, -1, -1, 0},
249 { 1, s_8_1, -1, -1, 0}
250 };
251 
252 static const symbol s_9_0[3] = { 'm', 'm', 'a' };
253 static const symbol s_9_1[4] = { 'i', 'm', 'm', 'a' };
254 
255 static const struct among a_9[2] =
256 {
257 { 3, s_9_0, -1, 1, 0},
258 { 4, s_9_1, 0, -1, 0}
259 };
260 
261 static const unsigned char g_AEI[] = { 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8 };
262 
263 static const unsigned char g_C[] = { 119, 223, 119, 1 };
264 
265 static const unsigned char g_V1[] = { 17, 65, 16, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 32 };
266 
267 static const unsigned char g_V2[] = { 17, 65, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 32 };
268 
269 static const unsigned char g_particle_end[] = { 17, 97, 24, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 32 };
270 
271 static const symbol s_0[] = { 'k', 's', 'e' };
272 static const symbol s_1[] = { 'k', 's', 'i' };
273 static const symbol s_2[] = { 'i', 'e' };
274 static const symbol s_3[] = { 'p', 'o' };
275 static const symbol s_4[] = { 'p', 'o' };
276 
r_mark_regions(struct SN_env * z)277 static int r_mark_regions(struct SN_env * z) {
278     z->I[1] = z->l;
279     z->I[0] = z->l;
280     if (out_grouping(z, g_V1, 97, 246, 1) < 0) return 0;
281     {
282         int ret = in_grouping(z, g_V1, 97, 246, 1);
283         if (ret < 0) return 0;
284         z->c += ret;
285     }
286     z->I[1] = z->c;
287     if (out_grouping(z, g_V1, 97, 246, 1) < 0) return 0;
288     {
289         int ret = in_grouping(z, g_V1, 97, 246, 1);
290         if (ret < 0) return 0;
291         z->c += ret;
292     }
293     z->I[0] = z->c;
294     return 1;
295 }
296 
r_R2(struct SN_env * z)297 static int r_R2(struct SN_env * z) {
298     if (!(z->I[0] <= z->c)) return 0;
299     return 1;
300 }
301 
r_particle_etc(struct SN_env * z)302 static int r_particle_etc(struct SN_env * z) {
303     int among_var;
304 
305     {   int mlimit1;
306         if (z->c < z->I[1]) return 0;
307         mlimit1 = z->lb; z->lb = z->I[1];
308         z->ket = z->c;
309         among_var = find_among_b(z, a_0, 10);
310         if (!(among_var)) { z->lb = mlimit1; return 0; }
311         z->bra = z->c;
312         z->lb = mlimit1;
313     }
314     switch (among_var) {
315         case 1:
316             if (in_grouping_b(z, g_particle_end, 97, 246, 0)) return 0;
317             break;
318         case 2:
319             {   int ret = r_R2(z);
320                 if (ret <= 0) return ret;
321             }
322             break;
323     }
324     {   int ret = slice_del(z);
325         if (ret < 0) return ret;
326     }
327     return 1;
328 }
329 
r_possessive(struct SN_env * z)330 static int r_possessive(struct SN_env * z) {
331     int among_var;
332 
333     {   int mlimit1;
334         if (z->c < z->I[1]) return 0;
335         mlimit1 = z->lb; z->lb = z->I[1];
336         z->ket = z->c;
337         among_var = find_among_b(z, a_4, 9);
338         if (!(among_var)) { z->lb = mlimit1; return 0; }
339         z->bra = z->c;
340         z->lb = mlimit1;
341     }
342     switch (among_var) {
343         case 1:
344             {   int m2 = z->l - z->c; (void)m2;
345                 if (z->c <= z->lb || z->p[z->c - 1] != 'k') goto lab0;
346                 z->c--;
347                 return 0;
348             lab0:
349                 z->c = z->l - m2;
350             }
351             {   int ret = slice_del(z);
352                 if (ret < 0) return ret;
353             }
354             break;
355         case 2:
356             {   int ret = slice_del(z);
357                 if (ret < 0) return ret;
358             }
359             z->ket = z->c;
360             if (!(eq_s_b(z, 3, s_0))) return 0;
361             z->bra = z->c;
362             {   int ret = slice_from_s(z, 3, s_1);
363                 if (ret < 0) return ret;
364             }
365             break;
366         case 3:
367             {   int ret = slice_del(z);
368                 if (ret < 0) return ret;
369             }
370             break;
371         case 4:
372             if (z->c - 1 <= z->lb || z->p[z->c - 1] != 97) return 0;
373             if (!(find_among_b(z, a_1, 6))) return 0;
374             {   int ret = slice_del(z);
375                 if (ret < 0) return ret;
376             }
377             break;
378         case 5:
379             if (z->c - 1 <= z->lb || z->p[z->c - 1] != 228) return 0;
380             if (!(find_among_b(z, a_2, 6))) return 0;
381             {   int ret = slice_del(z);
382                 if (ret < 0) return ret;
383             }
384             break;
385         case 6:
386             if (z->c - 2 <= z->lb || z->p[z->c - 1] != 101) return 0;
387             if (!(find_among_b(z, a_3, 2))) return 0;
388             {   int ret = slice_del(z);
389                 if (ret < 0) return ret;
390             }
391             break;
392     }
393     return 1;
394 }
395 
r_LONG(struct SN_env * z)396 static int r_LONG(struct SN_env * z) {
397     if (!(find_among_b(z, a_5, 7))) return 0;
398     return 1;
399 }
400 
r_VI(struct SN_env * z)401 static int r_VI(struct SN_env * z) {
402     if (z->c <= z->lb || z->p[z->c - 1] != 'i') return 0;
403     z->c--;
404     if (in_grouping_b(z, g_V2, 97, 246, 0)) return 0;
405     return 1;
406 }
407 
r_case_ending(struct SN_env * z)408 static int r_case_ending(struct SN_env * z) {
409     int among_var;
410 
411     {   int mlimit1;
412         if (z->c < z->I[1]) return 0;
413         mlimit1 = z->lb; z->lb = z->I[1];
414         z->ket = z->c;
415         among_var = find_among_b(z, a_6, 30);
416         if (!(among_var)) { z->lb = mlimit1; return 0; }
417         z->bra = z->c;
418         z->lb = mlimit1;
419     }
420     switch (among_var) {
421         case 1:
422             if (z->c <= z->lb || z->p[z->c - 1] != 'a') return 0;
423             z->c--;
424             break;
425         case 2:
426             if (z->c <= z->lb || z->p[z->c - 1] != 'e') return 0;
427             z->c--;
428             break;
429         case 3:
430             if (z->c <= z->lb || z->p[z->c - 1] != 'i') return 0;
431             z->c--;
432             break;
433         case 4:
434             if (z->c <= z->lb || z->p[z->c - 1] != 'o') return 0;
435             z->c--;
436             break;
437         case 5:
438             if (z->c <= z->lb || z->p[z->c - 1] != 0xE4) return 0;
439             z->c--;
440             break;
441         case 6:
442             if (z->c <= z->lb || z->p[z->c - 1] != 0xF6) return 0;
443             z->c--;
444             break;
445         case 7:
446             {   int m2 = z->l - z->c; (void)m2;
447                 {   int m3 = z->l - z->c; (void)m3;
448                     {   int m4 = z->l - z->c; (void)m4;
449                         {   int ret = r_LONG(z);
450                             if (ret == 0) goto lab2;
451                             if (ret < 0) return ret;
452                         }
453                         goto lab1;
454                     lab2:
455                         z->c = z->l - m4;
456                         if (!(eq_s_b(z, 2, s_2))) { z->c = z->l - m2; goto lab0; }
457                     }
458                 lab1:
459                     z->c = z->l - m3;
460                     if (z->c <= z->lb) { z->c = z->l - m2; goto lab0; }
461                     z->c--;
462                 }
463                 z->bra = z->c;
464             lab0:
465                 ;
466             }
467             break;
468         case 8:
469             if (in_grouping_b(z, g_V1, 97, 246, 0)) return 0;
470             if (in_grouping_b(z, g_C, 98, 122, 0)) return 0;
471             break;
472     }
473     {   int ret = slice_del(z);
474         if (ret < 0) return ret;
475     }
476     z->I[2] = 1;
477     return 1;
478 }
479 
r_other_endings(struct SN_env * z)480 static int r_other_endings(struct SN_env * z) {
481     int among_var;
482 
483     {   int mlimit1;
484         if (z->c < z->I[0]) return 0;
485         mlimit1 = z->lb; z->lb = z->I[0];
486         z->ket = z->c;
487         among_var = find_among_b(z, a_7, 14);
488         if (!(among_var)) { z->lb = mlimit1; return 0; }
489         z->bra = z->c;
490         z->lb = mlimit1;
491     }
492     switch (among_var) {
493         case 1:
494             {   int m2 = z->l - z->c; (void)m2;
495                 if (!(eq_s_b(z, 2, s_3))) goto lab0;
496                 return 0;
497             lab0:
498                 z->c = z->l - m2;
499             }
500             break;
501     }
502     {   int ret = slice_del(z);
503         if (ret < 0) return ret;
504     }
505     return 1;
506 }
507 
r_i_plural(struct SN_env * z)508 static int r_i_plural(struct SN_env * z) {
509 
510     {   int mlimit1;
511         if (z->c < z->I[1]) return 0;
512         mlimit1 = z->lb; z->lb = z->I[1];
513         z->ket = z->c;
514         if (z->c <= z->lb || (z->p[z->c - 1] != 105 && z->p[z->c - 1] != 106)) { z->lb = mlimit1; return 0; }
515         if (!(find_among_b(z, a_8, 2))) { z->lb = mlimit1; return 0; }
516         z->bra = z->c;
517         z->lb = mlimit1;
518     }
519     {   int ret = slice_del(z);
520         if (ret < 0) return ret;
521     }
522     return 1;
523 }
524 
r_t_plural(struct SN_env * z)525 static int r_t_plural(struct SN_env * z) {
526     int among_var;
527 
528     {   int mlimit1;
529         if (z->c < z->I[1]) return 0;
530         mlimit1 = z->lb; z->lb = z->I[1];
531         z->ket = z->c;
532         if (z->c <= z->lb || z->p[z->c - 1] != 't') { z->lb = mlimit1; return 0; }
533         z->c--;
534         z->bra = z->c;
535         {   int m_test2 = z->l - z->c;
536             if (in_grouping_b(z, g_V1, 97, 246, 0)) { z->lb = mlimit1; return 0; }
537             z->c = z->l - m_test2;
538         }
539         {   int ret = slice_del(z);
540             if (ret < 0) return ret;
541         }
542         z->lb = mlimit1;
543     }
544 
545     {   int mlimit3;
546         if (z->c < z->I[0]) return 0;
547         mlimit3 = z->lb; z->lb = z->I[0];
548         z->ket = z->c;
549         if (z->c - 2 <= z->lb || z->p[z->c - 1] != 97) { z->lb = mlimit3; return 0; }
550         among_var = find_among_b(z, a_9, 2);
551         if (!(among_var)) { z->lb = mlimit3; return 0; }
552         z->bra = z->c;
553         z->lb = mlimit3;
554     }
555     switch (among_var) {
556         case 1:
557             {   int m4 = z->l - z->c; (void)m4;
558                 if (!(eq_s_b(z, 2, s_4))) goto lab0;
559                 return 0;
560             lab0:
561                 z->c = z->l - m4;
562             }
563             break;
564     }
565     {   int ret = slice_del(z);
566         if (ret < 0) return ret;
567     }
568     return 1;
569 }
570 
r_tidy(struct SN_env * z)571 static int r_tidy(struct SN_env * z) {
572 
573     {   int mlimit1;
574         if (z->c < z->I[1]) return 0;
575         mlimit1 = z->lb; z->lb = z->I[1];
576         {   int m2 = z->l - z->c; (void)m2;
577             {   int m3 = z->l - z->c; (void)m3;
578                 {   int ret = r_LONG(z);
579                     if (ret == 0) goto lab0;
580                     if (ret < 0) return ret;
581                 }
582                 z->c = z->l - m3;
583                 z->ket = z->c;
584                 if (z->c <= z->lb) goto lab0;
585                 z->c--;
586                 z->bra = z->c;
587                 {   int ret = slice_del(z);
588                     if (ret < 0) return ret;
589                 }
590             }
591         lab0:
592             z->c = z->l - m2;
593         }
594         {   int m4 = z->l - z->c; (void)m4;
595             z->ket = z->c;
596             if (in_grouping_b(z, g_AEI, 97, 228, 0)) goto lab1;
597             z->bra = z->c;
598             if (in_grouping_b(z, g_C, 98, 122, 0)) goto lab1;
599             {   int ret = slice_del(z);
600                 if (ret < 0) return ret;
601             }
602         lab1:
603             z->c = z->l - m4;
604         }
605         {   int m5 = z->l - z->c; (void)m5;
606             z->ket = z->c;
607             if (z->c <= z->lb || z->p[z->c - 1] != 'j') goto lab2;
608             z->c--;
609             z->bra = z->c;
610             {   int m6 = z->l - z->c; (void)m6;
611                 if (z->c <= z->lb || z->p[z->c - 1] != 'o') goto lab4;
612                 z->c--;
613                 goto lab3;
614             lab4:
615                 z->c = z->l - m6;
616                 if (z->c <= z->lb || z->p[z->c - 1] != 'u') goto lab2;
617                 z->c--;
618             }
619         lab3:
620             {   int ret = slice_del(z);
621                 if (ret < 0) return ret;
622             }
623         lab2:
624             z->c = z->l - m5;
625         }
626         {   int m7 = z->l - z->c; (void)m7;
627             z->ket = z->c;
628             if (z->c <= z->lb || z->p[z->c - 1] != 'o') goto lab5;
629             z->c--;
630             z->bra = z->c;
631             if (z->c <= z->lb || z->p[z->c - 1] != 'j') goto lab5;
632             z->c--;
633             {   int ret = slice_del(z);
634                 if (ret < 0) return ret;
635             }
636         lab5:
637             z->c = z->l - m7;
638         }
639         z->lb = mlimit1;
640     }
641     if (in_grouping_b(z, g_V1, 97, 246, 1) < 0) return 0;
642     z->ket = z->c;
643     if (in_grouping_b(z, g_C, 98, 122, 0)) return 0;
644     z->bra = z->c;
645     z->S[0] = slice_to(z, z->S[0]);
646     if (z->S[0] == 0) return -1;
647     if (!(eq_v_b(z, z->S[0]))) return 0;
648     {   int ret = slice_del(z);
649         if (ret < 0) return ret;
650     }
651     return 1;
652 }
653 
finnish_ISO_8859_1_stem(struct SN_env * z)654 extern int finnish_ISO_8859_1_stem(struct SN_env * z) {
655     {   int c1 = z->c;
656         {   int ret = r_mark_regions(z);
657             if (ret < 0) return ret;
658         }
659         z->c = c1;
660     }
661     z->I[2] = 0;
662     z->lb = z->c; z->c = z->l;
663 
664     {   int m2 = z->l - z->c; (void)m2;
665         {   int ret = r_particle_etc(z);
666             if (ret < 0) return ret;
667         }
668         z->c = z->l - m2;
669     }
670     {   int m3 = z->l - z->c; (void)m3;
671         {   int ret = r_possessive(z);
672             if (ret < 0) return ret;
673         }
674         z->c = z->l - m3;
675     }
676     {   int m4 = z->l - z->c; (void)m4;
677         {   int ret = r_case_ending(z);
678             if (ret < 0) return ret;
679         }
680         z->c = z->l - m4;
681     }
682     {   int m5 = z->l - z->c; (void)m5;
683         {   int ret = r_other_endings(z);
684             if (ret < 0) return ret;
685         }
686         z->c = z->l - m5;
687     }
688 
689     if (!(z->I[2])) goto lab1;
690     {   int m6 = z->l - z->c; (void)m6;
691         {   int ret = r_i_plural(z);
692             if (ret < 0) return ret;
693         }
694         z->c = z->l - m6;
695     }
696     goto lab0;
697 lab1:
698     {   int m7 = z->l - z->c; (void)m7;
699         {   int ret = r_t_plural(z);
700             if (ret < 0) return ret;
701         }
702         z->c = z->l - m7;
703     }
704 lab0:
705     {   int m8 = z->l - z->c; (void)m8;
706         {   int ret = r_tidy(z);
707             if (ret < 0) return ret;
708         }
709         z->c = z->l - m8;
710     }
711     z->c = z->lb;
712     return 1;
713 }
714 
finnish_ISO_8859_1_create_env(void)715 extern struct SN_env * finnish_ISO_8859_1_create_env(void) { return SN_create_env(1, 3); }
716 
finnish_ISO_8859_1_close_env(struct SN_env * z)717 extern void finnish_ISO_8859_1_close_env(struct SN_env * z) { SN_close_env(z, 1); }
718 
719