xapian-core  1.4.29
english.cc
Go to the documentation of this file.
1 /* Generated by Snowball 2.0.0 - https://snowballstem.org/ */
2 
3 
4 #include <config.h>
5 #include <limits.h>
6 #include "english.h"
7 
8 static const symbol s_pool[] = {
9 #define s_0_0 0
10 'a', 'r', 's', 'e', 'n',
11 #define s_0_1 5
12 'c', 'o', 'm', 'm', 'u', 'n',
13 #define s_0_2 11
14 'g', 'e', 'n', 'e', 'r',
15 #define s_1_0 (s_1_1 + 2)
16 #define s_1_1 16
17 '\'', 's', '\'',
18 #define s_1_2 s_1_1
19 #define s_2_0 19
20 'i', 'e', 'd',
21 #define s_2_1 (s_2_2 + 2)
22 #define s_2_2 22
23 'i', 'e', 's',
24 #define s_2_3 25
25 's', 's', 'e', 's',
26 #define s_2_4 s_2_3
27 #define s_2_5 29
28 'u', 's',
29 #define s_3_1 31
30 'b', 'b',
31 #define s_3_2 33
32 'd', 'd',
33 #define s_3_3 35
34 'f', 'f',
35 #define s_3_4 37
36 'g', 'g',
37 #define s_3_5 39
38 'b', 'l',
39 #define s_3_6 41
40 'm', 'm',
41 #define s_3_7 43
42 'n', 'n',
43 #define s_3_8 45
44 'p', 'p',
45 #define s_3_9 47
46 'r', 'r',
47 #define s_3_10 49
48 'a', 't',
49 #define s_3_11 51
50 't', 't',
51 #define s_3_12 53
52 'i', 'z',
53 #define s_4_0 (s_4_1 + 1)
54 #define s_4_1 s_4_4
55 #define s_4_2 s_4_5
56 #define s_4_3 (s_4_4 + 1)
57 #define s_4_4 55
58 'e', 'e', 'd', 'l', 'y',
59 #define s_4_5 60
60 'i', 'n', 'g', 'l', 'y',
61 #define s_5_0 65
62 'a', 'n', 'c', 'i',
63 #define s_5_1 69
64 'e', 'n', 'c', 'i',
65 #define s_5_2 73
66 'o', 'g', 'i',
67 #define s_5_3 (s_5_4 + 1)
68 #define s_5_4 (s_5_5 + 1)
69 #define s_5_5 76
70 'a', 'b', 'l', 'i',
71 #define s_5_6 80
72 'a', 'l', 'l', 'i',
73 #define s_5_7 84
74 'f', 'u', 'l', 'l', 'i',
75 #define s_5_8 89
76 'l', 'e', 's', 's', 'l', 'i',
77 #define s_5_9 95
78 'o', 'u', 's', 'l', 'i',
79 #define s_5_10 100
80 'e', 'n', 't', 'l', 'i',
81 #define s_5_11 105
82 'a', 'l', 'i', 't', 'i',
83 #define s_5_12 110
84 'b', 'i', 'l', 'i', 't', 'i',
85 #define s_5_13 116
86 'i', 'v', 'i', 't', 'i',
87 #define s_5_14 (s_5_15 + 1)
88 #define s_5_15 121
89 'a', 't', 'i', 'o', 'n', 'a', 'l',
90 #define s_5_16 128
91 'a', 'l', 'i', 's', 'm',
92 #define s_5_17 s_5_15
93 #define s_5_18 133
94 'i', 'z', 'a', 't', 'i', 'o', 'n',
95 #define s_5_19 140
96 'i', 'z', 'e', 'r',
97 #define s_5_20 144
98 'a', 't', 'o', 'r',
99 #define s_5_21 148
100 'i', 'v', 'e', 'n', 'e', 's', 's',
101 #define s_5_22 155
102 'f', 'u', 'l', 'n', 'e', 's', 's',
103 #define s_5_23 162
104 'o', 'u', 's', 'n', 'e', 's', 's',
105 #define s_6_0 169
106 'i', 'c', 'a', 't', 'e',
107 #define s_6_1 174
108 'a', 't', 'i', 'v', 'e',
109 #define s_6_2 179
110 'a', 'l', 'i', 'z', 'e',
111 #define s_6_3 184
112 'i', 'c', 'i', 't', 'i',
113 #define s_6_4 189
114 'i', 'c', 'a', 'l',
115 #define s_6_5 (s_6_6 + 1)
116 #define s_6_6 193
117 'a', 't', 'i', 'o', 'n', 'a', 'l',
118 #define s_6_7 200
119 'f', 'u', 'l',
120 #define s_6_8 203
121 'n', 'e', 's', 's',
122 #define s_7_0 207
123 'i', 'c',
124 #define s_7_1 209
125 'a', 'n', 'c', 'e',
126 #define s_7_2 213
127 'e', 'n', 'c', 'e',
128 #define s_7_3 217
129 'a', 'b', 'l', 'e',
130 #define s_7_4 221
131 'i', 'b', 'l', 'e',
132 #define s_7_5 225
133 'a', 't', 'e',
134 #define s_7_6 228
135 'i', 'v', 'e',
136 #define s_7_7 231
137 'i', 'z', 'e',
138 #define s_7_8 234
139 'i', 't', 'i',
140 #define s_7_9 237
141 'a', 'l',
142 #define s_7_10 239
143 'i', 's', 'm',
144 #define s_7_11 242
145 'i', 'o', 'n',
146 #define s_7_12 245
147 'e', 'r',
148 #define s_7_13 247
149 'o', 'u', 's',
150 #define s_7_14 250
151 'a', 'n', 't',
152 #define s_7_15 (s_7_16 + 1)
153 #define s_7_16 (s_7_17 + 1)
154 #define s_7_17 253
155 'e', 'm', 'e', 'n', 't',
156 #define s_8_0 258
157 'e',
158 #define s_8_1 259
159 'l',
160 #define s_9_0 260
161 's', 'u', 'c', 'c', 'e', 'e', 'd',
162 #define s_9_1 267
163 'p', 'r', 'o', 'c', 'e', 'e', 'd',
164 #define s_9_2 274
165 'e', 'x', 'c', 'e', 'e', 'd',
166 #define s_9_3 280
167 'c', 'a', 'n', 'n', 'i', 'n', 'g',
168 #define s_9_4 287
169 'i', 'n', 'n', 'i', 'n', 'g',
170 #define s_9_5 293
171 'e', 'a', 'r', 'r', 'i', 'n', 'g',
172 #define s_9_6 300
173 'h', 'e', 'r', 'r', 'i', 'n', 'g',
174 #define s_9_7 307
175 'o', 'u', 't', 'i', 'n', 'g',
176 #define s_10_0 313
177 'a', 'n', 'd', 'e', 's',
178 #define s_10_1 318
179 'a', 't', 'l', 'a', 's',
180 #define s_10_2 323
181 'b', 'i', 'a', 's',
182 #define s_10_3 327
183 'c', 'o', 's', 'm', 'o', 's',
184 #define s_10_4 333
185 'd', 'y', 'i', 'n', 'g',
186 #define s_10_5 338
187 'e', 'a', 'r', 'l', 'y',
188 #define s_10_6 343
189 'g', 'e', 'n', 't', 'l', 'y',
190 #define s_10_7 349
191 'h', 'o', 'w', 'e',
192 #define s_10_8 353
193 'i', 'd', 'l', 'y',
194 #define s_10_9 357
195 'l', 'y', 'i', 'n', 'g',
196 #define s_10_10 362
197 'n', 'e', 'w', 's',
198 #define s_10_11 366
199 'o', 'n', 'l', 'y',
200 #define s_10_12 370
201 's', 'i', 'n', 'g', 'l', 'y',
202 #define s_10_13 376
203 's', 'k', 'i', 'e', 's',
204 #define s_10_14 381
205 's', 'k', 'y',
206 #define s_10_15 384
207 't', 'y', 'i', 'n', 'g',
208 #define s_10_16 389
209 'u', 'g', 'l', 'y',
210 };
211 
212 
213 static const struct among a_0[3] =
214 {
215 /* 0 */ { 5, s_0_0, -1, -1},
216 /* 1 */ { 6, s_0_1, -1, -1},
217 /* 2 */ { 5, s_0_2, -1, -1}
218 };
219 
220 
221 static const struct among a_1[3] =
222 {
223 /* 0 */ { 1, s_1_0, -1, 1},
224 /* 1 */ { 3, s_1_1, 0, 1},
225 /* 2 */ { 2, s_1_2, -1, 1}
226 };
227 
228 
229 static const struct among a_2[6] =
230 {
231 /* 0 */ { 3, s_2_0, -1, 2},
232 /* 1 */ { 1, s_2_1, -1, 3},
233 /* 2 */ { 3, s_2_2, 1, 2},
234 /* 3 */ { 4, s_2_3, 1, 1},
235 /* 4 */ { 2, s_2_4, 1, -1},
236 /* 5 */ { 2, s_2_5, 1, -1}
237 };
238 
239 
240 static const struct among a_3[13] =
241 {
242 /* 0 */ { 0, 0, -1, 3},
243 /* 1 */ { 2, s_3_1, 0, 2},
244 /* 2 */ { 2, s_3_2, 0, 2},
245 /* 3 */ { 2, s_3_3, 0, 2},
246 /* 4 */ { 2, s_3_4, 0, 2},
247 /* 5 */ { 2, s_3_5, 0, 1},
248 /* 6 */ { 2, s_3_6, 0, 2},
249 /* 7 */ { 2, s_3_7, 0, 2},
250 /* 8 */ { 2, s_3_8, 0, 2},
251 /* 9 */ { 2, s_3_9, 0, 2},
252 /* 10 */ { 2, s_3_10, 0, 1},
253 /* 11 */ { 2, s_3_11, 0, 2},
254 /* 12 */ { 2, s_3_12, 0, 1}
255 };
256 
257 
258 static const struct among a_4[6] =
259 {
260 /* 0 */ { 2, s_4_0, -1, 2},
261 /* 1 */ { 3, s_4_1, 0, 1},
262 /* 2 */ { 3, s_4_2, -1, 2},
263 /* 3 */ { 4, s_4_3, -1, 2},
264 /* 4 */ { 5, s_4_4, 3, 1},
265 /* 5 */ { 5, s_4_5, -1, 2}
266 };
267 
268 
269 static const struct among a_5[24] =
270 {
271 /* 0 */ { 4, s_5_0, -1, 3},
272 /* 1 */ { 4, s_5_1, -1, 2},
273 /* 2 */ { 3, s_5_2, -1, 13},
274 /* 3 */ { 2, s_5_3, -1, 15},
275 /* 4 */ { 3, s_5_4, 3, 12},
276 /* 5 */ { 4, s_5_5, 4, 4},
277 /* 6 */ { 4, s_5_6, 3, 8},
278 /* 7 */ { 5, s_5_7, 3, 9},
279 /* 8 */ { 6, s_5_8, 3, 14},
280 /* 9 */ { 5, s_5_9, 3, 10},
281 /* 10 */ { 5, s_5_10, 3, 5},
282 /* 11 */ { 5, s_5_11, -1, 8},
283 /* 12 */ { 6, s_5_12, -1, 12},
284 /* 13 */ { 5, s_5_13, -1, 11},
285 /* 14 */ { 6, s_5_14, -1, 1},
286 /* 15 */ { 7, s_5_15, 14, 7},
287 /* 16 */ { 5, s_5_16, -1, 8},
288 /* 17 */ { 5, s_5_17, -1, 7},
289 /* 18 */ { 7, s_5_18, 17, 6},
290 /* 19 */ { 4, s_5_19, -1, 6},
291 /* 20 */ { 4, s_5_20, -1, 7},
292 /* 21 */ { 7, s_5_21, -1, 11},
293 /* 22 */ { 7, s_5_22, -1, 9},
294 /* 23 */ { 7, s_5_23, -1, 10}
295 };
296 
297 
298 static const struct among a_6[9] =
299 {
300 /* 0 */ { 5, s_6_0, -1, 4},
301 /* 1 */ { 5, s_6_1, -1, 6},
302 /* 2 */ { 5, s_6_2, -1, 3},
303 /* 3 */ { 5, s_6_3, -1, 4},
304 /* 4 */ { 4, s_6_4, -1, 4},
305 /* 5 */ { 6, s_6_5, -1, 1},
306 /* 6 */ { 7, s_6_6, 5, 2},
307 /* 7 */ { 3, s_6_7, -1, 5},
308 /* 8 */ { 4, s_6_8, -1, 5}
309 };
310 
311 
312 static const struct among a_7[18] =
313 {
314 /* 0 */ { 2, s_7_0, -1, 1},
315 /* 1 */ { 4, s_7_1, -1, 1},
316 /* 2 */ { 4, s_7_2, -1, 1},
317 /* 3 */ { 4, s_7_3, -1, 1},
318 /* 4 */ { 4, s_7_4, -1, 1},
319 /* 5 */ { 3, s_7_5, -1, 1},
320 /* 6 */ { 3, s_7_6, -1, 1},
321 /* 7 */ { 3, s_7_7, -1, 1},
322 /* 8 */ { 3, s_7_8, -1, 1},
323 /* 9 */ { 2, s_7_9, -1, 1},
324 /* 10 */ { 3, s_7_10, -1, 1},
325 /* 11 */ { 3, s_7_11, -1, 2},
326 /* 12 */ { 2, s_7_12, -1, 1},
327 /* 13 */ { 3, s_7_13, -1, 1},
328 /* 14 */ { 3, s_7_14, -1, 1},
329 /* 15 */ { 3, s_7_15, -1, 1},
330 /* 16 */ { 4, s_7_16, 15, 1},
331 /* 17 */ { 5, s_7_17, 16, 1}
332 };
333 
334 
335 static const struct among a_8[2] =
336 {
337 /* 0 */ { 1, s_8_0, -1, 1},
338 /* 1 */ { 1, s_8_1, -1, 2}
339 };
340 
341 
342 static const struct among a_9[8] =
343 {
344 /* 0 */ { 7, s_9_0, -1, -1},
345 /* 1 */ { 7, s_9_1, -1, -1},
346 /* 2 */ { 6, s_9_2, -1, -1},
347 /* 3 */ { 7, s_9_3, -1, -1},
348 /* 4 */ { 6, s_9_4, -1, -1},
349 /* 5 */ { 7, s_9_5, -1, -1},
350 /* 6 */ { 7, s_9_6, -1, -1},
351 /* 7 */ { 6, s_9_7, -1, -1}
352 };
353 
354 
355 static const struct among a_10[17] =
356 {
357 /* 0 */ { 5, s_10_0, -1, -1},
358 /* 1 */ { 5, s_10_1, -1, -1},
359 /* 2 */ { 4, s_10_2, -1, -1},
360 /* 3 */ { 6, s_10_3, -1, -1},
361 /* 4 */ { 5, s_10_4, -1, 2},
362 /* 5 */ { 5, s_10_5, -1, 8},
363 /* 6 */ { 6, s_10_6, -1, 6},
364 /* 7 */ { 4, s_10_7, -1, -1},
365 /* 8 */ { 4, s_10_8, -1, 5},
366 /* 9 */ { 5, s_10_9, -1, 3},
367 /* 10 */ { 4, s_10_10, -1, -1},
368 /* 11 */ { 4, s_10_11, -1, 9},
369 /* 12 */ { 6, s_10_12, -1, 10},
370 /* 13 */ { 5, s_10_13, -1, 1},
371 /* 14 */ { 3, s_10_14, -1, -1},
372 /* 15 */ { 5, s_10_15, -1, 4},
373 /* 16 */ { 4, s_10_16, -1, 7}
374 };
375 
376 static const unsigned char g_v[] = { 17, 65, 16, 1 };
377 
378 static const unsigned char g_v_WXY[] = { 1, 17, 65, 208, 1 };
379 
380 static const unsigned char g_valid_LI[] = { 55, 141, 2 };
381 
382 static const symbol s_0[] = { 'Y' };
383 static const symbol s_1[] = { 'Y' };
384 static const symbol s_2[] = { 's', 's' };
385 static const symbol s_3[] = { 'i' };
386 static const symbol s_4[] = { 'i', 'e' };
387 static const symbol s_5[] = { 'e', 'e' };
388 static const symbol s_6[] = { 'e' };
389 static const symbol s_7[] = { 'e' };
390 static const symbol s_8[] = { 'i' };
391 static const symbol s_9[] = { 't', 'i', 'o', 'n' };
392 static const symbol s_10[] = { 'e', 'n', 'c', 'e' };
393 static const symbol s_11[] = { 'a', 'n', 'c', 'e' };
394 static const symbol s_12[] = { 'a', 'b', 'l', 'e' };
395 static const symbol s_13[] = { 'e', 'n', 't' };
396 static const symbol s_14[] = { 'i', 'z', 'e' };
397 static const symbol s_15[] = { 'a', 't', 'e' };
398 static const symbol s_16[] = { 'a', 'l' };
399 static const symbol s_17[] = { 'f', 'u', 'l' };
400 static const symbol s_18[] = { 'o', 'u', 's' };
401 static const symbol s_19[] = { 'i', 'v', 'e' };
402 static const symbol s_20[] = { 'b', 'l', 'e' };
403 static const symbol s_21[] = { 'o', 'g' };
404 static const symbol s_22[] = { 'l', 'e', 's', 's' };
405 static const symbol s_23[] = { 't', 'i', 'o', 'n' };
406 static const symbol s_24[] = { 'a', 't', 'e' };
407 static const symbol s_25[] = { 'a', 'l' };
408 static const symbol s_26[] = { 'i', 'c' };
409 static const symbol s_27[] = { 's', 'k', 'y' };
410 static const symbol s_28[] = { 'd', 'i', 'e' };
411 static const symbol s_29[] = { 'l', 'i', 'e' };
412 static const symbol s_30[] = { 't', 'i', 'e' };
413 static const symbol s_31[] = { 'i', 'd', 'l' };
414 static const symbol s_32[] = { 'g', 'e', 'n', 't', 'l' };
415 static const symbol s_33[] = { 'u', 'g', 'l', 'i' };
416 static const symbol s_34[] = { 'e', 'a', 'r', 'l', 'i' };
417 static const symbol s_35[] = { 'o', 'n', 'l', 'i' };
418 static const symbol s_36[] = { 's', 'i', 'n', 'g', 'l' };
419 static const symbol s_37[] = { 'y' };
420 
422  I_Y_found = 0;
423  { int c1 = c;
424  bra = c;
425  if (c == l || p[c] != '\'') goto lab0;
426  c++;
427  ket = c;
428  { int ret = slice_del();
429  if (ret < 0) return ret;
430  }
431  lab0:
432  c = c1;
433  }
434  { int c2 = c;
435  bra = c;
436  if (c == l || p[c] != 'y') goto lab1;
437  c++;
438  ket = c;
439  { int ret = slice_from_s(1, s_0);
440  if (ret < 0) return ret;
441  }
442  I_Y_found = 1;
443  lab1:
444  c = c2;
445  }
446  { int c3 = c;
447  while(1) {
448  int c4 = c;
449  while(1) {
450  int c5 = c;
451  if (in_grouping_U(g_v, 97, 121, 0)) goto lab4;
452  bra = c;
453  if (c == l || p[c] != 'y') goto lab4;
454  c++;
455  ket = c;
456  c = c5;
457  break;
458  lab4:
459  c = c5;
460  { int ret = skip_utf8(p, c, 0, l, 1);
461  if (ret < 0) goto lab3;
462  c = ret;
463  }
464  }
465  { int ret = slice_from_s(1, s_1);
466  if (ret < 0) return ret;
467  }
468  I_Y_found = 1;
469  continue;
470  lab3:
471  c = c4;
472  break;
473  }
474  c = c3;
475  }
476  return 1;
477 }
478 
480  I_p1 = l;
481  I_p2 = l;
482  { int c1 = c;
483  { int c2 = c;
484  if (c + 4 >= l || p[c + 4] >> 5 != 3 || !((2375680 >> (p[c + 4] & 0x1f)) & 1)) goto lab2;
485  if (!(find_among(s_pool, a_0, 3, 0, 0))) goto lab2;
486  goto lab1;
487  lab2:
488  c = c2;
489  {
490  int ret = out_grouping_U(g_v, 97, 121, 1);
491  if (ret < 0) goto lab0;
492  c += ret;
493  }
494  {
495  int ret = in_grouping_U(g_v, 97, 121, 1);
496  if (ret < 0) goto lab0;
497  c += ret;
498  }
499  }
500  lab1:
501  I_p1 = c;
502  {
503  int ret = out_grouping_U(g_v, 97, 121, 1);
504  if (ret < 0) goto lab0;
505  c += ret;
506  }
507  {
508  int ret = in_grouping_U(g_v, 97, 121, 1);
509  if (ret < 0) goto lab0;
510  c += ret;
511  }
512  I_p2 = c;
513  lab0:
514  c = c1;
515  }
516  return 1;
517 }
518 
520  { int m1 = l - c; (void)m1;
521  if (out_grouping_b_U(g_v_WXY, 89, 121, 0)) goto lab1;
522  if (in_grouping_b_U(g_v, 97, 121, 0)) goto lab1;
523  if (out_grouping_b_U(g_v, 97, 121, 0)) goto lab1;
524  goto lab0;
525  lab1:
526  c = l - m1;
527  if (out_grouping_b_U(g_v, 97, 121, 0)) return 0;
528  if (in_grouping_b_U(g_v, 97, 121, 0)) return 0;
529  if (c > lb) return 0;
530  }
531 lab0:
532  return 1;
533 }
534 
536  if (!(I_p1 <= c)) return 0;
537  return 1;
538 }
539 
541  if (!(I_p2 <= c)) return 0;
542  return 1;
543 }
544 
546  int among_var;
547  { int m1 = l - c; (void)m1;
548  ket = c;
549  if (c <= lb || (p[c - 1] != 39 && p[c - 1] != 115)) { c = l - m1; goto lab0; }
550  if (!(find_among_b(s_pool, a_1, 3, 0, 0))) { c = l - m1; goto lab0; }
551  bra = c;
552  { int ret = slice_del();
553  if (ret < 0) return ret;
554  }
555  lab0:
556  ;
557  }
558  ket = c;
559  if (c <= lb || (p[c - 1] != 100 && p[c - 1] != 115)) return 0;
560  among_var = find_among_b(s_pool, a_2, 6, 0, 0);
561  if (!(among_var)) return 0;
562  bra = c;
563  switch (among_var) {
564  case 1:
565  { int ret = slice_from_s(2, s_2);
566  if (ret < 0) return ret;
567  }
568  break;
569  case 2:
570  { int m2 = l - c; (void)m2;
571  { int ret = skip_utf8(p, c, lb, l, - 2);
572  if (ret < 0) goto lab2;
573  c = ret;
574  }
575  { int ret = slice_from_s(1, s_3);
576  if (ret < 0) return ret;
577  }
578  goto lab1;
579  lab2:
580  c = l - m2;
581  { int ret = slice_from_s(2, s_4);
582  if (ret < 0) return ret;
583  }
584  }
585  lab1:
586  break;
587  case 3:
588  { int ret = skip_utf8(p, c, lb, 0, -1);
589  if (ret < 0) return 0;
590  c = ret;
591  }
592  {
593  int ret = out_grouping_b_U(g_v, 97, 121, 1);
594  if (ret < 0) return 0;
595  c -= ret;
596  }
597  { int ret = slice_del();
598  if (ret < 0) return ret;
599  }
600  break;
601  }
602  return 1;
603 }
604 
606  int among_var;
607  ket = c;
608  if (c - 1 <= lb || p[c - 1] >> 5 != 3 || !((33554576 >> (p[c - 1] & 0x1f)) & 1)) return 0;
609  among_var = find_among_b(s_pool, a_4, 6, 0, 0);
610  if (!(among_var)) return 0;
611  bra = c;
612  switch (among_var) {
613  case 1:
614  { int ret = r_R1();
615  if (ret <= 0) return ret;
616  }
617  { int ret = slice_from_s(2, s_5);
618  if (ret < 0) return ret;
619  }
620  break;
621  case 2:
622  { int m_test1 = l - c;
623  {
624  int ret = out_grouping_b_U(g_v, 97, 121, 1);
625  if (ret < 0) return 0;
626  c -= ret;
627  }
628  c = l - m_test1;
629  }
630  { int ret = slice_del();
631  if (ret < 0) return ret;
632  }
633  { int m_test2 = l - c;
634  if (c - 1 <= lb || p[c - 1] >> 5 != 3 || !((68514004 >> (p[c - 1] & 0x1f)) & 1)) among_var = 3; else
635  among_var = find_among_b(s_pool, a_3, 13, 0, 0);
636  if (!(among_var)) return 0;
637  c = l - m_test2;
638  }
639  switch (among_var) {
640  case 1:
641  { int saved_c = c;
642  insert_s(c, c, 1, s_6);
643  c = saved_c;
644  }
645  break;
646  case 2:
647  ket = c;
648  { int ret = skip_utf8(p, c, lb, 0, -1);
649  if (ret < 0) return 0;
650  c = ret;
651  }
652  bra = c;
653  { int ret = slice_del();
654  if (ret < 0) return ret;
655  }
656  break;
657  case 3:
658  if (c != I_p1) return 0;
659  { int m_test3 = l - c;
660  { int ret = r_shortv();
661  if (ret <= 0) return ret;
662  }
663  c = l - m_test3;
664  }
665  { int saved_c = c;
666  insert_s(c, c, 1, s_7);
667  c = saved_c;
668  }
669  break;
670  }
671  break;
672  }
673  return 1;
674 }
675 
677  ket = c;
678  { int m1 = l - c; (void)m1;
679  if (c <= lb || p[c - 1] != 'y') goto lab1;
680  c--;
681  goto lab0;
682  lab1:
683  c = l - m1;
684  if (c <= lb || p[c - 1] != 'Y') return 0;
685  c--;
686  }
687 lab0:
688  bra = c;
689  if (out_grouping_b_U(g_v, 97, 121, 0)) return 0;
690 
691  if (c > lb) goto lab2;
692  return 0;
693 lab2:
694  { int ret = slice_from_s(1, s_8);
695  if (ret < 0) return ret;
696  }
697  return 1;
698 }
699 
701  int among_var;
702  ket = c;
703  if (c - 1 <= lb || p[c - 1] >> 5 != 3 || !((815616 >> (p[c - 1] & 0x1f)) & 1)) return 0;
704  among_var = find_among_b(s_pool, a_5, 24, 0, 0);
705  if (!(among_var)) return 0;
706  bra = c;
707  { int ret = r_R1();
708  if (ret <= 0) return ret;
709  }
710  switch (among_var) {
711  case 1:
712  { int ret = slice_from_s(4, s_9);
713  if (ret < 0) return ret;
714  }
715  break;
716  case 2:
717  { int ret = slice_from_s(4, s_10);
718  if (ret < 0) return ret;
719  }
720  break;
721  case 3:
722  { int ret = slice_from_s(4, s_11);
723  if (ret < 0) return ret;
724  }
725  break;
726  case 4:
727  { int ret = slice_from_s(4, s_12);
728  if (ret < 0) return ret;
729  }
730  break;
731  case 5:
732  { int ret = slice_from_s(3, s_13);
733  if (ret < 0) return ret;
734  }
735  break;
736  case 6:
737  { int ret = slice_from_s(3, s_14);
738  if (ret < 0) return ret;
739  }
740  break;
741  case 7:
742  { int ret = slice_from_s(3, s_15);
743  if (ret < 0) return ret;
744  }
745  break;
746  case 8:
747  { int ret = slice_from_s(2, s_16);
748  if (ret < 0) return ret;
749  }
750  break;
751  case 9:
752  { int ret = slice_from_s(3, s_17);
753  if (ret < 0) return ret;
754  }
755  break;
756  case 10:
757  { int ret = slice_from_s(3, s_18);
758  if (ret < 0) return ret;
759  }
760  break;
761  case 11:
762  { int ret = slice_from_s(3, s_19);
763  if (ret < 0) return ret;
764  }
765  break;
766  case 12:
767  { int ret = slice_from_s(3, s_20);
768  if (ret < 0) return ret;
769  }
770  break;
771  case 13:
772  if (c <= lb || p[c - 1] != 'l') return 0;
773  c--;
774  { int ret = slice_from_s(2, s_21);
775  if (ret < 0) return ret;
776  }
777  break;
778  case 14:
779  { int ret = slice_from_s(4, s_22);
780  if (ret < 0) return ret;
781  }
782  break;
783  case 15:
784  if (in_grouping_b_U(g_valid_LI, 99, 116, 0)) return 0;
785  { int ret = slice_del();
786  if (ret < 0) return ret;
787  }
788  break;
789  }
790  return 1;
791 }
792 
794  int among_var;
795  ket = c;
796  if (c - 2 <= lb || p[c - 1] >> 5 != 3 || !((528928 >> (p[c - 1] & 0x1f)) & 1)) return 0;
797  among_var = find_among_b(s_pool, a_6, 9, 0, 0);
798  if (!(among_var)) return 0;
799  bra = c;
800  { int ret = r_R1();
801  if (ret <= 0) return ret;
802  }
803  switch (among_var) {
804  case 1:
805  { int ret = slice_from_s(4, s_23);
806  if (ret < 0) return ret;
807  }
808  break;
809  case 2:
810  { int ret = slice_from_s(3, s_24);
811  if (ret < 0) return ret;
812  }
813  break;
814  case 3:
815  { int ret = slice_from_s(2, s_25);
816  if (ret < 0) return ret;
817  }
818  break;
819  case 4:
820  { int ret = slice_from_s(2, s_26);
821  if (ret < 0) return ret;
822  }
823  break;
824  case 5:
825  { int ret = slice_del();
826  if (ret < 0) return ret;
827  }
828  break;
829  case 6:
830  { int ret = r_R2();
831  if (ret <= 0) return ret;
832  }
833  { int ret = slice_del();
834  if (ret < 0) return ret;
835  }
836  break;
837  }
838  return 1;
839 }
840 
842  int among_var;
843  ket = c;
844  if (c - 1 <= lb || p[c - 1] >> 5 != 3 || !((1864232 >> (p[c - 1] & 0x1f)) & 1)) return 0;
845  among_var = find_among_b(s_pool, a_7, 18, 0, 0);
846  if (!(among_var)) return 0;
847  bra = c;
848  { int ret = r_R2();
849  if (ret <= 0) return ret;
850  }
851  switch (among_var) {
852  case 1:
853  { int ret = slice_del();
854  if (ret < 0) return ret;
855  }
856  break;
857  case 2:
858  { int m1 = l - c; (void)m1;
859  if (c <= lb || p[c - 1] != 's') goto lab1;
860  c--;
861  goto lab0;
862  lab1:
863  c = l - m1;
864  if (c <= lb || p[c - 1] != 't') return 0;
865  c--;
866  }
867  lab0:
868  { int ret = slice_del();
869  if (ret < 0) return ret;
870  }
871  break;
872  }
873  return 1;
874 }
875 
877  int among_var;
878  ket = c;
879  if (c <= lb || (p[c - 1] != 101 && p[c - 1] != 108)) return 0;
880  among_var = find_among_b(s_pool, a_8, 2, 0, 0);
881  if (!(among_var)) return 0;
882  bra = c;
883  switch (among_var) {
884  case 1:
885  { int m1 = l - c; (void)m1;
886  { int ret = r_R2();
887  if (ret == 0) goto lab1;
888  if (ret < 0) return ret;
889  }
890  goto lab0;
891  lab1:
892  c = l - m1;
893  { int ret = r_R1();
894  if (ret <= 0) return ret;
895  }
896  { int m2 = l - c; (void)m2;
897  { int ret = r_shortv();
898  if (ret == 0) goto lab2;
899  if (ret < 0) return ret;
900  }
901  return 0;
902  lab2:
903  c = l - m2;
904  }
905  }
906  lab0:
907  { int ret = slice_del();
908  if (ret < 0) return ret;
909  }
910  break;
911  case 2:
912  { int ret = r_R2();
913  if (ret <= 0) return ret;
914  }
915  if (c <= lb || p[c - 1] != 'l') return 0;
916  c--;
917  { int ret = slice_del();
918  if (ret < 0) return ret;
919  }
920  break;
921  }
922  return 1;
923 }
924 
926  ket = c;
927  if (c - 5 <= lb || (p[c - 1] != 100 && p[c - 1] != 103)) return 0;
928  if (!(find_among_b(s_pool, a_9, 8, 0, 0))) return 0;
929  bra = c;
930  if (c > lb) return 0;
931  return 1;
932 }
933 
935  int among_var;
936  bra = c;
937  if (c + 2 >= l || p[c + 2] >> 5 != 3 || !((42750482 >> (p[c + 2] & 0x1f)) & 1)) return 0;
938  among_var = find_among(s_pool, a_10, 17, 0, 0);
939  if (!(among_var)) return 0;
940  ket = c;
941  if (c < l) return 0;
942  switch (among_var) {
943  case 1:
944  { int ret = slice_from_s(3, s_27);
945  if (ret < 0) return ret;
946  }
947  break;
948  case 2:
949  { int ret = slice_from_s(3, s_28);
950  if (ret < 0) return ret;
951  }
952  break;
953  case 3:
954  { int ret = slice_from_s(3, s_29);
955  if (ret < 0) return ret;
956  }
957  break;
958  case 4:
959  { int ret = slice_from_s(3, s_30);
960  if (ret < 0) return ret;
961  }
962  break;
963  case 5:
964  { int ret = slice_from_s(3, s_31);
965  if (ret < 0) return ret;
966  }
967  break;
968  case 6:
969  { int ret = slice_from_s(5, s_32);
970  if (ret < 0) return ret;
971  }
972  break;
973  case 7:
974  { int ret = slice_from_s(4, s_33);
975  if (ret < 0) return ret;
976  }
977  break;
978  case 8:
979  { int ret = slice_from_s(5, s_34);
980  if (ret < 0) return ret;
981  }
982  break;
983  case 9:
984  { int ret = slice_from_s(4, s_35);
985  if (ret < 0) return ret;
986  }
987  break;
988  case 10:
989  { int ret = slice_from_s(5, s_36);
990  if (ret < 0) return ret;
991  }
992  break;
993  }
994  return 1;
995 }
996 
998  if (!(I_Y_found)) return 0;
999  while(1) {
1000  int c1 = c;
1001  while(1) {
1002  int c2 = c;
1003  bra = c;
1004  if (c == l || p[c] != 'Y') goto lab1;
1005  c++;
1006  ket = c;
1007  c = c2;
1008  break;
1009  lab1:
1010  c = c2;
1011  { int ret = skip_utf8(p, c, 0, l, 1);
1012  if (ret < 0) goto lab0;
1013  c = ret;
1014  }
1015  }
1016  { int ret = slice_from_s(1, s_37);
1017  if (ret < 0) return ret;
1018  }
1019  continue;
1020  lab0:
1021  c = c1;
1022  break;
1023  }
1024  return 1;
1025 }
1026 
1028  { int c1 = c;
1029  { int ret = r_exception1();
1030  if (ret == 0) goto lab1;
1031  if (ret < 0) return ret;
1032  }
1033  goto lab0;
1034  lab1:
1035  c = c1;
1036  { int c2 = c;
1037  { int ret = skip_utf8(p, c, 0, l, + 3);
1038  if (ret < 0) goto lab3;
1039  c = ret;
1040  }
1041  goto lab2;
1042  lab3:
1043  c = c2;
1044  }
1045  goto lab0;
1046  lab2:
1047  c = c1;
1048 
1049  { int ret = r_prelude();
1050  if (ret < 0) return ret;
1051  }
1052 
1053  { int ret = r_mark_regions();
1054  if (ret < 0) return ret;
1055  }
1056  lb = c; c = l;
1057 
1058  { int m3 = l - c; (void)m3;
1059  { int ret = r_Step_1a();
1060  if (ret < 0) return ret;
1061  }
1062  c = l - m3;
1063  }
1064  { int m4 = l - c; (void)m4;
1065  { int ret = r_exception2();
1066  if (ret == 0) goto lab5;
1067  if (ret < 0) return ret;
1068  }
1069  goto lab4;
1070  lab5:
1071  c = l - m4;
1072  { int m5 = l - c; (void)m5;
1073  { int ret = r_Step_1b();
1074  if (ret < 0) return ret;
1075  }
1076  c = l - m5;
1077  }
1078  { int m6 = l - c; (void)m6;
1079  { int ret = r_Step_1c();
1080  if (ret < 0) return ret;
1081  }
1082  c = l - m6;
1083  }
1084  { int m7 = l - c; (void)m7;
1085  { int ret = r_Step_2();
1086  if (ret < 0) return ret;
1087  }
1088  c = l - m7;
1089  }
1090  { int m8 = l - c; (void)m8;
1091  { int ret = r_Step_3();
1092  if (ret < 0) return ret;
1093  }
1094  c = l - m8;
1095  }
1096  { int m9 = l - c; (void)m9;
1097  { int ret = r_Step_4();
1098  if (ret < 0) return ret;
1099  }
1100  c = l - m9;
1101  }
1102  { int m10 = l - c; (void)m10;
1103  { int ret = r_Step_5();
1104  if (ret < 0) return ret;
1105  }
1106  c = l - m10;
1107  }
1108  }
1109  lab4:
1110  c = lb;
1111  { int c11 = c;
1112  { int ret = r_postlude();
1113  if (ret < 0) return ret;
1114  }
1115  c = c11;
1116  }
1117  }
1118 lab0:
1119  return 1;
1120 }
1121 
1123  : I_Y_found(0), I_p2(0), I_p1(0)
1124 {
1125 }
1126 
1128 {
1129 }
1130 
1131 std::string
1133 {
1134  return "english";
1135 }
#define s_5_22
#define s_7_1
#define s_3_10
#define s_9_6
#define s_9_4
static const symbol s_11[]
Definition: english.cc:393
#define s_0_2
#define s_7_7
static const symbol s_21[]
Definition: english.cc:403
static const symbol s_18[]
Definition: english.cc:400
#define s_3_3
#define s_7_9
#define s_9_0
unsigned char I_Y_found
Definition: english.h:9
static const symbol s_36[]
Definition: english.cc:418
static const symbol s_30[]
Definition: english.cc:412
static const struct among a_8[2]
Definition: english.cc:335
int find_among_b(const symbol *pool, const struct among *v, int v_size, const unsigned char *fnum, const among_function *f)
static const struct among a_1[3]
Definition: english.cc:221
#define s_10_3
#define s_5_17
#define s_7_2
#define s_0_1
#define s_2_1
static const symbol s_7[]
Definition: english.cc:389
static const symbol s_25[]
Definition: english.cc:407
static const struct among a_5[24]
Definition: english.cc:269
#define s_9_1
static const unsigned char g_valid_LI[]
Definition: english.cc:380
static const symbol s_17[]
Definition: english.cc:399
#define s_9_3
#define s_5_13
#define s_10_16
static const symbol s_26[]
Definition: english.cc:408
#define s_10_5
#define s_4_1
static const symbol s_8[]
Definition: english.cc:390
static const struct among a_3[13]
Definition: english.cc:240
#define s_7_8
#define s_5_5
#define s_3_2
static const symbol s_5[]
Definition: english.cc:387
static const symbol s_13[]
Definition: english.cc:395
static const symbol s_1[]
Definition: english.cc:383
#define s_5_1
int stem()
Virtual method implemented by the subclass to actually do the work.
Definition: english.cc:1027
#define s_10_10
static const struct among a_7[18]
Definition: english.cc:312
#define s_9_5
#define s_10_8
static const symbol s_34[]
Definition: english.cc:416
#define s_10_15
#define s_0_0
#define s_5_18
#define s_5_15
static const symbol s_19[]
Definition: english.cc:401
#define s_2_5
#define s_2_2
#define s_10_7
#define s_7_14
#define s_5_7
#define s_10_2
#define s_1_0
static const symbol s_31[]
Definition: english.cc:413
#define s_5_8
#define s_10_1
#define s_10_6
#define s_3_6
#define s_7_16
#define s_4_5
int slice_from_s(int s_size, const symbol *s)
static const struct among a_9[8]
Definition: english.cc:342
static const symbol s_29[]
Definition: english.cc:411
#define s_6_5
#define s_9_2
#define s_3_8
#define s_8_0
#define s_5_10
#define s_5_2
#define s_7_13
static const symbol s_23[]
Definition: english.cc:405
#define s_4_0
void insert_s(int c_bra, int c_ket, int s_size, const symbol *s)
#define s_2_0
unsigned short symbol
Definition: header.h:6
#define s_6_4
static const symbol s_15[]
Definition: english.cc:397
#define s_5_12
#define s_1_2
#define s_3_7
#define s_5_4
#define s_5_19
#define s_6_7
#define s_3_9
static const struct among a_10[17]
Definition: english.cc:355
#define s_5_14
#define s_10_4
#define s_6_1
#define s_7_15
#define s_5_11
#define s_8_1
#define s_7_12
static const symbol s_9[]
Definition: english.cc:391
#define s_5_23
static const symbol s_0[]
Definition: english.cc:382
#define s_7_10
#define s_4_3
#define s_10_12
#define s_10_11
#define s_5_9
#define s_9_7
static const unsigned char g_v_WXY[]
Definition: english.cc:378
static const struct among a_2[6]
Definition: english.cc:229
static const symbol s_4[]
Definition: english.cc:386
Definition: header.h:191
#define s_7_6
#define s_5_20
static const struct among a_0[3]
Definition: english.cc:213
#define s_10_0
#define s_5_16
static const symbol s_22[]
Definition: english.cc:404
static int skip_utf8(const symbol *p, int c, int lb, int l, int n)
Definition: steminternal.cc:94
#define s_5_3
static const symbol s_20[]
Definition: english.cc:402
std::string get_description() const
Return a string describing this object.
Definition: english.cc:1132
static const symbol s_35[]
Definition: english.cc:417
static const symbol s_2[]
Definition: english.cc:384
static const symbol s_16[]
Definition: english.cc:398
int in_grouping_b_U(const unsigned char *s, int min, int max, int repeat)
#define s_2_3
#define s_5_6
#define s_5_0
static const symbol s_33[]
Definition: english.cc:415
#define s_7_5
#define s_6_8
static const symbol s_28[]
Definition: english.cc:410
#define s_10_14
static const symbol s_32[]
Definition: english.cc:414
static const struct among a_6[9]
Definition: english.cc:298
#define s_3_12
#define s_2_4
static const symbol s_14[]
Definition: english.cc:396
#define s_3_4
int out_grouping_b_U(const unsigned char *s, int min, int max, int repeat)
static const symbol s_3[]
Definition: english.cc:385
#define s_1_1
#define s_6_2
#define s_10_9
static const symbol s_24[]
Definition: english.cc:406
static const symbol s_27[]
Definition: english.cc:409
static const struct among a_4[6]
Definition: english.cc:258
int find_among(const symbol *pool, const struct among *v, int v_size, const unsigned char *fnum, const among_function *f)
int out_grouping_U(const unsigned char *s, int min, int max, int repeat)
#define s_3_1
static const unsigned char g_v[]
Definition: english.cc:376
static const symbol s_12[]
Definition: english.cc:394
#define s_6_3
#define s_7_11
static const symbol s_pool[]
Definition: english.cc:8
static const symbol s_37[]
Definition: english.cc:419
static const symbol s_10[]
Definition: english.cc:392
#define s_6_6
#define s_7_0
#define s_7_17
#define s_10_13
#define s_3_5
#define s_7_3
#define s_7_4
#define s_4_4
#define s_3_11
#define s_5_21
#define s_6_0
int in_grouping_U(const unsigned char *s, int min, int max, int repeat)
#define s_4_2
static const symbol s_6[]
Definition: english.cc:388