ferret 0.9.0 → 0.9.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (187) hide show
  1. data/Rakefile +23 -5
  2. data/TODO +2 -1
  3. data/ext/analysis.c +838 -177
  4. data/ext/analysis.h +55 -7
  5. data/ext/api.c +69 -0
  6. data/ext/api.h +27 -0
  7. data/ext/array.c +8 -5
  8. data/ext/compound_io.c +132 -96
  9. data/ext/document.c +58 -28
  10. data/ext/except.c +59 -0
  11. data/ext/except.h +88 -0
  12. data/ext/ferret.c +47 -3
  13. data/ext/ferret.h +3 -0
  14. data/ext/field.c +15 -9
  15. data/ext/filter.c +1 -1
  16. data/ext/fs_store.c +215 -34
  17. data/ext/global.c +72 -3
  18. data/ext/global.h +4 -3
  19. data/ext/hash.c +44 -3
  20. data/ext/hash.h +9 -0
  21. data/ext/header.h +58 -0
  22. data/ext/inc/except.h +88 -0
  23. data/ext/inc/lang.h +23 -13
  24. data/ext/ind.c +16 -10
  25. data/ext/index.h +2 -22
  26. data/ext/index_io.c +3 -11
  27. data/ext/index_rw.c +245 -193
  28. data/ext/lang.h +23 -13
  29. data/ext/libstemmer.c +92 -0
  30. data/ext/libstemmer.h +79 -0
  31. data/ext/modules.h +162 -0
  32. data/ext/q_boolean.c +34 -21
  33. data/ext/q_const_score.c +6 -12
  34. data/ext/q_filtered_query.c +206 -0
  35. data/ext/q_fuzzy.c +18 -15
  36. data/ext/q_match_all.c +3 -7
  37. data/ext/q_multi_phrase.c +10 -14
  38. data/ext/q_parser.c +29 -2
  39. data/ext/q_phrase.c +14 -21
  40. data/ext/q_prefix.c +15 -12
  41. data/ext/q_range.c +30 -28
  42. data/ext/q_span.c +13 -21
  43. data/ext/q_term.c +17 -26
  44. data/ext/r_analysis.c +693 -21
  45. data/ext/r_doc.c +11 -12
  46. data/ext/r_index_io.c +4 -1
  47. data/ext/r_qparser.c +21 -2
  48. data/ext/r_search.c +285 -18
  49. data/ext/ram_store.c +5 -2
  50. data/ext/search.c +11 -17
  51. data/ext/search.h +21 -45
  52. data/ext/similarity.h +67 -0
  53. data/ext/sort.c +30 -25
  54. data/ext/stem_ISO_8859_1_danish.c +338 -0
  55. data/ext/stem_ISO_8859_1_danish.h +16 -0
  56. data/ext/stem_ISO_8859_1_dutch.c +635 -0
  57. data/ext/stem_ISO_8859_1_dutch.h +16 -0
  58. data/ext/stem_ISO_8859_1_english.c +1156 -0
  59. data/ext/stem_ISO_8859_1_english.h +16 -0
  60. data/ext/stem_ISO_8859_1_finnish.c +792 -0
  61. data/ext/stem_ISO_8859_1_finnish.h +16 -0
  62. data/ext/stem_ISO_8859_1_french.c +1276 -0
  63. data/ext/stem_ISO_8859_1_french.h +16 -0
  64. data/ext/stem_ISO_8859_1_german.c +512 -0
  65. data/ext/stem_ISO_8859_1_german.h +16 -0
  66. data/ext/stem_ISO_8859_1_italian.c +1091 -0
  67. data/ext/stem_ISO_8859_1_italian.h +16 -0
  68. data/ext/stem_ISO_8859_1_norwegian.c +296 -0
  69. data/ext/stem_ISO_8859_1_norwegian.h +16 -0
  70. data/ext/stem_ISO_8859_1_porter.c +776 -0
  71. data/ext/stem_ISO_8859_1_porter.h +16 -0
  72. data/ext/stem_ISO_8859_1_portuguese.c +1035 -0
  73. data/ext/stem_ISO_8859_1_portuguese.h +16 -0
  74. data/ext/stem_ISO_8859_1_spanish.c +1119 -0
  75. data/ext/stem_ISO_8859_1_spanish.h +16 -0
  76. data/ext/stem_ISO_8859_1_swedish.c +307 -0
  77. data/ext/stem_ISO_8859_1_swedish.h +16 -0
  78. data/ext/stem_KOI8_R_russian.c +701 -0
  79. data/ext/stem_KOI8_R_russian.h +16 -0
  80. data/ext/stem_UTF_8_danish.c +344 -0
  81. data/ext/stem_UTF_8_danish.h +16 -0
  82. data/ext/stem_UTF_8_dutch.c +653 -0
  83. data/ext/stem_UTF_8_dutch.h +16 -0
  84. data/ext/stem_UTF_8_english.c +1176 -0
  85. data/ext/stem_UTF_8_english.h +16 -0
  86. data/ext/stem_UTF_8_finnish.c +808 -0
  87. data/ext/stem_UTF_8_finnish.h +16 -0
  88. data/ext/stem_UTF_8_french.c +1296 -0
  89. data/ext/stem_UTF_8_french.h +16 -0
  90. data/ext/stem_UTF_8_german.c +526 -0
  91. data/ext/stem_UTF_8_german.h +16 -0
  92. data/ext/stem_UTF_8_italian.c +1113 -0
  93. data/ext/stem_UTF_8_italian.h +16 -0
  94. data/ext/stem_UTF_8_norwegian.c +302 -0
  95. data/ext/stem_UTF_8_norwegian.h +16 -0
  96. data/ext/stem_UTF_8_porter.c +794 -0
  97. data/ext/stem_UTF_8_porter.h +16 -0
  98. data/ext/stem_UTF_8_portuguese.c +1055 -0
  99. data/ext/stem_UTF_8_portuguese.h +16 -0
  100. data/ext/stem_UTF_8_russian.c +709 -0
  101. data/ext/stem_UTF_8_russian.h +16 -0
  102. data/ext/stem_UTF_8_spanish.c +1137 -0
  103. data/ext/stem_UTF_8_spanish.h +16 -0
  104. data/ext/stem_UTF_8_swedish.c +313 -0
  105. data/ext/stem_UTF_8_swedish.h +16 -0
  106. data/ext/stopwords.c +325 -0
  107. data/ext/store.c +34 -2
  108. data/ext/tags +2953 -0
  109. data/ext/term.c +21 -15
  110. data/ext/termdocs.c +5 -3
  111. data/ext/utilities.c +446 -0
  112. data/ext/vector.c +27 -13
  113. data/lib/ferret/document/document.rb +1 -1
  114. data/lib/ferret/index/index.rb +44 -6
  115. data/lib/ferret/query_parser/query_parser.tab.rb +7 -3
  116. data/lib/rferret.rb +2 -1
  117. data/test/test_helper.rb +2 -2
  118. data/test/unit/analysis/ctc_analyzer.rb +401 -0
  119. data/test/unit/analysis/ctc_tokenstream.rb +423 -0
  120. data/test/unit/analysis/{tc_letter_tokenizer.rb → rtc_letter_tokenizer.rb} +0 -0
  121. data/test/unit/analysis/{tc_lower_case_filter.rb → rtc_lower_case_filter.rb} +0 -0
  122. data/test/unit/analysis/{tc_lower_case_tokenizer.rb → rtc_lower_case_tokenizer.rb} +0 -0
  123. data/test/unit/analysis/{tc_per_field_analyzer_wrapper.rb → rtc_per_field_analyzer_wrapper.rb} +0 -0
  124. data/test/unit/analysis/{tc_porter_stem_filter.rb → rtc_porter_stem_filter.rb} +0 -0
  125. data/test/unit/analysis/{tc_standard_analyzer.rb → rtc_standard_analyzer.rb} +0 -0
  126. data/test/unit/analysis/{tc_standard_tokenizer.rb → rtc_standard_tokenizer.rb} +0 -0
  127. data/test/unit/analysis/{tc_stop_analyzer.rb → rtc_stop_analyzer.rb} +0 -0
  128. data/test/unit/analysis/{tc_stop_filter.rb → rtc_stop_filter.rb} +0 -0
  129. data/test/unit/analysis/{tc_white_space_analyzer.rb → rtc_white_space_analyzer.rb} +0 -0
  130. data/test/unit/analysis/{tc_white_space_tokenizer.rb → rtc_white_space_tokenizer.rb} +0 -0
  131. data/test/unit/analysis/{tc_word_list_loader.rb → rtc_word_list_loader.rb} +0 -0
  132. data/test/unit/analysis/tc_analyzer.rb +1 -2
  133. data/test/unit/analysis/{c_token.rb → tc_token.rb} +0 -0
  134. data/test/unit/document/rtc_field.rb +28 -0
  135. data/test/unit/document/{c_document.rb → tc_document.rb} +0 -0
  136. data/test/unit/document/tc_field.rb +82 -12
  137. data/test/unit/index/{tc_compound_file_io.rb → rtc_compound_file_io.rb} +0 -0
  138. data/test/unit/index/{tc_field_infos.rb → rtc_field_infos.rb} +0 -0
  139. data/test/unit/index/{tc_fields_io.rb → rtc_fields_io.rb} +0 -0
  140. data/test/unit/index/{tc_multiple_term_doc_pos_enum.rb → rtc_multiple_term_doc_pos_enum.rb} +0 -0
  141. data/test/unit/index/{tc_segment_infos.rb → rtc_segment_infos.rb} +0 -0
  142. data/test/unit/index/{tc_segment_term_docs.rb → rtc_segment_term_docs.rb} +0 -0
  143. data/test/unit/index/{tc_segment_term_enum.rb → rtc_segment_term_enum.rb} +0 -0
  144. data/test/unit/index/{tc_segment_term_vector.rb → rtc_segment_term_vector.rb} +0 -0
  145. data/test/unit/index/{tc_term_buffer.rb → rtc_term_buffer.rb} +0 -0
  146. data/test/unit/index/{tc_term_info.rb → rtc_term_info.rb} +0 -0
  147. data/test/unit/index/{tc_term_infos_io.rb → rtc_term_infos_io.rb} +0 -0
  148. data/test/unit/index/{tc_term_vectors_io.rb → rtc_term_vectors_io.rb} +0 -0
  149. data/test/unit/index/{c_index.rb → tc_index.rb} +26 -6
  150. data/test/unit/index/{c_index_reader.rb → tc_index_reader.rb} +0 -0
  151. data/test/unit/index/{c_index_writer.rb → tc_index_writer.rb} +0 -0
  152. data/test/unit/index/{c_term.rb → tc_term.rb} +0 -0
  153. data/test/unit/index/{c_term_voi.rb → tc_term_voi.rb} +0 -0
  154. data/test/unit/query_parser/{c_query_parser.rb → rtc_query_parser.rb} +14 -14
  155. data/test/unit/query_parser/tc_query_parser.rb +24 -16
  156. data/test/unit/search/{tc_similarity.rb → rtc_similarity.rb} +0 -0
  157. data/test/unit/search/rtc_sort_field.rb +14 -0
  158. data/test/unit/search/{c_filter.rb → tc_filter.rb} +11 -11
  159. data/test/unit/search/{c_fuzzy_query.rb → tc_fuzzy_query.rb} +0 -0
  160. data/test/unit/search/{c_index_searcher.rb → tc_index_searcher.rb} +0 -0
  161. data/test/unit/search/{c_search_and_sort.rb → tc_search_and_sort.rb} +0 -0
  162. data/test/unit/search/{c_sort.rb → tc_sort.rb} +0 -0
  163. data/test/unit/search/tc_sort_field.rb +20 -7
  164. data/test/unit/search/{c_spans.rb → tc_spans.rb} +0 -0
  165. data/test/unit/store/rtc_fs_store.rb +62 -0
  166. data/test/unit/store/rtc_ram_store.rb +15 -0
  167. data/test/unit/store/rtm_store.rb +150 -0
  168. data/test/unit/store/rtm_store_lock.rb +2 -0
  169. data/test/unit/store/tc_fs_store.rb +54 -40
  170. data/test/unit/store/tc_ram_store.rb +20 -0
  171. data/test/unit/store/tm_store.rb +30 -146
  172. data/test/unit/store/tm_store_lock.rb +66 -0
  173. data/test/unit/utils/{tc_bit_vector.rb → rtc_bit_vector.rb} +0 -0
  174. data/test/unit/utils/{tc_date_tools.rb → rtc_date_tools.rb} +0 -0
  175. data/test/unit/utils/{tc_number_tools.rb → rtc_number_tools.rb} +0 -0
  176. data/test/unit/utils/{tc_parameter.rb → rtc_parameter.rb} +0 -0
  177. data/test/unit/utils/{tc_priority_queue.rb → rtc_priority_queue.rb} +0 -0
  178. data/test/unit/utils/{tc_string_helper.rb → rtc_string_helper.rb} +0 -0
  179. data/test/unit/utils/{tc_thread.rb → rtc_thread.rb} +0 -0
  180. data/test/unit/utils/{tc_weak_key_hash.rb → rtc_weak_key_hash.rb} +0 -0
  181. metadata +360 -289
  182. data/test/unit/document/c_field.rb +0 -98
  183. data/test/unit/search/c_sort_field.rb +0 -27
  184. data/test/unit/store/c_fs_store.rb +0 -76
  185. data/test/unit/store/c_ram_store.rb +0 -35
  186. data/test/unit/store/m_store.rb +0 -34
  187. data/test/unit/store/m_store_lock.rb +0 -68
@@ -0,0 +1,16 @@
1
+
2
+ /* This file was generated automatically by the Snowball to ANSI C compiler */
3
+
4
+ #ifdef __cplusplus
5
+ extern "C" {
6
+ #endif
7
+
8
+ extern struct SN_env * english_ISO_8859_1_create_env(void);
9
+ extern void english_ISO_8859_1_close_env(struct SN_env * z);
10
+
11
+ extern int english_ISO_8859_1_stem(struct SN_env * z);
12
+
13
+ #ifdef __cplusplus
14
+ }
15
+ #endif
16
+
@@ -0,0 +1,792 @@
1
+
2
+ /* This file was generated automatically by the Snowball to ANSI C compiler */
3
+
4
+ #include "header.h"
5
+
6
+ extern int finnish_ISO_8859_1_stem(struct SN_env * z);
7
+ static int r_tidy(struct SN_env * z);
8
+ static int r_other_endings(struct SN_env * z);
9
+ static int r_t_plural(struct SN_env * z);
10
+ static int r_i_plural(struct SN_env * z);
11
+ static int r_case_ending(struct SN_env * z);
12
+ static int r_VI(struct SN_env * z);
13
+ static int r_LONG(struct SN_env * z);
14
+ static int r_possessive(struct SN_env * z);
15
+ static int r_particle_etc(struct SN_env * z);
16
+ static int r_R2(struct SN_env * z);
17
+ static int r_mark_regions(struct SN_env * z);
18
+
19
+ extern struct SN_env * finnish_ISO_8859_1_create_env(void);
20
+ extern void finnish_ISO_8859_1_close_env(struct SN_env * z);
21
+
22
+ static symbol s_0_0[2] = { 'p', 'a' };
23
+ static symbol s_0_1[3] = { 's', 't', 'i' };
24
+ static symbol s_0_2[4] = { 'k', 'a', 'a', 'n' };
25
+ static symbol s_0_3[3] = { 'h', 'a', 'n' };
26
+ static symbol s_0_4[3] = { 'k', 'i', 'n' };
27
+ static symbol s_0_5[3] = { 'h', 0xE4, 'n' };
28
+ static symbol s_0_6[4] = { 'k', 0xE4, 0xE4, 'n' };
29
+ static symbol s_0_7[2] = { 'k', 'o' };
30
+ static symbol s_0_8[2] = { 'p', 0xE4 };
31
+ static symbol s_0_9[2] = { 'k', 0xF6 };
32
+
33
+ static struct among a_0[10] =
34
+ {
35
+ /* 0 */ { 2, s_0_0, -1, 1, 0},
36
+ /* 1 */ { 3, s_0_1, -1, 2, 0},
37
+ /* 2 */ { 4, s_0_2, -1, 1, 0},
38
+ /* 3 */ { 3, s_0_3, -1, 1, 0},
39
+ /* 4 */ { 3, s_0_4, -1, 1, 0},
40
+ /* 5 */ { 3, s_0_5, -1, 1, 0},
41
+ /* 6 */ { 4, s_0_6, -1, 1, 0},
42
+ /* 7 */ { 2, s_0_7, -1, 1, 0},
43
+ /* 8 */ { 2, s_0_8, -1, 1, 0},
44
+ /* 9 */ { 2, s_0_9, -1, 1, 0}
45
+ };
46
+
47
+ static symbol s_1_0[3] = { 'l', 'l', 'a' };
48
+ static symbol s_1_1[2] = { 'n', 'a' };
49
+ static symbol s_1_2[3] = { 's', 's', 'a' };
50
+ static symbol s_1_3[2] = { 't', 'a' };
51
+ static symbol s_1_4[3] = { 'l', 't', 'a' };
52
+ static symbol s_1_5[3] = { 's', 't', 'a' };
53
+
54
+ static struct among a_1[6] =
55
+ {
56
+ /* 0 */ { 3, s_1_0, -1, -1, 0},
57
+ /* 1 */ { 2, s_1_1, -1, -1, 0},
58
+ /* 2 */ { 3, s_1_2, -1, -1, 0},
59
+ /* 3 */ { 2, s_1_3, -1, -1, 0},
60
+ /* 4 */ { 3, s_1_4, 3, -1, 0},
61
+ /* 5 */ { 3, s_1_5, 3, -1, 0}
62
+ };
63
+
64
+ static symbol s_2_0[3] = { 'l', 'l', 0xE4 };
65
+ static symbol s_2_1[2] = { 'n', 0xE4 };
66
+ static symbol s_2_2[3] = { 's', 's', 0xE4 };
67
+ static symbol s_2_3[2] = { 't', 0xE4 };
68
+ static symbol s_2_4[3] = { 'l', 't', 0xE4 };
69
+ static symbol s_2_5[3] = { 's', 't', 0xE4 };
70
+
71
+ static struct among a_2[6] =
72
+ {
73
+ /* 0 */ { 3, s_2_0, -1, -1, 0},
74
+ /* 1 */ { 2, s_2_1, -1, -1, 0},
75
+ /* 2 */ { 3, s_2_2, -1, -1, 0},
76
+ /* 3 */ { 2, s_2_3, -1, -1, 0},
77
+ /* 4 */ { 3, s_2_4, 3, -1, 0},
78
+ /* 5 */ { 3, s_2_5, 3, -1, 0}
79
+ };
80
+
81
+ static symbol s_3_0[3] = { 'l', 'l', 'e' };
82
+ static symbol s_3_1[3] = { 'i', 'n', 'e' };
83
+
84
+ static struct among a_3[2] =
85
+ {
86
+ /* 0 */ { 3, s_3_0, -1, -1, 0},
87
+ /* 1 */ { 3, s_3_1, -1, -1, 0}
88
+ };
89
+
90
+ static symbol s_4_0[3] = { 'n', 's', 'a' };
91
+ static symbol s_4_1[3] = { 'm', 'm', 'e' };
92
+ static symbol s_4_2[3] = { 'n', 'n', 'e' };
93
+ static symbol s_4_3[2] = { 'n', 'i' };
94
+ static symbol s_4_4[2] = { 's', 'i' };
95
+ static symbol s_4_5[2] = { 'a', 'n' };
96
+ static symbol s_4_6[2] = { 'e', 'n' };
97
+ static symbol s_4_7[2] = { 0xE4, 'n' };
98
+ static symbol s_4_8[3] = { 'n', 's', 0xE4 };
99
+
100
+ static struct among a_4[9] =
101
+ {
102
+ /* 0 */ { 3, s_4_0, -1, 3, 0},
103
+ /* 1 */ { 3, s_4_1, -1, 3, 0},
104
+ /* 2 */ { 3, s_4_2, -1, 3, 0},
105
+ /* 3 */ { 2, s_4_3, -1, 2, 0},
106
+ /* 4 */ { 2, s_4_4, -1, 1, 0},
107
+ /* 5 */ { 2, s_4_5, -1, 4, 0},
108
+ /* 6 */ { 2, s_4_6, -1, 6, 0},
109
+ /* 7 */ { 2, s_4_7, -1, 5, 0},
110
+ /* 8 */ { 3, s_4_8, -1, 3, 0}
111
+ };
112
+
113
+ static symbol s_5_0[2] = { 'a', 'a' };
114
+ static symbol s_5_1[2] = { 'e', 'e' };
115
+ static symbol s_5_2[2] = { 'i', 'i' };
116
+ static symbol s_5_3[2] = { 'o', 'o' };
117
+ static symbol s_5_4[2] = { 'u', 'u' };
118
+ static symbol s_5_5[2] = { 0xE4, 0xE4 };
119
+ static symbol s_5_6[2] = { 0xF6, 0xF6 };
120
+
121
+ static struct among a_5[7] =
122
+ {
123
+ /* 0 */ { 2, s_5_0, -1, -1, 0},
124
+ /* 1 */ { 2, s_5_1, -1, -1, 0},
125
+ /* 2 */ { 2, s_5_2, -1, -1, 0},
126
+ /* 3 */ { 2, s_5_3, -1, -1, 0},
127
+ /* 4 */ { 2, s_5_4, -1, -1, 0},
128
+ /* 5 */ { 2, s_5_5, -1, -1, 0},
129
+ /* 6 */ { 2, s_5_6, -1, -1, 0}
130
+ };
131
+
132
+ static symbol s_6_0[1] = { 'a' };
133
+ static symbol s_6_1[3] = { 'l', 'l', 'a' };
134
+ static symbol s_6_2[2] = { 'n', 'a' };
135
+ static symbol s_6_3[3] = { 's', 's', 'a' };
136
+ static symbol s_6_4[2] = { 't', 'a' };
137
+ static symbol s_6_5[3] = { 'l', 't', 'a' };
138
+ static symbol s_6_6[3] = { 's', 't', 'a' };
139
+ static symbol s_6_7[3] = { 't', 't', 'a' };
140
+ static symbol s_6_8[3] = { 'l', 'l', 'e' };
141
+ static symbol s_6_9[3] = { 'i', 'n', 'e' };
142
+ static symbol s_6_10[3] = { 'k', 's', 'i' };
143
+ static symbol s_6_11[1] = { 'n' };
144
+ static symbol s_6_12[3] = { 'h', 'a', 'n' };
145
+ static symbol s_6_13[3] = { 'd', 'e', 'n' };
146
+ static symbol s_6_14[4] = { 's', 'e', 'e', 'n' };
147
+ static symbol s_6_15[3] = { 'h', 'e', 'n' };
148
+ static symbol s_6_16[4] = { 't', 't', 'e', 'n' };
149
+ static symbol s_6_17[3] = { 'h', 'i', 'n' };
150
+ static symbol s_6_18[4] = { 's', 'i', 'i', 'n' };
151
+ static symbol s_6_19[3] = { 'h', 'o', 'n' };
152
+ static symbol s_6_20[3] = { 'h', 0xE4, 'n' };
153
+ static symbol s_6_21[3] = { 'h', 0xF6, 'n' };
154
+ static symbol s_6_22[1] = { 0xE4 };
155
+ static symbol s_6_23[3] = { 'l', 'l', 0xE4 };
156
+ static symbol s_6_24[2] = { 'n', 0xE4 };
157
+ static symbol s_6_25[3] = { 's', 's', 0xE4 };
158
+ static symbol s_6_26[2] = { 't', 0xE4 };
159
+ static symbol s_6_27[3] = { 'l', 't', 0xE4 };
160
+ static symbol s_6_28[3] = { 's', 't', 0xE4 };
161
+ static symbol s_6_29[3] = { 't', 't', 0xE4 };
162
+
163
+ static struct among a_6[30] =
164
+ {
165
+ /* 0 */ { 1, s_6_0, -1, 8, 0},
166
+ /* 1 */ { 3, s_6_1, 0, -1, 0},
167
+ /* 2 */ { 2, s_6_2, 0, -1, 0},
168
+ /* 3 */ { 3, s_6_3, 0, -1, 0},
169
+ /* 4 */ { 2, s_6_4, 0, -1, 0},
170
+ /* 5 */ { 3, s_6_5, 4, -1, 0},
171
+ /* 6 */ { 3, s_6_6, 4, -1, 0},
172
+ /* 7 */ { 3, s_6_7, 4, 9, 0},
173
+ /* 8 */ { 3, s_6_8, -1, -1, 0},
174
+ /* 9 */ { 3, s_6_9, -1, -1, 0},
175
+ /* 10 */ { 3, s_6_10, -1, -1, 0},
176
+ /* 11 */ { 1, s_6_11, -1, 7, 0},
177
+ /* 12 */ { 3, s_6_12, 11, 1, 0},
178
+ /* 13 */ { 3, s_6_13, 11, -1, r_VI},
179
+ /* 14 */ { 4, s_6_14, 11, -1, r_LONG},
180
+ /* 15 */ { 3, s_6_15, 11, 2, 0},
181
+ /* 16 */ { 4, s_6_16, 11, -1, r_VI},
182
+ /* 17 */ { 3, s_6_17, 11, 3, 0},
183
+ /* 18 */ { 4, s_6_18, 11, -1, r_VI},
184
+ /* 19 */ { 3, s_6_19, 11, 4, 0},
185
+ /* 20 */ { 3, s_6_20, 11, 5, 0},
186
+ /* 21 */ { 3, s_6_21, 11, 6, 0},
187
+ /* 22 */ { 1, s_6_22, -1, 8, 0},
188
+ /* 23 */ { 3, s_6_23, 22, -1, 0},
189
+ /* 24 */ { 2, s_6_24, 22, -1, 0},
190
+ /* 25 */ { 3, s_6_25, 22, -1, 0},
191
+ /* 26 */ { 2, s_6_26, 22, -1, 0},
192
+ /* 27 */ { 3, s_6_27, 26, -1, 0},
193
+ /* 28 */ { 3, s_6_28, 26, -1, 0},
194
+ /* 29 */ { 3, s_6_29, 26, 9, 0}
195
+ };
196
+
197
+ static symbol s_7_0[3] = { 'e', 'j', 'a' };
198
+ static symbol s_7_1[3] = { 'm', 'm', 'a' };
199
+ static symbol s_7_2[4] = { 'i', 'm', 'm', 'a' };
200
+ static symbol s_7_3[3] = { 'm', 'p', 'a' };
201
+ static symbol s_7_4[4] = { 'i', 'm', 'p', 'a' };
202
+ static symbol s_7_5[3] = { 'm', 'm', 'i' };
203
+ static symbol s_7_6[4] = { 'i', 'm', 'm', 'i' };
204
+ static symbol s_7_7[3] = { 'm', 'p', 'i' };
205
+ static symbol s_7_8[4] = { 'i', 'm', 'p', 'i' };
206
+ static symbol s_7_9[3] = { 'e', 'j', 0xE4 };
207
+ static symbol s_7_10[3] = { 'm', 'm', 0xE4 };
208
+ static symbol s_7_11[4] = { 'i', 'm', 'm', 0xE4 };
209
+ static symbol s_7_12[3] = { 'm', 'p', 0xE4 };
210
+ static symbol s_7_13[4] = { 'i', 'm', 'p', 0xE4 };
211
+
212
+ static struct among a_7[14] =
213
+ {
214
+ /* 0 */ { 3, s_7_0, -1, -1, 0},
215
+ /* 1 */ { 3, s_7_1, -1, 1, 0},
216
+ /* 2 */ { 4, s_7_2, 1, -1, 0},
217
+ /* 3 */ { 3, s_7_3, -1, 1, 0},
218
+ /* 4 */ { 4, s_7_4, 3, -1, 0},
219
+ /* 5 */ { 3, s_7_5, -1, 1, 0},
220
+ /* 6 */ { 4, s_7_6, 5, -1, 0},
221
+ /* 7 */ { 3, s_7_7, -1, 1, 0},
222
+ /* 8 */ { 4, s_7_8, 7, -1, 0},
223
+ /* 9 */ { 3, s_7_9, -1, -1, 0},
224
+ /* 10 */ { 3, s_7_10, -1, 1, 0},
225
+ /* 11 */ { 4, s_7_11, 10, -1, 0},
226
+ /* 12 */ { 3, s_7_12, -1, 1, 0},
227
+ /* 13 */ { 4, s_7_13, 12, -1, 0}
228
+ };
229
+
230
+ static symbol s_8_0[1] = { 'i' };
231
+ static symbol s_8_1[1] = { 'j' };
232
+
233
+ static struct among a_8[2] =
234
+ {
235
+ /* 0 */ { 1, s_8_0, -1, -1, 0},
236
+ /* 1 */ { 1, s_8_1, -1, -1, 0}
237
+ };
238
+
239
+ static symbol s_9_0[3] = { 'm', 'm', 'a' };
240
+ static symbol s_9_1[4] = { 'i', 'm', 'm', 'a' };
241
+
242
+ static struct among a_9[2] =
243
+ {
244
+ /* 0 */ { 3, s_9_0, -1, 1, 0},
245
+ /* 1 */ { 4, s_9_1, 0, -1, 0}
246
+ };
247
+
248
+ static unsigned char g_AEI[] = { 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8 };
249
+
250
+ static unsigned char g_V1[] = { 17, 65, 16, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 32 };
251
+
252
+ static unsigned char g_V2[] = { 17, 65, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 32 };
253
+
254
+ static unsigned char g_particle_end[] = { 17, 97, 24, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 32 };
255
+
256
+ static symbol s_0[] = { 'k' };
257
+ static symbol s_1[] = { 'k', 's', 'e' };
258
+ static symbol s_2[] = { 'k', 's', 'i' };
259
+ static symbol s_3[] = { 'i' };
260
+ static symbol s_4[] = { 'a' };
261
+ static symbol s_5[] = { 'e' };
262
+ static symbol s_6[] = { 'i' };
263
+ static symbol s_7[] = { 'o' };
264
+ static symbol s_8[] = { 0xE4 };
265
+ static symbol s_9[] = { 0xF6 };
266
+ static symbol s_10[] = { 'i', 'e' };
267
+ static symbol s_11[] = { 'e' };
268
+ static symbol s_12[] = { 'p', 'o' };
269
+ static symbol s_13[] = { 't' };
270
+ static symbol s_14[] = { 'p', 'o' };
271
+ static symbol s_15[] = { 'j' };
272
+ static symbol s_16[] = { 'o' };
273
+ static symbol s_17[] = { 'u' };
274
+ static symbol s_18[] = { 'o' };
275
+ static symbol s_19[] = { 'j' };
276
+
277
+ static int r_mark_regions(struct SN_env * z) {
278
+ z->I[0] = z->l;
279
+ z->I[1] = z->l;
280
+ while(1) { /* goto, line 46 */
281
+ int c = z->c;
282
+ if (!(in_grouping(z, g_V1, 97, 246))) goto lab0;
283
+ z->c = c;
284
+ break;
285
+ lab0:
286
+ z->c = c;
287
+ if (z->c >= z->l) return 0;
288
+ z->c++; /* goto, line 46 */
289
+ }
290
+ while(1) { /* gopast, line 46 */
291
+ if (!(out_grouping(z, g_V1, 97, 246))) goto lab1;
292
+ break;
293
+ lab1:
294
+ if (z->c >= z->l) return 0;
295
+ z->c++; /* gopast, line 46 */
296
+ }
297
+ z->I[0] = z->c; /* setmark p1, line 46 */
298
+ while(1) { /* goto, line 47 */
299
+ int c = z->c;
300
+ if (!(in_grouping(z, g_V1, 97, 246))) goto lab2;
301
+ z->c = c;
302
+ break;
303
+ lab2:
304
+ z->c = c;
305
+ if (z->c >= z->l) return 0;
306
+ z->c++; /* goto, line 47 */
307
+ }
308
+ while(1) { /* gopast, line 47 */
309
+ if (!(out_grouping(z, g_V1, 97, 246))) goto lab3;
310
+ break;
311
+ lab3:
312
+ if (z->c >= z->l) return 0;
313
+ z->c++; /* gopast, line 47 */
314
+ }
315
+ z->I[1] = z->c; /* setmark p2, line 47 */
316
+ return 1;
317
+ }
318
+
319
+ static int r_R2(struct SN_env * z) {
320
+ if (!(z->I[1] <= z->c)) return 0;
321
+ return 1;
322
+ }
323
+
324
+ static int r_particle_etc(struct SN_env * z) {
325
+ int among_var;
326
+ { int m3; /* setlimit, line 55 */
327
+ int m = z->l - z->c; (void) m;
328
+ if (z->c < z->I[0]) return 0;
329
+ z->c = z->I[0]; /* tomark, line 55 */
330
+ m3 = z->lb; z->lb = z->c;
331
+ z->c = z->l - m;
332
+ z->ket = z->c; /* [, line 55 */
333
+ among_var = find_among_b(z, a_0, 10); /* substring, line 55 */
334
+ if (!(among_var)) { z->lb = m3; return 0; }
335
+ z->bra = z->c; /* ], line 55 */
336
+ z->lb = m3;
337
+ }
338
+ switch(among_var) {
339
+ case 0: return 0;
340
+ case 1:
341
+ if (!(in_grouping_b(z, g_particle_end, 97, 246))) return 0;
342
+ break;
343
+ case 2:
344
+ { int ret = r_R2(z);
345
+ if (ret == 0) return 0; /* call R2, line 64 */
346
+ if (ret < 0) return ret;
347
+ }
348
+ break;
349
+ }
350
+ { int ret;
351
+ ret = slice_del(z); /* delete, line 66 */
352
+ if (ret < 0) return ret;
353
+ }
354
+ return 1;
355
+ }
356
+
357
+ static int r_possessive(struct SN_env * z) {
358
+ int among_var;
359
+ { int m3; /* setlimit, line 69 */
360
+ int m = z->l - z->c; (void) m;
361
+ if (z->c < z->I[0]) return 0;
362
+ z->c = z->I[0]; /* tomark, line 69 */
363
+ m3 = z->lb; z->lb = z->c;
364
+ z->c = z->l - m;
365
+ z->ket = z->c; /* [, line 69 */
366
+ among_var = find_among_b(z, a_4, 9); /* substring, line 69 */
367
+ if (!(among_var)) { z->lb = m3; return 0; }
368
+ z->bra = z->c; /* ], line 69 */
369
+ z->lb = m3;
370
+ }
371
+ switch(among_var) {
372
+ case 0: return 0;
373
+ case 1:
374
+ { int m = z->l - z->c; (void) m; /* not, line 72 */
375
+ if (!(eq_s_b(z, 1, s_0))) goto lab0;
376
+ return 0;
377
+ lab0:
378
+ z->c = z->l - m;
379
+ }
380
+ { int ret;
381
+ ret = slice_del(z); /* delete, line 72 */
382
+ if (ret < 0) return ret;
383
+ }
384
+ break;
385
+ case 2:
386
+ { int ret;
387
+ ret = slice_del(z); /* delete, line 74 */
388
+ if (ret < 0) return ret;
389
+ }
390
+ z->ket = z->c; /* [, line 74 */
391
+ if (!(eq_s_b(z, 3, s_1))) return 0;
392
+ z->bra = z->c; /* ], line 74 */
393
+ { int ret;
394
+ ret = slice_from_s(z, 3, s_2); /* <-, line 74 */
395
+ if (ret < 0) return ret;
396
+ }
397
+ break;
398
+ case 3:
399
+ { int ret;
400
+ ret = slice_del(z); /* delete, line 78 */
401
+ if (ret < 0) return ret;
402
+ }
403
+ break;
404
+ case 4:
405
+ if (!(find_among_b(z, a_1, 6))) return 0; /* among, line 81 */
406
+ { int ret;
407
+ ret = slice_del(z); /* delete, line 81 */
408
+ if (ret < 0) return ret;
409
+ }
410
+ break;
411
+ case 5:
412
+ if (!(find_among_b(z, a_2, 6))) return 0; /* among, line 83 */
413
+ { int ret;
414
+ ret = slice_del(z); /* delete, line 84 */
415
+ if (ret < 0) return ret;
416
+ }
417
+ break;
418
+ case 6:
419
+ if (!(find_among_b(z, a_3, 2))) return 0; /* among, line 86 */
420
+ { int ret;
421
+ ret = slice_del(z); /* delete, line 86 */
422
+ if (ret < 0) return ret;
423
+ }
424
+ break;
425
+ }
426
+ return 1;
427
+ }
428
+
429
+ static int r_LONG(struct SN_env * z) {
430
+ if (!(find_among_b(z, a_5, 7))) return 0; /* among, line 91 */
431
+ return 1;
432
+ }
433
+
434
+ static int r_VI(struct SN_env * z) {
435
+ if (!(eq_s_b(z, 1, s_3))) return 0;
436
+ if (!(in_grouping_b(z, g_V2, 97, 246))) return 0;
437
+ return 1;
438
+ }
439
+
440
+ static int r_case_ending(struct SN_env * z) {
441
+ int among_var;
442
+ { int m3; /* setlimit, line 96 */
443
+ int m = z->l - z->c; (void) m;
444
+ if (z->c < z->I[0]) return 0;
445
+ z->c = z->I[0]; /* tomark, line 96 */
446
+ m3 = z->lb; z->lb = z->c;
447
+ z->c = z->l - m;
448
+ z->ket = z->c; /* [, line 96 */
449
+ among_var = find_among_b(z, a_6, 30); /* substring, line 96 */
450
+ if (!(among_var)) { z->lb = m3; return 0; }
451
+ z->bra = z->c; /* ], line 96 */
452
+ z->lb = m3;
453
+ }
454
+ switch(among_var) {
455
+ case 0: return 0;
456
+ case 1:
457
+ if (!(eq_s_b(z, 1, s_4))) return 0;
458
+ break;
459
+ case 2:
460
+ if (!(eq_s_b(z, 1, s_5))) return 0;
461
+ break;
462
+ case 3:
463
+ if (!(eq_s_b(z, 1, s_6))) return 0;
464
+ break;
465
+ case 4:
466
+ if (!(eq_s_b(z, 1, s_7))) return 0;
467
+ break;
468
+ case 5:
469
+ if (!(eq_s_b(z, 1, s_8))) return 0;
470
+ break;
471
+ case 6:
472
+ if (!(eq_s_b(z, 1, s_9))) return 0;
473
+ break;
474
+ case 7:
475
+ { int m = z->l - z->c; (void) m; /* try, line 111 */
476
+ { int m = z->l - z->c; (void) m; /* and, line 113 */
477
+ { int m = z->l - z->c; (void) m; /* or, line 112 */
478
+ { int ret = r_LONG(z);
479
+ if (ret == 0) goto lab2; /* call LONG, line 111 */
480
+ if (ret < 0) return ret;
481
+ }
482
+ goto lab1;
483
+ lab2:
484
+ z->c = z->l - m;
485
+ if (!(eq_s_b(z, 2, s_10))) { z->c = z->l - m; goto lab0; }
486
+ }
487
+ lab1:
488
+ z->c = z->l - m;
489
+ if (z->c <= z->lb) { z->c = z->l - m; goto lab0; }
490
+ z->c--; /* next, line 113 */
491
+ }
492
+ z->bra = z->c; /* ], line 113 */
493
+ lab0:
494
+ ;
495
+ }
496
+ break;
497
+ case 8:
498
+ if (!(in_grouping_b(z, g_V1, 97, 246))) return 0;
499
+ if (!(out_grouping_b(z, g_V1, 97, 246))) return 0;
500
+ break;
501
+ case 9:
502
+ if (!(eq_s_b(z, 1, s_11))) return 0;
503
+ break;
504
+ }
505
+ { int ret;
506
+ ret = slice_del(z); /* delete, line 138 */
507
+ if (ret < 0) return ret;
508
+ }
509
+ z->B[0] = 1; /* set ending_removed, line 139 */
510
+ return 1;
511
+ }
512
+
513
+ static int r_other_endings(struct SN_env * z) {
514
+ int among_var;
515
+ { int m3; /* setlimit, line 142 */
516
+ int m = z->l - z->c; (void) m;
517
+ if (z->c < z->I[1]) return 0;
518
+ z->c = z->I[1]; /* tomark, line 142 */
519
+ m3 = z->lb; z->lb = z->c;
520
+ z->c = z->l - m;
521
+ z->ket = z->c; /* [, line 142 */
522
+ among_var = find_among_b(z, a_7, 14); /* substring, line 142 */
523
+ if (!(among_var)) { z->lb = m3; return 0; }
524
+ z->bra = z->c; /* ], line 142 */
525
+ z->lb = m3;
526
+ }
527
+ switch(among_var) {
528
+ case 0: return 0;
529
+ case 1:
530
+ { int m = z->l - z->c; (void) m; /* not, line 146 */
531
+ if (!(eq_s_b(z, 2, s_12))) goto lab0;
532
+ return 0;
533
+ lab0:
534
+ z->c = z->l - m;
535
+ }
536
+ break;
537
+ }
538
+ { int ret;
539
+ ret = slice_del(z); /* delete, line 151 */
540
+ if (ret < 0) return ret;
541
+ }
542
+ return 1;
543
+ }
544
+
545
+ static int r_i_plural(struct SN_env * z) {
546
+ { int m3; /* setlimit, line 154 */
547
+ int m = z->l - z->c; (void) m;
548
+ if (z->c < z->I[0]) return 0;
549
+ z->c = z->I[0]; /* tomark, line 154 */
550
+ m3 = z->lb; z->lb = z->c;
551
+ z->c = z->l - m;
552
+ z->ket = z->c; /* [, line 154 */
553
+ if (!(find_among_b(z, a_8, 2))) { z->lb = m3; return 0; } /* substring, line 154 */
554
+ z->bra = z->c; /* ], line 154 */
555
+ z->lb = m3;
556
+ }
557
+ { int ret;
558
+ ret = slice_del(z); /* delete, line 158 */
559
+ if (ret < 0) return ret;
560
+ }
561
+ return 1;
562
+ }
563
+
564
+ static int r_t_plural(struct SN_env * z) {
565
+ int among_var;
566
+ { int m3; /* setlimit, line 161 */
567
+ int m = z->l - z->c; (void) m;
568
+ if (z->c < z->I[0]) return 0;
569
+ z->c = z->I[0]; /* tomark, line 161 */
570
+ m3 = z->lb; z->lb = z->c;
571
+ z->c = z->l - m;
572
+ z->ket = z->c; /* [, line 162 */
573
+ if (!(eq_s_b(z, 1, s_13))) { z->lb = m3; return 0; }
574
+ z->bra = z->c; /* ], line 162 */
575
+ { int m_test = z->l - z->c; /* test, line 162 */
576
+ if (!(in_grouping_b(z, g_V1, 97, 246))) { z->lb = m3; return 0; }
577
+ z->c = z->l - m_test;
578
+ }
579
+ { int ret;
580
+ ret = slice_del(z); /* delete, line 163 */
581
+ if (ret < 0) return ret;
582
+ }
583
+ z->lb = m3;
584
+ }
585
+ { int m3; /* setlimit, line 165 */
586
+ int m = z->l - z->c; (void) m;
587
+ if (z->c < z->I[1]) return 0;
588
+ z->c = z->I[1]; /* tomark, line 165 */
589
+ m3 = z->lb; z->lb = z->c;
590
+ z->c = z->l - m;
591
+ z->ket = z->c; /* [, line 165 */
592
+ among_var = find_among_b(z, a_9, 2); /* substring, line 165 */
593
+ if (!(among_var)) { z->lb = m3; return 0; }
594
+ z->bra = z->c; /* ], line 165 */
595
+ z->lb = m3;
596
+ }
597
+ switch(among_var) {
598
+ case 0: return 0;
599
+ case 1:
600
+ { int m = z->l - z->c; (void) m; /* not, line 167 */
601
+ if (!(eq_s_b(z, 2, s_14))) goto lab0;
602
+ return 0;
603
+ lab0:
604
+ z->c = z->l - m;
605
+ }
606
+ break;
607
+ }
608
+ { int ret;
609
+ ret = slice_del(z); /* delete, line 170 */
610
+ if (ret < 0) return ret;
611
+ }
612
+ return 1;
613
+ }
614
+
615
+ static int r_tidy(struct SN_env * z) {
616
+ { int m3; /* setlimit, line 173 */
617
+ int m = z->l - z->c; (void) m;
618
+ if (z->c < z->I[0]) return 0;
619
+ z->c = z->I[0]; /* tomark, line 173 */
620
+ m3 = z->lb; z->lb = z->c;
621
+ z->c = z->l - m;
622
+ { int m = z->l - z->c; (void) m; /* do, line 174 */
623
+ { int m = z->l - z->c; (void) m; /* and, line 174 */
624
+ { int ret = r_LONG(z);
625
+ if (ret == 0) goto lab0; /* call LONG, line 174 */
626
+ if (ret < 0) return ret;
627
+ }
628
+ z->c = z->l - m;
629
+ z->ket = z->c; /* [, line 174 */
630
+ if (z->c <= z->lb) goto lab0;
631
+ z->c--; /* next, line 174 */
632
+ z->bra = z->c; /* ], line 174 */
633
+ { int ret;
634
+ ret = slice_del(z); /* delete, line 174 */
635
+ if (ret < 0) return ret;
636
+ }
637
+ }
638
+ lab0:
639
+ z->c = z->l - m;
640
+ }
641
+ { int m = z->l - z->c; (void) m; /* do, line 175 */
642
+ z->ket = z->c; /* [, line 175 */
643
+ if (!(in_grouping_b(z, g_AEI, 97, 228))) goto lab1;
644
+ z->bra = z->c; /* ], line 175 */
645
+ if (!(out_grouping_b(z, g_V1, 97, 246))) goto lab1;
646
+ { int ret;
647
+ ret = slice_del(z); /* delete, line 175 */
648
+ if (ret < 0) return ret;
649
+ }
650
+ lab1:
651
+ z->c = z->l - m;
652
+ }
653
+ { int m = z->l - z->c; (void) m; /* do, line 176 */
654
+ z->ket = z->c; /* [, line 176 */
655
+ if (!(eq_s_b(z, 1, s_15))) goto lab2;
656
+ z->bra = z->c; /* ], line 176 */
657
+ { int m = z->l - z->c; (void) m; /* or, line 176 */
658
+ if (!(eq_s_b(z, 1, s_16))) goto lab4;
659
+ goto lab3;
660
+ lab4:
661
+ z->c = z->l - m;
662
+ if (!(eq_s_b(z, 1, s_17))) goto lab2;
663
+ }
664
+ lab3:
665
+ { int ret;
666
+ ret = slice_del(z); /* delete, line 176 */
667
+ if (ret < 0) return ret;
668
+ }
669
+ lab2:
670
+ z->c = z->l - m;
671
+ }
672
+ { int m = z->l - z->c; (void) m; /* do, line 177 */
673
+ z->ket = z->c; /* [, line 177 */
674
+ if (!(eq_s_b(z, 1, s_18))) goto lab5;
675
+ z->bra = z->c; /* ], line 177 */
676
+ if (!(eq_s_b(z, 1, s_19))) goto lab5;
677
+ { int ret;
678
+ ret = slice_del(z); /* delete, line 177 */
679
+ if (ret < 0) return ret;
680
+ }
681
+ lab5:
682
+ z->c = z->l - m;
683
+ }
684
+ z->lb = m3;
685
+ }
686
+ while(1) { /* goto, line 179 */
687
+ int m = z->l - z->c; (void) m;
688
+ if (!(out_grouping_b(z, g_V1, 97, 246))) goto lab6;
689
+ z->c = z->l - m;
690
+ break;
691
+ lab6:
692
+ z->c = z->l - m;
693
+ if (z->c <= z->lb) return 0;
694
+ z->c--; /* goto, line 179 */
695
+ }
696
+ z->ket = z->c; /* [, line 179 */
697
+ if (z->c <= z->lb) return 0;
698
+ z->c--; /* next, line 179 */
699
+ z->bra = z->c; /* ], line 179 */
700
+ z->S[0] = slice_to(z, z->S[0]); /* -> x, line 179 */
701
+ if (z->S[0] == 0) return -1; /* -> x, line 179 */
702
+ if (!(eq_v_b(z, z->S[0]))) return 0; /* name x, line 179 */
703
+ { int ret;
704
+ ret = slice_del(z); /* delete, line 179 */
705
+ if (ret < 0) return ret;
706
+ }
707
+ return 1;
708
+ }
709
+
710
+ extern int finnish_ISO_8859_1_stem(struct SN_env * z) {
711
+ { int c = z->c; /* do, line 185 */
712
+ { int ret = r_mark_regions(z);
713
+ if (ret == 0) goto lab0; /* call mark_regions, line 185 */
714
+ if (ret < 0) return ret;
715
+ }
716
+ lab0:
717
+ z->c = c;
718
+ }
719
+ z->B[0] = 0; /* unset ending_removed, line 186 */
720
+ z->lb = z->c; z->c = z->l; /* backwards, line 187 */
721
+
722
+ { int m = z->l - z->c; (void) m; /* do, line 188 */
723
+ { int ret = r_particle_etc(z);
724
+ if (ret == 0) goto lab1; /* call particle_etc, line 188 */
725
+ if (ret < 0) return ret;
726
+ }
727
+ lab1:
728
+ z->c = z->l - m;
729
+ }
730
+ { int m = z->l - z->c; (void) m; /* do, line 189 */
731
+ { int ret = r_possessive(z);
732
+ if (ret == 0) goto lab2; /* call possessive, line 189 */
733
+ if (ret < 0) return ret;
734
+ }
735
+ lab2:
736
+ z->c = z->l - m;
737
+ }
738
+ { int m = z->l - z->c; (void) m; /* do, line 190 */
739
+ { int ret = r_case_ending(z);
740
+ if (ret == 0) goto lab3; /* call case_ending, line 190 */
741
+ if (ret < 0) return ret;
742
+ }
743
+ lab3:
744
+ z->c = z->l - m;
745
+ }
746
+ { int m = z->l - z->c; (void) m; /* do, line 191 */
747
+ { int ret = r_other_endings(z);
748
+ if (ret == 0) goto lab4; /* call other_endings, line 191 */
749
+ if (ret < 0) return ret;
750
+ }
751
+ lab4:
752
+ z->c = z->l - m;
753
+ }
754
+ { int m = z->l - z->c; (void) m; /* or, line 192 */
755
+ if (!(z->B[0])) goto lab6; /* Boolean test ending_removed, line 192 */
756
+ { int m = z->l - z->c; (void) m; /* do, line 192 */
757
+ { int ret = r_i_plural(z);
758
+ if (ret == 0) goto lab7; /* call i_plural, line 192 */
759
+ if (ret < 0) return ret;
760
+ }
761
+ lab7:
762
+ z->c = z->l - m;
763
+ }
764
+ goto lab5;
765
+ lab6:
766
+ z->c = z->l - m;
767
+ { int m = z->l - z->c; (void) m; /* do, line 192 */
768
+ { int ret = r_t_plural(z);
769
+ if (ret == 0) goto lab8; /* call t_plural, line 192 */
770
+ if (ret < 0) return ret;
771
+ }
772
+ lab8:
773
+ z->c = z->l - m;
774
+ }
775
+ }
776
+ lab5:
777
+ { int m = z->l - z->c; (void) m; /* do, line 193 */
778
+ { int ret = r_tidy(z);
779
+ if (ret == 0) goto lab9; /* call tidy, line 193 */
780
+ if (ret < 0) return ret;
781
+ }
782
+ lab9:
783
+ z->c = z->l - m;
784
+ }
785
+ z->c = z->lb;
786
+ return 1;
787
+ }
788
+
789
+ extern struct SN_env * finnish_ISO_8859_1_create_env(void) { return SN_create_env(1, 2, 1); }
790
+
791
+ extern void finnish_ISO_8859_1_close_env(struct SN_env * z) { SN_close_env(z); }
792
+