isomorfeus-ferret 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (222) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +612 -0
  3. data/README.md +44 -0
  4. data/ext/isomorfeus_ferret_ext/benchmark.c +223 -0
  5. data/ext/isomorfeus_ferret_ext/benchmark.h +45 -0
  6. data/ext/isomorfeus_ferret_ext/benchmarks_all.h +25 -0
  7. data/ext/isomorfeus_ferret_ext/bm_bitvector.c +123 -0
  8. data/ext/isomorfeus_ferret_ext/bm_hash.c +118 -0
  9. data/ext/isomorfeus_ferret_ext/bm_micro_string.c +40 -0
  10. data/ext/isomorfeus_ferret_ext/bm_store.c +93 -0
  11. data/ext/isomorfeus_ferret_ext/email.rl +21 -0
  12. data/ext/isomorfeus_ferret_ext/extconf.rb +5 -0
  13. data/ext/isomorfeus_ferret_ext/fio_tmpfile.h +53 -0
  14. data/ext/isomorfeus_ferret_ext/frb_analysis.c +2577 -0
  15. data/ext/isomorfeus_ferret_ext/frb_index.c +3457 -0
  16. data/ext/isomorfeus_ferret_ext/frb_lang.c +9 -0
  17. data/ext/isomorfeus_ferret_ext/frb_lang.h +17 -0
  18. data/ext/isomorfeus_ferret_ext/frb_qparser.c +629 -0
  19. data/ext/isomorfeus_ferret_ext/frb_search.c +4460 -0
  20. data/ext/isomorfeus_ferret_ext/frb_store.c +515 -0
  21. data/ext/isomorfeus_ferret_ext/frb_threading.h +30 -0
  22. data/ext/isomorfeus_ferret_ext/frb_utils.c +1127 -0
  23. data/ext/isomorfeus_ferret_ext/frt_analysis.c +1644 -0
  24. data/ext/isomorfeus_ferret_ext/frt_analysis.h +247 -0
  25. data/ext/isomorfeus_ferret_ext/frt_array.c +124 -0
  26. data/ext/isomorfeus_ferret_ext/frt_array.h +54 -0
  27. data/ext/isomorfeus_ferret_ext/frt_bitvector.c +95 -0
  28. data/ext/isomorfeus_ferret_ext/frt_bitvector.h +586 -0
  29. data/ext/isomorfeus_ferret_ext/frt_compound_io.c +374 -0
  30. data/ext/isomorfeus_ferret_ext/frt_config.h +44 -0
  31. data/ext/isomorfeus_ferret_ext/frt_document.c +134 -0
  32. data/ext/isomorfeus_ferret_ext/frt_document.h +52 -0
  33. data/ext/isomorfeus_ferret_ext/frt_except.c +95 -0
  34. data/ext/isomorfeus_ferret_ext/frt_except.h +188 -0
  35. data/ext/isomorfeus_ferret_ext/frt_field_index.c +233 -0
  36. data/ext/isomorfeus_ferret_ext/frt_field_index.h +42 -0
  37. data/ext/isomorfeus_ferret_ext/frt_filter.c +157 -0
  38. data/ext/isomorfeus_ferret_ext/frt_fs_store.c +502 -0
  39. data/ext/isomorfeus_ferret_ext/frt_global.c +427 -0
  40. data/ext/isomorfeus_ferret_ext/frt_global.h +290 -0
  41. data/ext/isomorfeus_ferret_ext/frt_hash.c +518 -0
  42. data/ext/isomorfeus_ferret_ext/frt_hash.h +466 -0
  43. data/ext/isomorfeus_ferret_ext/frt_hashset.c +191 -0
  44. data/ext/isomorfeus_ferret_ext/frt_hashset.h +206 -0
  45. data/ext/isomorfeus_ferret_ext/frt_helper.c +62 -0
  46. data/ext/isomorfeus_ferret_ext/frt_helper.h +13 -0
  47. data/ext/isomorfeus_ferret_ext/frt_ind.c +353 -0
  48. data/ext/isomorfeus_ferret_ext/frt_ind.h +54 -0
  49. data/ext/isomorfeus_ferret_ext/frt_index.c +6377 -0
  50. data/ext/isomorfeus_ferret_ext/frt_index.h +880 -0
  51. data/ext/isomorfeus_ferret_ext/frt_lang.c +104 -0
  52. data/ext/isomorfeus_ferret_ext/frt_lang.h +44 -0
  53. data/ext/isomorfeus_ferret_ext/frt_mempool.c +87 -0
  54. data/ext/isomorfeus_ferret_ext/frt_mempool.h +33 -0
  55. data/ext/isomorfeus_ferret_ext/frt_multimapper.c +349 -0
  56. data/ext/isomorfeus_ferret_ext/frt_multimapper.h +52 -0
  57. data/ext/isomorfeus_ferret_ext/frt_posh.c +1006 -0
  58. data/ext/isomorfeus_ferret_ext/frt_posh.h +973 -0
  59. data/ext/isomorfeus_ferret_ext/frt_priorityqueue.c +147 -0
  60. data/ext/isomorfeus_ferret_ext/frt_priorityqueue.h +147 -0
  61. data/ext/isomorfeus_ferret_ext/frt_q_boolean.c +1612 -0
  62. data/ext/isomorfeus_ferret_ext/frt_q_const_score.c +157 -0
  63. data/ext/isomorfeus_ferret_ext/frt_q_filtered_query.c +209 -0
  64. data/ext/isomorfeus_ferret_ext/frt_q_fuzzy.c +281 -0
  65. data/ext/isomorfeus_ferret_ext/frt_q_match_all.c +147 -0
  66. data/ext/isomorfeus_ferret_ext/frt_q_multi_term.c +672 -0
  67. data/ext/isomorfeus_ferret_ext/frt_q_parser.c +3084 -0
  68. data/ext/isomorfeus_ferret_ext/frt_q_phrase.c +1182 -0
  69. data/ext/isomorfeus_ferret_ext/frt_q_prefix.c +98 -0
  70. data/ext/isomorfeus_ferret_ext/frt_q_range.c +665 -0
  71. data/ext/isomorfeus_ferret_ext/frt_q_span.c +2386 -0
  72. data/ext/isomorfeus_ferret_ext/frt_q_term.c +311 -0
  73. data/ext/isomorfeus_ferret_ext/frt_q_wildcard.c +166 -0
  74. data/ext/isomorfeus_ferret_ext/frt_ram_store.c +460 -0
  75. data/ext/isomorfeus_ferret_ext/frt_scanner.c +899 -0
  76. data/ext/isomorfeus_ferret_ext/frt_scanner.h +28 -0
  77. data/ext/isomorfeus_ferret_ext/frt_scanner_mb.c +6705 -0
  78. data/ext/isomorfeus_ferret_ext/frt_scanner_utf8.c +4419 -0
  79. data/ext/isomorfeus_ferret_ext/frt_search.c +1824 -0
  80. data/ext/isomorfeus_ferret_ext/frt_search.h +924 -0
  81. data/ext/isomorfeus_ferret_ext/frt_similarity.c +150 -0
  82. data/ext/isomorfeus_ferret_ext/frt_similarity.h +79 -0
  83. data/ext/isomorfeus_ferret_ext/frt_sort.c +796 -0
  84. data/ext/isomorfeus_ferret_ext/frt_stopwords.c +395 -0
  85. data/ext/isomorfeus_ferret_ext/frt_store.c +680 -0
  86. data/ext/isomorfeus_ferret_ext/frt_store.h +789 -0
  87. data/ext/isomorfeus_ferret_ext/frt_term_vectors.c +72 -0
  88. data/ext/isomorfeus_ferret_ext/frt_threading.h +23 -0
  89. data/ext/isomorfeus_ferret_ext/frt_win32.h +54 -0
  90. data/ext/isomorfeus_ferret_ext/isomorfeus_ferret.c +409 -0
  91. data/ext/isomorfeus_ferret_ext/isomorfeus_ferret.h +95 -0
  92. data/ext/isomorfeus_ferret_ext/libstemmer.c +93 -0
  93. data/ext/isomorfeus_ferret_ext/libstemmer.h +73 -0
  94. data/ext/isomorfeus_ferret_ext/q_parser.y +1366 -0
  95. data/ext/isomorfeus_ferret_ext/scanner.h +28 -0
  96. data/ext/isomorfeus_ferret_ext/scanner.in +43 -0
  97. data/ext/isomorfeus_ferret_ext/scanner.rl +84 -0
  98. data/ext/isomorfeus_ferret_ext/scanner_mb.rl +200 -0
  99. data/ext/isomorfeus_ferret_ext/scanner_utf8.rl +85 -0
  100. data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_danish.c +324 -0
  101. data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_danish.h +7 -0
  102. data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_dutch.c +610 -0
  103. data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_dutch.h +6 -0
  104. data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_english.c +1104 -0
  105. data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_english.h +6 -0
  106. data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_finnish.c +749 -0
  107. data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_finnish.h +7 -0
  108. data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_french.c +1233 -0
  109. data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_french.h +6 -0
  110. data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_german.c +490 -0
  111. data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_german.h +6 -0
  112. data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_hungarian.c +1217 -0
  113. data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_hungarian.h +7 -0
  114. data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_italian.c +1052 -0
  115. data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_italian.h +6 -0
  116. data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_norwegian.c +283 -0
  117. data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_norwegian.h +6 -0
  118. data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_porter.c +735 -0
  119. data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_porter.h +6 -0
  120. data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_portuguese.c +1003 -0
  121. data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_portuguese.h +7 -0
  122. data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_spanish.c +1079 -0
  123. data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_spanish.h +6 -0
  124. data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_swedish.c +293 -0
  125. data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_swedish.h +6 -0
  126. data/ext/isomorfeus_ferret_ext/stem_ISO_8859_2_romanian.c +984 -0
  127. data/ext/isomorfeus_ferret_ext/stem_ISO_8859_2_romanian.h +6 -0
  128. data/ext/isomorfeus_ferret_ext/stem_KOI8_R_russian.c +686 -0
  129. data/ext/isomorfeus_ferret_ext/stem_KOI8_R_russian.h +6 -0
  130. data/ext/isomorfeus_ferret_ext/stem_UTF_8_danish.c +325 -0
  131. data/ext/isomorfeus_ferret_ext/stem_UTF_8_danish.h +6 -0
  132. data/ext/isomorfeus_ferret_ext/stem_UTF_8_dutch.c +620 -0
  133. data/ext/isomorfeus_ferret_ext/stem_UTF_8_dutch.h +6 -0
  134. data/ext/isomorfeus_ferret_ext/stem_UTF_8_english.c +1111 -0
  135. data/ext/isomorfeus_ferret_ext/stem_UTF_8_english.h +6 -0
  136. data/ext/isomorfeus_ferret_ext/stem_UTF_8_finnish.c +754 -0
  137. data/ext/isomorfeus_ferret_ext/stem_UTF_8_finnish.h +6 -0
  138. data/ext/isomorfeus_ferret_ext/stem_UTF_8_french.c +1242 -0
  139. data/ext/isomorfeus_ferret_ext/stem_UTF_8_french.h +6 -0
  140. data/ext/isomorfeus_ferret_ext/stem_UTF_8_german.c +495 -0
  141. data/ext/isomorfeus_ferret_ext/stem_UTF_8_german.h +6 -0
  142. data/ext/isomorfeus_ferret_ext/stem_UTF_8_hungarian.c +1220 -0
  143. data/ext/isomorfeus_ferret_ext/stem_UTF_8_hungarian.h +6 -0
  144. data/ext/isomorfeus_ferret_ext/stem_UTF_8_italian.c +1059 -0
  145. data/ext/isomorfeus_ferret_ext/stem_UTF_8_italian.h +6 -0
  146. data/ext/isomorfeus_ferret_ext/stem_UTF_8_norwegian.c +285 -0
  147. data/ext/isomorfeus_ferret_ext/stem_UTF_8_norwegian.h +6 -0
  148. data/ext/isomorfeus_ferret_ext/stem_UTF_8_porter.c +741 -0
  149. data/ext/isomorfeus_ferret_ext/stem_UTF_8_porter.h +6 -0
  150. data/ext/isomorfeus_ferret_ext/stem_UTF_8_portuguese.c +1009 -0
  151. data/ext/isomorfeus_ferret_ext/stem_UTF_8_portuguese.h +6 -0
  152. data/ext/isomorfeus_ferret_ext/stem_UTF_8_romanian.c +990 -0
  153. data/ext/isomorfeus_ferret_ext/stem_UTF_8_romanian.h +6 -0
  154. data/ext/isomorfeus_ferret_ext/stem_UTF_8_russian.c +680 -0
  155. data/ext/isomorfeus_ferret_ext/stem_UTF_8_russian.h +6 -0
  156. data/ext/isomorfeus_ferret_ext/stem_UTF_8_spanish.c +1083 -0
  157. data/ext/isomorfeus_ferret_ext/stem_UTF_8_spanish.h +6 -0
  158. data/ext/isomorfeus_ferret_ext/stem_UTF_8_swedish.c +294 -0
  159. data/ext/isomorfeus_ferret_ext/stem_UTF_8_swedish.h +6 -0
  160. data/ext/isomorfeus_ferret_ext/stem_UTF_8_turkish.c +2191 -0
  161. data/ext/isomorfeus_ferret_ext/stem_UTF_8_turkish.h +6 -0
  162. data/ext/isomorfeus_ferret_ext/stem_api.c +66 -0
  163. data/ext/isomorfeus_ferret_ext/stem_api.h +26 -0
  164. data/ext/isomorfeus_ferret_ext/stem_header.h +57 -0
  165. data/ext/isomorfeus_ferret_ext/stem_modules.h +190 -0
  166. data/ext/isomorfeus_ferret_ext/stem_modules.txt +50 -0
  167. data/ext/isomorfeus_ferret_ext/stem_utilities.c +478 -0
  168. data/ext/isomorfeus_ferret_ext/test.c +850 -0
  169. data/ext/isomorfeus_ferret_ext/test.h +416 -0
  170. data/ext/isomorfeus_ferret_ext/test_1710.c +63 -0
  171. data/ext/isomorfeus_ferret_ext/test_analysis.c +1221 -0
  172. data/ext/isomorfeus_ferret_ext/test_array.c +272 -0
  173. data/ext/isomorfeus_ferret_ext/test_bitvector.c +600 -0
  174. data/ext/isomorfeus_ferret_ext/test_compound_io.c +170 -0
  175. data/ext/isomorfeus_ferret_ext/test_document.c +156 -0
  176. data/ext/isomorfeus_ferret_ext/test_except.c +244 -0
  177. data/ext/isomorfeus_ferret_ext/test_fields.c +522 -0
  178. data/ext/isomorfeus_ferret_ext/test_file_deleter.c +185 -0
  179. data/ext/isomorfeus_ferret_ext/test_filter.c +331 -0
  180. data/ext/isomorfeus_ferret_ext/test_fs_store.c +25 -0
  181. data/ext/isomorfeus_ferret_ext/test_global.c +299 -0
  182. data/ext/isomorfeus_ferret_ext/test_hash.c +485 -0
  183. data/ext/isomorfeus_ferret_ext/test_hashset.c +288 -0
  184. data/ext/isomorfeus_ferret_ext/test_helper.c +47 -0
  185. data/ext/isomorfeus_ferret_ext/test_highlighter.c +548 -0
  186. data/ext/isomorfeus_ferret_ext/test_index.c +2323 -0
  187. data/ext/isomorfeus_ferret_ext/test_lang.c +74 -0
  188. data/ext/isomorfeus_ferret_ext/test_mempool.c +102 -0
  189. data/ext/isomorfeus_ferret_ext/test_multimapper.c +64 -0
  190. data/ext/isomorfeus_ferret_ext/test_priorityqueue.c +213 -0
  191. data/ext/isomorfeus_ferret_ext/test_q_const_score.c +84 -0
  192. data/ext/isomorfeus_ferret_ext/test_q_filtered.c +61 -0
  193. data/ext/isomorfeus_ferret_ext/test_q_fuzzy.c +241 -0
  194. data/ext/isomorfeus_ferret_ext/test_q_parser.c +464 -0
  195. data/ext/isomorfeus_ferret_ext/test_q_span.c +575 -0
  196. data/ext/isomorfeus_ferret_ext/test_ram_store.c +77 -0
  197. data/ext/isomorfeus_ferret_ext/test_search.c +1874 -0
  198. data/ext/isomorfeus_ferret_ext/test_segments.c +167 -0
  199. data/ext/isomorfeus_ferret_ext/test_similarity.c +25 -0
  200. data/ext/isomorfeus_ferret_ext/test_sort.c +333 -0
  201. data/ext/isomorfeus_ferret_ext/test_store.c +591 -0
  202. data/ext/isomorfeus_ferret_ext/test_store.h +3 -0
  203. data/ext/isomorfeus_ferret_ext/test_term.c +351 -0
  204. data/ext/isomorfeus_ferret_ext/test_term_vectors.c +373 -0
  205. data/ext/isomorfeus_ferret_ext/test_test.c +83 -0
  206. data/ext/isomorfeus_ferret_ext/test_threading.c +188 -0
  207. data/ext/isomorfeus_ferret_ext/testhelper.c +561 -0
  208. data/ext/isomorfeus_ferret_ext/testhelper.h +25 -0
  209. data/ext/isomorfeus_ferret_ext/tests_all.h +87 -0
  210. data/ext/isomorfeus_ferret_ext/uchar-ucs4.rl +1854 -0
  211. data/ext/isomorfeus_ferret_ext/uchar-utf8.rl +1999 -0
  212. data/ext/isomorfeus_ferret_ext/url.rl +27 -0
  213. data/ext/isomorfeus_ferret_ext/word_list.h +15156 -0
  214. data/lib/isomorfeus/ferret/document.rb +132 -0
  215. data/lib/isomorfeus/ferret/field_symbol.rb +85 -0
  216. data/lib/isomorfeus/ferret/index/field_infos.rb +48 -0
  217. data/lib/isomorfeus/ferret/index/index.rb +970 -0
  218. data/lib/isomorfeus/ferret/monitor.rb +323 -0
  219. data/lib/isomorfeus/ferret/stdlib_patches.rb +151 -0
  220. data/lib/isomorfeus/ferret/version.rb +5 -0
  221. data/lib/isomorfeus-ferret.rb +8 -0
  222. metadata +307 -0
@@ -0,0 +1,749 @@
1
+
2
+ /* This file was generated automatically by the Snowball to ANSI C compiler */
3
+
4
+ #include "stem_header.h"
5
+
6
+ extern int finnish_ISO_8859_1_stem(struct SN_env * z);
7
+
8
+ static int r_tidy(struct SN_env * z);
9
+ static int r_other_endings(struct SN_env * z);
10
+ static int r_t_plural(struct SN_env * z);
11
+ static int r_i_plural(struct SN_env * z);
12
+ static int r_case_ending(struct SN_env * z);
13
+ static int r_VI(struct SN_env * z);
14
+ static int r_LONG(struct SN_env * z);
15
+ static int r_possessive(struct SN_env * z);
16
+ static int r_particle_etc(struct SN_env * z);
17
+ static int r_R2(struct SN_env * z);
18
+ static int r_mark_regions(struct SN_env * z);
19
+
20
+ extern struct SN_env * finnish_ISO_8859_1_create_env(void);
21
+ extern void finnish_ISO_8859_1_close_env(struct SN_env * z);
22
+
23
+ static const symbol s_0_0[2] = { 'p', 'a' };
24
+ static const symbol s_0_1[3] = { 's', 't', 'i' };
25
+ static const symbol s_0_2[4] = { 'k', 'a', 'a', 'n' };
26
+ static const symbol s_0_3[3] = { 'h', 'a', 'n' };
27
+ static const symbol s_0_4[3] = { 'k', 'i', 'n' };
28
+ static const symbol s_0_5[3] = { 'h', 0xE4, 'n' };
29
+ static const symbol s_0_6[4] = { 'k', 0xE4, 0xE4, 'n' };
30
+ static const symbol s_0_7[2] = { 'k', 'o' };
31
+ static const symbol s_0_8[2] = { 'p', 0xE4 };
32
+ static const symbol s_0_9[2] = { 'k', 0xF6 };
33
+
34
+ static const struct among a_0[10] =
35
+ {
36
+ /* 0 */ { 2, s_0_0, -1, 1, 0},
37
+ /* 1 */ { 3, s_0_1, -1, 2, 0},
38
+ /* 2 */ { 4, s_0_2, -1, 1, 0},
39
+ /* 3 */ { 3, s_0_3, -1, 1, 0},
40
+ /* 4 */ { 3, s_0_4, -1, 1, 0},
41
+ /* 5 */ { 3, s_0_5, -1, 1, 0},
42
+ /* 6 */ { 4, s_0_6, -1, 1, 0},
43
+ /* 7 */ { 2, s_0_7, -1, 1, 0},
44
+ /* 8 */ { 2, s_0_8, -1, 1, 0},
45
+ /* 9 */ { 2, s_0_9, -1, 1, 0}
46
+ };
47
+
48
+ static const symbol s_1_0[3] = { 'l', 'l', 'a' };
49
+ static const symbol s_1_1[2] = { 'n', 'a' };
50
+ static const symbol s_1_2[3] = { 's', 's', 'a' };
51
+ static const symbol s_1_3[2] = { 't', 'a' };
52
+ static const symbol s_1_4[3] = { 'l', 't', 'a' };
53
+ static const symbol s_1_5[3] = { 's', 't', 'a' };
54
+
55
+ static const struct among a_1[6] =
56
+ {
57
+ /* 0 */ { 3, s_1_0, -1, -1, 0},
58
+ /* 1 */ { 2, s_1_1, -1, -1, 0},
59
+ /* 2 */ { 3, s_1_2, -1, -1, 0},
60
+ /* 3 */ { 2, s_1_3, -1, -1, 0},
61
+ /* 4 */ { 3, s_1_4, 3, -1, 0},
62
+ /* 5 */ { 3, s_1_5, 3, -1, 0}
63
+ };
64
+
65
+ static const symbol s_2_0[3] = { 'l', 'l', 0xE4 };
66
+ static const symbol s_2_1[2] = { 'n', 0xE4 };
67
+ static const symbol s_2_2[3] = { 's', 's', 0xE4 };
68
+ static const symbol s_2_3[2] = { 't', 0xE4 };
69
+ static const symbol s_2_4[3] = { 'l', 't', 0xE4 };
70
+ static const symbol s_2_5[3] = { 's', 't', 0xE4 };
71
+
72
+ static const struct among a_2[6] =
73
+ {
74
+ /* 0 */ { 3, s_2_0, -1, -1, 0},
75
+ /* 1 */ { 2, s_2_1, -1, -1, 0},
76
+ /* 2 */ { 3, s_2_2, -1, -1, 0},
77
+ /* 3 */ { 2, s_2_3, -1, -1, 0},
78
+ /* 4 */ { 3, s_2_4, 3, -1, 0},
79
+ /* 5 */ { 3, s_2_5, 3, -1, 0}
80
+ };
81
+
82
+ static const symbol s_3_0[3] = { 'l', 'l', 'e' };
83
+ static const symbol s_3_1[3] = { 'i', 'n', 'e' };
84
+
85
+ static const struct among a_3[2] =
86
+ {
87
+ /* 0 */ { 3, s_3_0, -1, -1, 0},
88
+ /* 1 */ { 3, s_3_1, -1, -1, 0}
89
+ };
90
+
91
+ static const symbol s_4_0[3] = { 'n', 's', 'a' };
92
+ static const symbol s_4_1[3] = { 'm', 'm', 'e' };
93
+ static const symbol s_4_2[3] = { 'n', 'n', 'e' };
94
+ static const symbol s_4_3[2] = { 'n', 'i' };
95
+ static const symbol s_4_4[2] = { 's', 'i' };
96
+ static const symbol s_4_5[2] = { 'a', 'n' };
97
+ static const symbol s_4_6[2] = { 'e', 'n' };
98
+ static const symbol s_4_7[2] = { 0xE4, 'n' };
99
+ static const symbol s_4_8[3] = { 'n', 's', 0xE4 };
100
+
101
+ static const struct among a_4[9] =
102
+ {
103
+ /* 0 */ { 3, s_4_0, -1, 3, 0},
104
+ /* 1 */ { 3, s_4_1, -1, 3, 0},
105
+ /* 2 */ { 3, s_4_2, -1, 3, 0},
106
+ /* 3 */ { 2, s_4_3, -1, 2, 0},
107
+ /* 4 */ { 2, s_4_4, -1, 1, 0},
108
+ /* 5 */ { 2, s_4_5, -1, 4, 0},
109
+ /* 6 */ { 2, s_4_6, -1, 6, 0},
110
+ /* 7 */ { 2, s_4_7, -1, 5, 0},
111
+ /* 8 */ { 3, s_4_8, -1, 3, 0}
112
+ };
113
+
114
+ static const symbol s_5_0[2] = { 'a', 'a' };
115
+ static const symbol s_5_1[2] = { 'e', 'e' };
116
+ static const symbol s_5_2[2] = { 'i', 'i' };
117
+ static const symbol s_5_3[2] = { 'o', 'o' };
118
+ static const symbol s_5_4[2] = { 'u', 'u' };
119
+ static const symbol s_5_5[2] = { 0xE4, 0xE4 };
120
+ static const symbol s_5_6[2] = { 0xF6, 0xF6 };
121
+
122
+ static const struct among a_5[7] =
123
+ {
124
+ /* 0 */ { 2, s_5_0, -1, -1, 0},
125
+ /* 1 */ { 2, s_5_1, -1, -1, 0},
126
+ /* 2 */ { 2, s_5_2, -1, -1, 0},
127
+ /* 3 */ { 2, s_5_3, -1, -1, 0},
128
+ /* 4 */ { 2, s_5_4, -1, -1, 0},
129
+ /* 5 */ { 2, s_5_5, -1, -1, 0},
130
+ /* 6 */ { 2, s_5_6, -1, -1, 0}
131
+ };
132
+
133
+ static const symbol s_6_0[1] = { 'a' };
134
+ static const symbol s_6_1[3] = { 'l', 'l', 'a' };
135
+ static const symbol s_6_2[2] = { 'n', 'a' };
136
+ static const symbol s_6_3[3] = { 's', 's', 'a' };
137
+ static const symbol s_6_4[2] = { 't', 'a' };
138
+ static const symbol s_6_5[3] = { 'l', 't', 'a' };
139
+ static const symbol s_6_6[3] = { 's', 't', 'a' };
140
+ static const symbol s_6_7[3] = { 't', 't', 'a' };
141
+ static const symbol s_6_8[3] = { 'l', 'l', 'e' };
142
+ static const symbol s_6_9[3] = { 'i', 'n', 'e' };
143
+ static const symbol s_6_10[3] = { 'k', 's', 'i' };
144
+ static const symbol s_6_11[1] = { 'n' };
145
+ static const symbol s_6_12[3] = { 'h', 'a', 'n' };
146
+ static const symbol s_6_13[3] = { 'd', 'e', 'n' };
147
+ static const symbol s_6_14[4] = { 's', 'e', 'e', 'n' };
148
+ static const symbol s_6_15[3] = { 'h', 'e', 'n' };
149
+ static const symbol s_6_16[4] = { 't', 't', 'e', 'n' };
150
+ static const symbol s_6_17[3] = { 'h', 'i', 'n' };
151
+ static const symbol s_6_18[4] = { 's', 'i', 'i', 'n' };
152
+ static const symbol s_6_19[3] = { 'h', 'o', 'n' };
153
+ static const symbol s_6_20[3] = { 'h', 0xE4, 'n' };
154
+ static const symbol s_6_21[3] = { 'h', 0xF6, 'n' };
155
+ static const symbol s_6_22[1] = { 0xE4 };
156
+ static const symbol s_6_23[3] = { 'l', 'l', 0xE4 };
157
+ static const symbol s_6_24[2] = { 'n', 0xE4 };
158
+ static const symbol s_6_25[3] = { 's', 's', 0xE4 };
159
+ static const symbol s_6_26[2] = { 't', 0xE4 };
160
+ static const symbol s_6_27[3] = { 'l', 't', 0xE4 };
161
+ static const symbol s_6_28[3] = { 's', 't', 0xE4 };
162
+ static const symbol s_6_29[3] = { 't', 't', 0xE4 };
163
+
164
+ static const struct among a_6[30] =
165
+ {
166
+ /* 0 */ { 1, s_6_0, -1, 8, 0},
167
+ /* 1 */ { 3, s_6_1, 0, -1, 0},
168
+ /* 2 */ { 2, s_6_2, 0, -1, 0},
169
+ /* 3 */ { 3, s_6_3, 0, -1, 0},
170
+ /* 4 */ { 2, s_6_4, 0, -1, 0},
171
+ /* 5 */ { 3, s_6_5, 4, -1, 0},
172
+ /* 6 */ { 3, s_6_6, 4, -1, 0},
173
+ /* 7 */ { 3, s_6_7, 4, 9, 0},
174
+ /* 8 */ { 3, s_6_8, -1, -1, 0},
175
+ /* 9 */ { 3, s_6_9, -1, -1, 0},
176
+ /* 10 */ { 3, s_6_10, -1, -1, 0},
177
+ /* 11 */ { 1, s_6_11, -1, 7, 0},
178
+ /* 12 */ { 3, s_6_12, 11, 1, 0},
179
+ /* 13 */ { 3, s_6_13, 11, -1, r_VI},
180
+ /* 14 */ { 4, s_6_14, 11, -1, r_LONG},
181
+ /* 15 */ { 3, s_6_15, 11, 2, 0},
182
+ /* 16 */ { 4, s_6_16, 11, -1, r_VI},
183
+ /* 17 */ { 3, s_6_17, 11, 3, 0},
184
+ /* 18 */ { 4, s_6_18, 11, -1, r_VI},
185
+ /* 19 */ { 3, s_6_19, 11, 4, 0},
186
+ /* 20 */ { 3, s_6_20, 11, 5, 0},
187
+ /* 21 */ { 3, s_6_21, 11, 6, 0},
188
+ /* 22 */ { 1, s_6_22, -1, 8, 0},
189
+ /* 23 */ { 3, s_6_23, 22, -1, 0},
190
+ /* 24 */ { 2, s_6_24, 22, -1, 0},
191
+ /* 25 */ { 3, s_6_25, 22, -1, 0},
192
+ /* 26 */ { 2, s_6_26, 22, -1, 0},
193
+ /* 27 */ { 3, s_6_27, 26, -1, 0},
194
+ /* 28 */ { 3, s_6_28, 26, -1, 0},
195
+ /* 29 */ { 3, s_6_29, 26, 9, 0}
196
+ };
197
+
198
+ static const symbol s_7_0[3] = { 'e', 'j', 'a' };
199
+ static const symbol s_7_1[3] = { 'm', 'm', 'a' };
200
+ static const symbol s_7_2[4] = { 'i', 'm', 'm', 'a' };
201
+ static const symbol s_7_3[3] = { 'm', 'p', 'a' };
202
+ static const symbol s_7_4[4] = { 'i', 'm', 'p', 'a' };
203
+ static const symbol s_7_5[3] = { 'm', 'm', 'i' };
204
+ static const symbol s_7_6[4] = { 'i', 'm', 'm', 'i' };
205
+ static const symbol s_7_7[3] = { 'm', 'p', 'i' };
206
+ static const symbol s_7_8[4] = { 'i', 'm', 'p', 'i' };
207
+ static const symbol s_7_9[3] = { 'e', 'j', 0xE4 };
208
+ static const symbol s_7_10[3] = { 'm', 'm', 0xE4 };
209
+ static const symbol s_7_11[4] = { 'i', 'm', 'm', 0xE4 };
210
+ static const symbol s_7_12[3] = { 'm', 'p', 0xE4 };
211
+ static const symbol s_7_13[4] = { 'i', 'm', 'p', 0xE4 };
212
+
213
+ static const struct among a_7[14] =
214
+ {
215
+ /* 0 */ { 3, s_7_0, -1, -1, 0},
216
+ /* 1 */ { 3, s_7_1, -1, 1, 0},
217
+ /* 2 */ { 4, s_7_2, 1, -1, 0},
218
+ /* 3 */ { 3, s_7_3, -1, 1, 0},
219
+ /* 4 */ { 4, s_7_4, 3, -1, 0},
220
+ /* 5 */ { 3, s_7_5, -1, 1, 0},
221
+ /* 6 */ { 4, s_7_6, 5, -1, 0},
222
+ /* 7 */ { 3, s_7_7, -1, 1, 0},
223
+ /* 8 */ { 4, s_7_8, 7, -1, 0},
224
+ /* 9 */ { 3, s_7_9, -1, -1, 0},
225
+ /* 10 */ { 3, s_7_10, -1, 1, 0},
226
+ /* 11 */ { 4, s_7_11, 10, -1, 0},
227
+ /* 12 */ { 3, s_7_12, -1, 1, 0},
228
+ /* 13 */ { 4, s_7_13, 12, -1, 0}
229
+ };
230
+
231
+ static const symbol s_8_0[1] = { 'i' };
232
+ static const symbol s_8_1[1] = { 'j' };
233
+
234
+ static const struct among a_8[2] =
235
+ {
236
+ /* 0 */ { 1, s_8_0, -1, -1, 0},
237
+ /* 1 */ { 1, s_8_1, -1, -1, 0}
238
+ };
239
+
240
+ static const symbol s_9_0[3] = { 'm', 'm', 'a' };
241
+ static const symbol s_9_1[4] = { 'i', 'm', 'm', 'a' };
242
+
243
+ static const struct among a_9[2] =
244
+ {
245
+ /* 0 */ { 3, s_9_0, -1, 1, 0},
246
+ /* 1 */ { 4, s_9_1, 0, -1, 0}
247
+ };
248
+
249
+ static const unsigned char g_AEI[] = { 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8 };
250
+
251
+ 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 };
252
+
253
+ 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 };
254
+
255
+ 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 };
256
+
257
+ static const symbol s_0[] = { 'k' };
258
+ static const symbol s_1[] = { 'k', 's', 'e' };
259
+ static const symbol s_2[] = { 'k', 's', 'i' };
260
+ static const symbol s_3[] = { 'i' };
261
+ static const symbol s_4[] = { 'a' };
262
+ static const symbol s_5[] = { 'e' };
263
+ static const symbol s_6[] = { 'i' };
264
+ static const symbol s_7[] = { 'o' };
265
+ static const symbol s_8[] = { 0xE4 };
266
+ static const symbol s_9[] = { 0xF6 };
267
+ static const symbol s_10[] = { 'i', 'e' };
268
+ static const symbol s_11[] = { 'e' };
269
+ static const symbol s_12[] = { 'p', 'o' };
270
+ static const symbol s_13[] = { 't' };
271
+ static const symbol s_14[] = { 'p', 'o' };
272
+ static const symbol s_15[] = { 'j' };
273
+ static const symbol s_16[] = { 'o' };
274
+ static const symbol s_17[] = { 'u' };
275
+ static const symbol s_18[] = { 'o' };
276
+ static const symbol s_19[] = { 'j' };
277
+
278
+ static int r_mark_regions(struct SN_env * z) {
279
+ z->I[0] = z->l;
280
+ z->I[1] = z->l;
281
+ if (out_grouping(z, g_V1, 97, 246, 1) < 0) return 0; /* goto */ /* grouping V1, line 46 */
282
+ { /* gopast */ /* non V1, line 46 */
283
+ int ret = in_grouping(z, g_V1, 97, 246, 1);
284
+ if (ret < 0) return 0;
285
+ z->c += ret;
286
+ }
287
+ z->I[0] = z->c; /* setmark p1, line 46 */
288
+ if (out_grouping(z, g_V1, 97, 246, 1) < 0) return 0; /* goto */ /* grouping V1, line 47 */
289
+ { /* gopast */ /* non V1, line 47 */
290
+ int ret = in_grouping(z, g_V1, 97, 246, 1);
291
+ if (ret < 0) return 0;
292
+ z->c += ret;
293
+ }
294
+ z->I[1] = z->c; /* setmark p2, line 47 */
295
+ return 1;
296
+ }
297
+
298
+ static int r_R2(struct SN_env * z) {
299
+ if (!(z->I[1] <= z->c)) return 0;
300
+ return 1;
301
+ }
302
+
303
+ static int r_particle_etc(struct SN_env * z) {
304
+ int among_var;
305
+ { int mlimit; /* setlimit, line 55 */
306
+ int m1 = z->l - z->c; (void)m1;
307
+ if (z->c < z->I[0]) return 0;
308
+ z->c = z->I[0]; /* tomark, line 55 */
309
+ mlimit = z->lb; z->lb = z->c;
310
+ z->c = z->l - m1;
311
+ z->ket = z->c; /* [, line 55 */
312
+ among_var = find_among_b(z, a_0, 10); /* substring, line 55 */
313
+ if (!(among_var)) { z->lb = mlimit; return 0; }
314
+ z->bra = z->c; /* ], line 55 */
315
+ z->lb = mlimit;
316
+ }
317
+ switch(among_var) {
318
+ case 0: return 0;
319
+ case 1:
320
+ if (in_grouping_b(z, g_particle_end, 97, 246, 0)) return 0;
321
+ break;
322
+ case 2:
323
+ { int ret = r_R2(z);
324
+ if (ret == 0) return 0; /* call R2, line 64 */
325
+ if (ret < 0) return ret;
326
+ }
327
+ break;
328
+ }
329
+ { int ret = slice_del(z); /* delete, line 66 */
330
+ if (ret < 0) return ret;
331
+ }
332
+ return 1;
333
+ }
334
+
335
+ static int r_possessive(struct SN_env * z) {
336
+ int among_var;
337
+ { int mlimit; /* setlimit, line 69 */
338
+ int m1 = z->l - z->c; (void)m1;
339
+ if (z->c < z->I[0]) return 0;
340
+ z->c = z->I[0]; /* tomark, line 69 */
341
+ mlimit = z->lb; z->lb = z->c;
342
+ z->c = z->l - m1;
343
+ z->ket = z->c; /* [, line 69 */
344
+ among_var = find_among_b(z, a_4, 9); /* substring, line 69 */
345
+ if (!(among_var)) { z->lb = mlimit; return 0; }
346
+ z->bra = z->c; /* ], line 69 */
347
+ z->lb = mlimit;
348
+ }
349
+ switch(among_var) {
350
+ case 0: return 0;
351
+ case 1:
352
+ { int m2 = z->l - z->c; (void)m2; /* not, line 72 */
353
+ if (!(eq_s_b(z, 1, s_0))) goto lab0;
354
+ return 0;
355
+ lab0:
356
+ z->c = z->l - m2;
357
+ }
358
+ { int ret = slice_del(z); /* delete, line 72 */
359
+ if (ret < 0) return ret;
360
+ }
361
+ break;
362
+ case 2:
363
+ { int ret = slice_del(z); /* delete, line 74 */
364
+ if (ret < 0) return ret;
365
+ }
366
+ z->ket = z->c; /* [, line 74 */
367
+ if (!(eq_s_b(z, 3, s_1))) return 0;
368
+ z->bra = z->c; /* ], line 74 */
369
+ { int ret = slice_from_s(z, 3, s_2); /* <-, line 74 */
370
+ if (ret < 0) return ret;
371
+ }
372
+ break;
373
+ case 3:
374
+ { int ret = slice_del(z); /* delete, line 78 */
375
+ if (ret < 0) return ret;
376
+ }
377
+ break;
378
+ case 4:
379
+ if (z->c - 1 <= z->lb || z->p[z->c - 1] != 97) return 0;
380
+ if (!(find_among_b(z, a_1, 6))) return 0; /* among, line 81 */
381
+ { int ret = slice_del(z); /* delete, line 81 */
382
+ if (ret < 0) return ret;
383
+ }
384
+ break;
385
+ case 5:
386
+ if (z->c - 1 <= z->lb || z->p[z->c - 1] != 228) return 0;
387
+ if (!(find_among_b(z, a_2, 6))) return 0; /* among, line 83 */
388
+ { int ret = slice_del(z); /* delete, line 84 */
389
+ if (ret < 0) return ret;
390
+ }
391
+ break;
392
+ case 6:
393
+ if (z->c - 2 <= z->lb || z->p[z->c - 1] != 101) return 0;
394
+ if (!(find_among_b(z, a_3, 2))) return 0; /* among, line 86 */
395
+ { int ret = slice_del(z); /* delete, line 86 */
396
+ if (ret < 0) return ret;
397
+ }
398
+ break;
399
+ }
400
+ return 1;
401
+ }
402
+
403
+ static int r_LONG(struct SN_env * z) {
404
+ if (!(find_among_b(z, a_5, 7))) return 0; /* among, line 91 */
405
+ return 1;
406
+ }
407
+
408
+ static int r_VI(struct SN_env * z) {
409
+ if (!(eq_s_b(z, 1, s_3))) return 0;
410
+ if (in_grouping_b(z, g_V2, 97, 246, 0)) return 0;
411
+ return 1;
412
+ }
413
+
414
+ static int r_case_ending(struct SN_env * z) {
415
+ int among_var;
416
+ { int mlimit; /* setlimit, line 96 */
417
+ int m1 = z->l - z->c; (void)m1;
418
+ if (z->c < z->I[0]) return 0;
419
+ z->c = z->I[0]; /* tomark, line 96 */
420
+ mlimit = z->lb; z->lb = z->c;
421
+ z->c = z->l - m1;
422
+ z->ket = z->c; /* [, line 96 */
423
+ among_var = find_among_b(z, a_6, 30); /* substring, line 96 */
424
+ if (!(among_var)) { z->lb = mlimit; return 0; }
425
+ z->bra = z->c; /* ], line 96 */
426
+ z->lb = mlimit;
427
+ }
428
+ switch(among_var) {
429
+ case 0: return 0;
430
+ case 1:
431
+ if (!(eq_s_b(z, 1, s_4))) return 0;
432
+ break;
433
+ case 2:
434
+ if (!(eq_s_b(z, 1, s_5))) return 0;
435
+ break;
436
+ case 3:
437
+ if (!(eq_s_b(z, 1, s_6))) return 0;
438
+ break;
439
+ case 4:
440
+ if (!(eq_s_b(z, 1, s_7))) return 0;
441
+ break;
442
+ case 5:
443
+ if (!(eq_s_b(z, 1, s_8))) return 0;
444
+ break;
445
+ case 6:
446
+ if (!(eq_s_b(z, 1, s_9))) return 0;
447
+ break;
448
+ case 7:
449
+ { int m_keep = z->l - z->c;/* (void) m_keep;*/ /* try, line 111 */
450
+ { int m2 = z->l - z->c; (void)m2; /* and, line 113 */
451
+ { int m3 = z->l - z->c; (void)m3; /* or, line 112 */
452
+ { int ret = r_LONG(z);
453
+ if (ret == 0) goto lab2; /* call LONG, line 111 */
454
+ if (ret < 0) return ret;
455
+ }
456
+ goto lab1;
457
+ lab2:
458
+ z->c = z->l - m3;
459
+ if (!(eq_s_b(z, 2, s_10))) { z->c = z->l - m_keep; goto lab0; }
460
+ }
461
+ lab1:
462
+ z->c = z->l - m2;
463
+ if (z->c <= z->lb) { z->c = z->l - m_keep; goto lab0; }
464
+ z->c--; /* next, line 113 */
465
+ }
466
+ z->bra = z->c; /* ], line 113 */
467
+ lab0:
468
+ ;
469
+ }
470
+ break;
471
+ case 8:
472
+ if (in_grouping_b(z, g_V1, 97, 246, 0)) return 0;
473
+ if (out_grouping_b(z, g_V1, 97, 246, 0)) return 0;
474
+ break;
475
+ case 9:
476
+ if (!(eq_s_b(z, 1, s_11))) return 0;
477
+ break;
478
+ }
479
+ { int ret = slice_del(z); /* delete, line 138 */
480
+ if (ret < 0) return ret;
481
+ }
482
+ z->B[0] = 1; /* set ending_removed, line 139 */
483
+ return 1;
484
+ }
485
+
486
+ static int r_other_endings(struct SN_env * z) {
487
+ int among_var;
488
+ { int mlimit; /* setlimit, line 142 */
489
+ int m1 = z->l - z->c; (void)m1;
490
+ if (z->c < z->I[1]) return 0;
491
+ z->c = z->I[1]; /* tomark, line 142 */
492
+ mlimit = z->lb; z->lb = z->c;
493
+ z->c = z->l - m1;
494
+ z->ket = z->c; /* [, line 142 */
495
+ among_var = find_among_b(z, a_7, 14); /* substring, line 142 */
496
+ if (!(among_var)) { z->lb = mlimit; return 0; }
497
+ z->bra = z->c; /* ], line 142 */
498
+ z->lb = mlimit;
499
+ }
500
+ switch(among_var) {
501
+ case 0: return 0;
502
+ case 1:
503
+ { int m2 = z->l - z->c; (void)m2; /* not, line 146 */
504
+ if (!(eq_s_b(z, 2, s_12))) goto lab0;
505
+ return 0;
506
+ lab0:
507
+ z->c = z->l - m2;
508
+ }
509
+ break;
510
+ }
511
+ { int ret = slice_del(z); /* delete, line 151 */
512
+ if (ret < 0) return ret;
513
+ }
514
+ return 1;
515
+ }
516
+
517
+ static int r_i_plural(struct SN_env * z) {
518
+ { int mlimit; /* setlimit, line 154 */
519
+ int m1 = z->l - z->c; (void)m1;
520
+ if (z->c < z->I[0]) return 0;
521
+ z->c = z->I[0]; /* tomark, line 154 */
522
+ mlimit = z->lb; z->lb = z->c;
523
+ z->c = z->l - m1;
524
+ z->ket = z->c; /* [, line 154 */
525
+ if (z->c <= z->lb || (z->p[z->c - 1] != 105 && z->p[z->c - 1] != 106)) { z->lb = mlimit; return 0; }
526
+ if (!(find_among_b(z, a_8, 2))) { z->lb = mlimit; return 0; } /* substring, line 154 */
527
+ z->bra = z->c; /* ], line 154 */
528
+ z->lb = mlimit;
529
+ }
530
+ { int ret = slice_del(z); /* delete, line 158 */
531
+ if (ret < 0) return ret;
532
+ }
533
+ return 1;
534
+ }
535
+
536
+ static int r_t_plural(struct SN_env * z) {
537
+ int among_var;
538
+ { int mlimit; /* setlimit, line 161 */
539
+ int m1 = z->l - z->c; (void)m1;
540
+ if (z->c < z->I[0]) return 0;
541
+ z->c = z->I[0]; /* tomark, line 161 */
542
+ mlimit = z->lb; z->lb = z->c;
543
+ z->c = z->l - m1;
544
+ z->ket = z->c; /* [, line 162 */
545
+ if (!(eq_s_b(z, 1, s_13))) { z->lb = mlimit; return 0; }
546
+ z->bra = z->c; /* ], line 162 */
547
+ { int m_test = z->l - z->c; /* test, line 162 */
548
+ if (in_grouping_b(z, g_V1, 97, 246, 0)) { z->lb = mlimit; return 0; }
549
+ z->c = z->l - m_test;
550
+ }
551
+ { int ret = slice_del(z); /* delete, line 163 */
552
+ if (ret < 0) return ret;
553
+ }
554
+ z->lb = mlimit;
555
+ }
556
+ { int mlimit; /* setlimit, line 165 */
557
+ int m2 = z->l - z->c; (void)m2;
558
+ if (z->c < z->I[1]) return 0;
559
+ z->c = z->I[1]; /* tomark, line 165 */
560
+ mlimit = z->lb; z->lb = z->c;
561
+ z->c = z->l - m2;
562
+ z->ket = z->c; /* [, line 165 */
563
+ if (z->c - 2 <= z->lb || z->p[z->c - 1] != 97) { z->lb = mlimit; return 0; }
564
+ among_var = find_among_b(z, a_9, 2); /* substring, line 165 */
565
+ if (!(among_var)) { z->lb = mlimit; return 0; }
566
+ z->bra = z->c; /* ], line 165 */
567
+ z->lb = mlimit;
568
+ }
569
+ switch(among_var) {
570
+ case 0: return 0;
571
+ case 1:
572
+ { int m3 = z->l - z->c; (void)m3; /* not, line 167 */
573
+ if (!(eq_s_b(z, 2, s_14))) goto lab0;
574
+ return 0;
575
+ lab0:
576
+ z->c = z->l - m3;
577
+ }
578
+ break;
579
+ }
580
+ { int ret = slice_del(z); /* delete, line 170 */
581
+ if (ret < 0) return ret;
582
+ }
583
+ return 1;
584
+ }
585
+
586
+ static int r_tidy(struct SN_env * z) {
587
+ { int mlimit; /* setlimit, line 173 */
588
+ int m1 = z->l - z->c; (void)m1;
589
+ if (z->c < z->I[0]) return 0;
590
+ z->c = z->I[0]; /* tomark, line 173 */
591
+ mlimit = z->lb; z->lb = z->c;
592
+ z->c = z->l - m1;
593
+ { int m2 = z->l - z->c; (void)m2; /* do, line 174 */
594
+ { int m3 = z->l - z->c; (void)m3; /* and, line 174 */
595
+ { int ret = r_LONG(z);
596
+ if (ret == 0) goto lab0; /* call LONG, line 174 */
597
+ if (ret < 0) return ret;
598
+ }
599
+ z->c = z->l - m3;
600
+ z->ket = z->c; /* [, line 174 */
601
+ if (z->c <= z->lb) goto lab0;
602
+ z->c--; /* next, line 174 */
603
+ z->bra = z->c; /* ], line 174 */
604
+ { int ret = slice_del(z); /* delete, line 174 */
605
+ if (ret < 0) return ret;
606
+ }
607
+ }
608
+ lab0:
609
+ z->c = z->l - m2;
610
+ }
611
+ { int m4 = z->l - z->c; (void)m4; /* do, line 175 */
612
+ z->ket = z->c; /* [, line 175 */
613
+ if (in_grouping_b(z, g_AEI, 97, 228, 0)) goto lab1;
614
+ z->bra = z->c; /* ], line 175 */
615
+ if (out_grouping_b(z, g_V1, 97, 246, 0)) goto lab1;
616
+ { int ret = slice_del(z); /* delete, line 175 */
617
+ if (ret < 0) return ret;
618
+ }
619
+ lab1:
620
+ z->c = z->l - m4;
621
+ }
622
+ { int m5 = z->l - z->c; (void)m5; /* do, line 176 */
623
+ z->ket = z->c; /* [, line 176 */
624
+ if (!(eq_s_b(z, 1, s_15))) goto lab2;
625
+ z->bra = z->c; /* ], line 176 */
626
+ { int m6 = z->l - z->c; (void)m6; /* or, line 176 */
627
+ if (!(eq_s_b(z, 1, s_16))) goto lab4;
628
+ goto lab3;
629
+ lab4:
630
+ z->c = z->l - m6;
631
+ if (!(eq_s_b(z, 1, s_17))) goto lab2;
632
+ }
633
+ lab3:
634
+ { int ret = slice_del(z); /* delete, line 176 */
635
+ if (ret < 0) return ret;
636
+ }
637
+ lab2:
638
+ z->c = z->l - m5;
639
+ }
640
+ { int m7 = z->l - z->c; (void)m7; /* do, line 177 */
641
+ z->ket = z->c; /* [, line 177 */
642
+ if (!(eq_s_b(z, 1, s_18))) goto lab5;
643
+ z->bra = z->c; /* ], line 177 */
644
+ if (!(eq_s_b(z, 1, s_19))) goto lab5;
645
+ { int ret = slice_del(z); /* delete, line 177 */
646
+ if (ret < 0) return ret;
647
+ }
648
+ lab5:
649
+ z->c = z->l - m7;
650
+ }
651
+ z->lb = mlimit;
652
+ }
653
+ if (in_grouping_b(z, g_V1, 97, 246, 1) < 0) return 0; /* goto */ /* non V1, line 179 */
654
+ z->ket = z->c; /* [, line 179 */
655
+ if (z->c <= z->lb) return 0;
656
+ z->c--; /* next, line 179 */
657
+ z->bra = z->c; /* ], line 179 */
658
+ z->S[0] = slice_to(z, z->S[0]); /* -> x, line 179 */
659
+ if (z->S[0] == 0) return -1; /* -> x, line 179 */
660
+ if (!(eq_v_b(z, z->S[0]))) return 0; /* name x, line 179 */
661
+ { int ret = slice_del(z); /* delete, line 179 */
662
+ if (ret < 0) return ret;
663
+ }
664
+ return 1;
665
+ }
666
+
667
+ extern int finnish_ISO_8859_1_stem(struct SN_env * z) {
668
+ { int c1 = z->c; /* do, line 185 */
669
+ { int ret = r_mark_regions(z);
670
+ if (ret == 0) goto lab0; /* call mark_regions, line 185 */
671
+ if (ret < 0) return ret;
672
+ }
673
+ lab0:
674
+ z->c = c1;
675
+ }
676
+ z->B[0] = 0; /* unset ending_removed, line 186 */
677
+ z->lb = z->c; z->c = z->l; /* backwards, line 187 */
678
+
679
+ { int m2 = z->l - z->c; (void)m2; /* do, line 188 */
680
+ { int ret = r_particle_etc(z);
681
+ if (ret == 0) goto lab1; /* call particle_etc, line 188 */
682
+ if (ret < 0) return ret;
683
+ }
684
+ lab1:
685
+ z->c = z->l - m2;
686
+ }
687
+ { int m3 = z->l - z->c; (void)m3; /* do, line 189 */
688
+ { int ret = r_possessive(z);
689
+ if (ret == 0) goto lab2; /* call possessive, line 189 */
690
+ if (ret < 0) return ret;
691
+ }
692
+ lab2:
693
+ z->c = z->l - m3;
694
+ }
695
+ { int m4 = z->l - z->c; (void)m4; /* do, line 190 */
696
+ { int ret = r_case_ending(z);
697
+ if (ret == 0) goto lab3; /* call case_ending, line 190 */
698
+ if (ret < 0) return ret;
699
+ }
700
+ lab3:
701
+ z->c = z->l - m4;
702
+ }
703
+ { int m5 = z->l - z->c; (void)m5; /* do, line 191 */
704
+ { int ret = r_other_endings(z);
705
+ if (ret == 0) goto lab4; /* call other_endings, line 191 */
706
+ if (ret < 0) return ret;
707
+ }
708
+ lab4:
709
+ z->c = z->l - m5;
710
+ }
711
+ { int m6 = z->l - z->c; (void)m6; /* or, line 192 */
712
+ if (!(z->B[0])) goto lab6; /* Boolean test ending_removed, line 192 */
713
+ { int m7 = z->l - z->c; (void)m7; /* do, line 192 */
714
+ { int ret = r_i_plural(z);
715
+ if (ret == 0) goto lab7; /* call i_plural, line 192 */
716
+ if (ret < 0) return ret;
717
+ }
718
+ lab7:
719
+ z->c = z->l - m7;
720
+ }
721
+ goto lab5;
722
+ lab6:
723
+ z->c = z->l - m6;
724
+ { int m8 = z->l - z->c; (void)m8; /* do, line 192 */
725
+ { int ret = r_t_plural(z);
726
+ if (ret == 0) goto lab8; /* call t_plural, line 192 */
727
+ if (ret < 0) return ret;
728
+ }
729
+ lab8:
730
+ z->c = z->l - m8;
731
+ }
732
+ }
733
+ lab5:
734
+ { int m9 = z->l - z->c; (void)m9; /* do, line 193 */
735
+ { int ret = r_tidy(z);
736
+ if (ret == 0) goto lab9; /* call tidy, line 193 */
737
+ if (ret < 0) return ret;
738
+ }
739
+ lab9:
740
+ z->c = z->l - m9;
741
+ }
742
+ z->c = z->lb;
743
+ return 1;
744
+ }
745
+
746
+ extern struct SN_env * finnish_ISO_8859_1_create_env(void) { return SN_create_env(1, 2, 1); }
747
+
748
+ extern void finnish_ISO_8859_1_close_env(struct SN_env * z) { SN_close_env(z, 1); }
749
+