1 // This file was generated automatically by the Snowball to Java compiler
3 package org.tartarus.snowball.ext;
4 import org.tartarus.snowball.SnowballProgram;
5 import org.tartarus.snowball.Among;
8 * Generated class implementing code defined by a snowball script.
10 public class RomanianStemmer extends SnowballProgram {
12 private Among a_0[] = {
13 new Among ( "", -1, 3, "", this),
14 new Among ( "I", 0, 1, "", this),
15 new Among ( "U", 0, 2, "", this)
18 private Among a_1[] = {
19 new Among ( "ea", -1, 3, "", this),
20 new Among ( "a\u0163ia", -1, 7, "", this),
21 new Among ( "aua", -1, 2, "", this),
22 new Among ( "iua", -1, 4, "", this),
23 new Among ( "a\u0163ie", -1, 7, "", this),
24 new Among ( "ele", -1, 3, "", this),
25 new Among ( "ile", -1, 5, "", this),
26 new Among ( "iile", 6, 4, "", this),
27 new Among ( "iei", -1, 4, "", this),
28 new Among ( "atei", -1, 6, "", this),
29 new Among ( "ii", -1, 4, "", this),
30 new Among ( "ului", -1, 1, "", this),
31 new Among ( "ul", -1, 1, "", this),
32 new Among ( "elor", -1, 3, "", this),
33 new Among ( "ilor", -1, 4, "", this),
34 new Among ( "iilor", 14, 4, "", this)
37 private Among a_2[] = {
38 new Among ( "icala", -1, 4, "", this),
39 new Among ( "iciva", -1, 4, "", this),
40 new Among ( "ativa", -1, 5, "", this),
41 new Among ( "itiva", -1, 6, "", this),
42 new Among ( "icale", -1, 4, "", this),
43 new Among ( "a\u0163iune", -1, 5, "", this),
44 new Among ( "i\u0163iune", -1, 6, "", this),
45 new Among ( "atoare", -1, 5, "", this),
46 new Among ( "itoare", -1, 6, "", this),
47 new Among ( "\u0103toare", -1, 5, "", this),
48 new Among ( "icitate", -1, 4, "", this),
49 new Among ( "abilitate", -1, 1, "", this),
50 new Among ( "ibilitate", -1, 2, "", this),
51 new Among ( "ivitate", -1, 3, "", this),
52 new Among ( "icive", -1, 4, "", this),
53 new Among ( "ative", -1, 5, "", this),
54 new Among ( "itive", -1, 6, "", this),
55 new Among ( "icali", -1, 4, "", this),
56 new Among ( "atori", -1, 5, "", this),
57 new Among ( "icatori", 18, 4, "", this),
58 new Among ( "itori", -1, 6, "", this),
59 new Among ( "\u0103tori", -1, 5, "", this),
60 new Among ( "icitati", -1, 4, "", this),
61 new Among ( "abilitati", -1, 1, "", this),
62 new Among ( "ivitati", -1, 3, "", this),
63 new Among ( "icivi", -1, 4, "", this),
64 new Among ( "ativi", -1, 5, "", this),
65 new Among ( "itivi", -1, 6, "", this),
66 new Among ( "icit\u0103i", -1, 4, "", this),
67 new Among ( "abilit\u0103i", -1, 1, "", this),
68 new Among ( "ivit\u0103i", -1, 3, "", this),
69 new Among ( "icit\u0103\u0163i", -1, 4, "", this),
70 new Among ( "abilit\u0103\u0163i", -1, 1, "", this),
71 new Among ( "ivit\u0103\u0163i", -1, 3, "", this),
72 new Among ( "ical", -1, 4, "", this),
73 new Among ( "ator", -1, 5, "", this),
74 new Among ( "icator", 35, 4, "", this),
75 new Among ( "itor", -1, 6, "", this),
76 new Among ( "\u0103tor", -1, 5, "", this),
77 new Among ( "iciv", -1, 4, "", this),
78 new Among ( "ativ", -1, 5, "", this),
79 new Among ( "itiv", -1, 6, "", this),
80 new Among ( "ical\u0103", -1, 4, "", this),
81 new Among ( "iciv\u0103", -1, 4, "", this),
82 new Among ( "ativ\u0103", -1, 5, "", this),
83 new Among ( "itiv\u0103", -1, 6, "", this)
86 private Among a_3[] = {
87 new Among ( "ica", -1, 1, "", this),
88 new Among ( "abila", -1, 1, "", this),
89 new Among ( "ibila", -1, 1, "", this),
90 new Among ( "oasa", -1, 1, "", this),
91 new Among ( "ata", -1, 1, "", this),
92 new Among ( "ita", -1, 1, "", this),
93 new Among ( "anta", -1, 1, "", this),
94 new Among ( "ista", -1, 3, "", this),
95 new Among ( "uta", -1, 1, "", this),
96 new Among ( "iva", -1, 1, "", this),
97 new Among ( "ic", -1, 1, "", this),
98 new Among ( "ice", -1, 1, "", this),
99 new Among ( "abile", -1, 1, "", this),
100 new Among ( "ibile", -1, 1, "", this),
101 new Among ( "isme", -1, 3, "", this),
102 new Among ( "iune", -1, 2, "", this),
103 new Among ( "oase", -1, 1, "", this),
104 new Among ( "ate", -1, 1, "", this),
105 new Among ( "itate", 17, 1, "", this),
106 new Among ( "ite", -1, 1, "", this),
107 new Among ( "ante", -1, 1, "", this),
108 new Among ( "iste", -1, 3, "", this),
109 new Among ( "ute", -1, 1, "", this),
110 new Among ( "ive", -1, 1, "", this),
111 new Among ( "ici", -1, 1, "", this),
112 new Among ( "abili", -1, 1, "", this),
113 new Among ( "ibili", -1, 1, "", this),
114 new Among ( "iuni", -1, 2, "", this),
115 new Among ( "atori", -1, 1, "", this),
116 new Among ( "osi", -1, 1, "", this),
117 new Among ( "ati", -1, 1, "", this),
118 new Among ( "itati", 30, 1, "", this),
119 new Among ( "iti", -1, 1, "", this),
120 new Among ( "anti", -1, 1, "", this),
121 new Among ( "isti", -1, 3, "", this),
122 new Among ( "uti", -1, 1, "", this),
123 new Among ( "i\u015Fti", -1, 3, "", this),
124 new Among ( "ivi", -1, 1, "", this),
125 new Among ( "it\u0103i", -1, 1, "", this),
126 new Among ( "o\u015Fi", -1, 1, "", this),
127 new Among ( "it\u0103\u0163i", -1, 1, "", this),
128 new Among ( "abil", -1, 1, "", this),
129 new Among ( "ibil", -1, 1, "", this),
130 new Among ( "ism", -1, 3, "", this),
131 new Among ( "ator", -1, 1, "", this),
132 new Among ( "os", -1, 1, "", this),
133 new Among ( "at", -1, 1, "", this),
134 new Among ( "it", -1, 1, "", this),
135 new Among ( "ant", -1, 1, "", this),
136 new Among ( "ist", -1, 3, "", this),
137 new Among ( "ut", -1, 1, "", this),
138 new Among ( "iv", -1, 1, "", this),
139 new Among ( "ic\u0103", -1, 1, "", this),
140 new Among ( "abil\u0103", -1, 1, "", this),
141 new Among ( "ibil\u0103", -1, 1, "", this),
142 new Among ( "oas\u0103", -1, 1, "", this),
143 new Among ( "at\u0103", -1, 1, "", this),
144 new Among ( "it\u0103", -1, 1, "", this),
145 new Among ( "ant\u0103", -1, 1, "", this),
146 new Among ( "ist\u0103", -1, 3, "", this),
147 new Among ( "ut\u0103", -1, 1, "", this),
148 new Among ( "iv\u0103", -1, 1, "", this)
151 private Among a_4[] = {
152 new Among ( "ea", -1, 1, "", this),
153 new Among ( "ia", -1, 1, "", this),
154 new Among ( "esc", -1, 1, "", this),
155 new Among ( "\u0103sc", -1, 1, "", this),
156 new Among ( "ind", -1, 1, "", this),
157 new Among ( "\u00E2nd", -1, 1, "", this),
158 new Among ( "are", -1, 1, "", this),
159 new Among ( "ere", -1, 1, "", this),
160 new Among ( "ire", -1, 1, "", this),
161 new Among ( "\u00E2re", -1, 1, "", this),
162 new Among ( "se", -1, 2, "", this),
163 new Among ( "ase", 10, 1, "", this),
164 new Among ( "sese", 10, 2, "", this),
165 new Among ( "ise", 10, 1, "", this),
166 new Among ( "use", 10, 1, "", this),
167 new Among ( "\u00E2se", 10, 1, "", this),
168 new Among ( "e\u015Fte", -1, 1, "", this),
169 new Among ( "\u0103\u015Fte", -1, 1, "", this),
170 new Among ( "eze", -1, 1, "", this),
171 new Among ( "ai", -1, 1, "", this),
172 new Among ( "eai", 19, 1, "", this),
173 new Among ( "iai", 19, 1, "", this),
174 new Among ( "sei", -1, 2, "", this),
175 new Among ( "e\u015Fti", -1, 1, "", this),
176 new Among ( "\u0103\u015Fti", -1, 1, "", this),
177 new Among ( "ui", -1, 1, "", this),
178 new Among ( "ezi", -1, 1, "", this),
179 new Among ( "\u00E2i", -1, 1, "", this),
180 new Among ( "a\u015Fi", -1, 1, "", this),
181 new Among ( "se\u015Fi", -1, 2, "", this),
182 new Among ( "ase\u015Fi", 29, 1, "", this),
183 new Among ( "sese\u015Fi", 29, 2, "", this),
184 new Among ( "ise\u015Fi", 29, 1, "", this),
185 new Among ( "use\u015Fi", 29, 1, "", this),
186 new Among ( "\u00E2se\u015Fi", 29, 1, "", this),
187 new Among ( "i\u015Fi", -1, 1, "", this),
188 new Among ( "u\u015Fi", -1, 1, "", this),
189 new Among ( "\u00E2\u015Fi", -1, 1, "", this),
190 new Among ( "a\u0163i", -1, 2, "", this),
191 new Among ( "ea\u0163i", 38, 1, "", this),
192 new Among ( "ia\u0163i", 38, 1, "", this),
193 new Among ( "e\u0163i", -1, 2, "", this),
194 new Among ( "i\u0163i", -1, 2, "", this),
195 new Among ( "\u00E2\u0163i", -1, 2, "", this),
196 new Among ( "ar\u0103\u0163i", -1, 1, "", this),
197 new Among ( "ser\u0103\u0163i", -1, 2, "", this),
198 new Among ( "aser\u0103\u0163i", 45, 1, "", this),
199 new Among ( "seser\u0103\u0163i", 45, 2, "", this),
200 new Among ( "iser\u0103\u0163i", 45, 1, "", this),
201 new Among ( "user\u0103\u0163i", 45, 1, "", this),
202 new Among ( "\u00E2ser\u0103\u0163i", 45, 1, "", this),
203 new Among ( "ir\u0103\u0163i", -1, 1, "", this),
204 new Among ( "ur\u0103\u0163i", -1, 1, "", this),
205 new Among ( "\u00E2r\u0103\u0163i", -1, 1, "", this),
206 new Among ( "am", -1, 1, "", this),
207 new Among ( "eam", 54, 1, "", this),
208 new Among ( "iam", 54, 1, "", this),
209 new Among ( "em", -1, 2, "", this),
210 new Among ( "asem", 57, 1, "", this),
211 new Among ( "sesem", 57, 2, "", this),
212 new Among ( "isem", 57, 1, "", this),
213 new Among ( "usem", 57, 1, "", this),
214 new Among ( "\u00E2sem", 57, 1, "", this),
215 new Among ( "im", -1, 2, "", this),
216 new Among ( "\u00E2m", -1, 2, "", this),
217 new Among ( "\u0103m", -1, 2, "", this),
218 new Among ( "ar\u0103m", 65, 1, "", this),
219 new Among ( "ser\u0103m", 65, 2, "", this),
220 new Among ( "aser\u0103m", 67, 1, "", this),
221 new Among ( "seser\u0103m", 67, 2, "", this),
222 new Among ( "iser\u0103m", 67, 1, "", this),
223 new Among ( "user\u0103m", 67, 1, "", this),
224 new Among ( "\u00E2ser\u0103m", 67, 1, "", this),
225 new Among ( "ir\u0103m", 65, 1, "", this),
226 new Among ( "ur\u0103m", 65, 1, "", this),
227 new Among ( "\u00E2r\u0103m", 65, 1, "", this),
228 new Among ( "au", -1, 1, "", this),
229 new Among ( "eau", 76, 1, "", this),
230 new Among ( "iau", 76, 1, "", this),
231 new Among ( "indu", -1, 1, "", this),
232 new Among ( "\u00E2ndu", -1, 1, "", this),
233 new Among ( "ez", -1, 1, "", this),
234 new Among ( "easc\u0103", -1, 1, "", this),
235 new Among ( "ar\u0103", -1, 1, "", this),
236 new Among ( "ser\u0103", -1, 2, "", this),
237 new Among ( "aser\u0103", 84, 1, "", this),
238 new Among ( "seser\u0103", 84, 2, "", this),
239 new Among ( "iser\u0103", 84, 1, "", this),
240 new Among ( "user\u0103", 84, 1, "", this),
241 new Among ( "\u00E2ser\u0103", 84, 1, "", this),
242 new Among ( "ir\u0103", -1, 1, "", this),
243 new Among ( "ur\u0103", -1, 1, "", this),
244 new Among ( "\u00E2r\u0103", -1, 1, "", this),
245 new Among ( "eaz\u0103", -1, 1, "", this)
248 private Among a_5[] = {
249 new Among ( "a", -1, 1, "", this),
250 new Among ( "e", -1, 1, "", this),
251 new Among ( "ie", 1, 1, "", this),
252 new Among ( "i", -1, 1, "", this),
253 new Among ( "\u0103", -1, 1, "", this)
256 private static final char g_v[] = {17, 65, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 32, 0, 0, 4 };
258 private boolean B_standard_suffix_removed;
263 private void copy_from(RomanianStemmer other) {
264 B_standard_suffix_removed = other.B_standard_suffix_removed;
268 super.copy_from(other);
271 private boolean r_prelude() {
287 if (!(in_grouping(g_v, 97, 259)))
305 if (!(in_grouping(g_v, 97, 259)))
322 if (!(in_grouping(g_v, 97, 259)))
347 private boolean r_mark_regions() {
366 if (!(in_grouping(g_v, 97, 259)))
375 if (!(out_grouping(g_v, 97, 259)))
383 if (!(in_grouping(g_v, 97, 259)))
399 if (!(in_grouping(g_v, 97, 259)))
407 if (!(out_grouping(g_v, 97, 259)))
424 if (!(out_grouping(g_v, 97, 259)))
433 if (!(out_grouping(g_v, 97, 259)))
441 if (!(in_grouping(g_v, 97, 259)))
457 if (!(in_grouping(g_v, 97, 259)))
469 // setmark pV, line 48
481 if (!(in_grouping(g_v, 97, 259)))
497 if (!(out_grouping(g_v, 97, 259)))
509 // setmark p1, line 51
515 if (!(in_grouping(g_v, 97, 259)))
531 if (!(out_grouping(g_v, 97, 259)))
543 // setmark p2, line 52
550 private boolean r_postlude() {
561 // substring, line 58
562 among_var = find_among(a_0, 3);
600 private boolean r_RV() {
601 if (!(I_pV <= cursor))
608 private boolean r_R1() {
609 if (!(I_p1 <= cursor))
616 private boolean r_R2() {
617 if (!(I_p2 <= cursor))
624 private boolean r_step_0() {
630 // substring, line 73
631 among_var = find_among_b(a_1, 16);
670 v_1 = limit - cursor;
673 if (!(eq_s_b(2, "ab")))
679 cursor = limit - v_1;
692 slice_from("a\u0163i");
698 private boolean r_combo_suffix() {
702 v_1 = limit - cursor;
706 // substring, line 92
707 among_var = find_among_b(a_2, 46);
754 // set standard_suffix_removed, line 125
755 B_standard_suffix_removed = true;
756 cursor = limit - v_1;
760 private boolean r_standard_suffix() {
764 // unset standard_suffix_removed, line 130
765 B_standard_suffix_removed = false;
769 v_1 = limit - cursor;
771 // call combo_suffix, line 131
772 if (!r_combo_suffix())
778 cursor = limit - v_1;
783 // substring, line 132
784 among_var = find_among_b(a_3, 62);
808 if (!(eq_s_b(1, "\u0163")))
823 // set standard_suffix_removed, line 160
824 B_standard_suffix_removed = true;
828 private boolean r_verb_suffix() {
833 // setlimit, line 164
834 v_1 = limit - cursor;
841 v_2 = limit_backward;
842 limit_backward = cursor;
843 cursor = limit - v_1;
847 // substring, line 165
848 among_var = find_among_b(a_4, 94);
851 limit_backward = v_2;
858 limit_backward = v_2;
864 v_3 = limit - cursor;
866 if (!(out_grouping_b(g_v, 97, 259)))
872 cursor = limit - v_3;
874 if (!(eq_s_b(1, "u")))
876 limit_backward = v_2;
889 limit_backward = v_2;
893 private boolean r_vowel_suffix() {
898 // substring, line 219
899 among_var = find_among_b(a_5, 5);
923 public boolean stem() {
936 // call prelude, line 226
946 // call mark_regions, line 227
947 if (!r_mark_regions())
953 // backwards, line 228
954 limit_backward = cursor; cursor = limit;
957 v_3 = limit - cursor;
959 // call step_0, line 229
965 cursor = limit - v_3;
967 v_4 = limit - cursor;
969 // call standard_suffix, line 230
970 if (!r_standard_suffix())
975 cursor = limit - v_4;
977 v_5 = limit - cursor;
982 v_6 = limit - cursor;
984 // Boolean test standard_suffix_removed, line 231
985 if (!(B_standard_suffix_removed))
991 cursor = limit - v_6;
992 // call verb_suffix, line 231
993 if (!r_verb_suffix())
999 cursor = limit - v_5;
1001 v_7 = limit - cursor;
1003 // call vowel_suffix, line 232
1004 if (!r_vowel_suffix())
1009 cursor = limit - v_7;
1010 cursor = limit_backward; // do, line 234
1013 // call postlude, line 234