| 1 | |
|
| 2 | |
|
| 3 | |
package org.tartarus.snowball.ext; |
| 4 | |
|
| 5 | |
import org.tartarus.snowball.Among; |
| 6 | |
|
| 7 | |
|
| 8 | |
|
| 9 | |
|
| 10 | |
|
| 11 | |
|
| 12 | 0 | public class romanianStemmer extends org.tartarus.snowball.SnowballStemmer { |
| 13 | |
|
| 14 | |
private static final long serialVersionUID = 1L; |
| 15 | |
|
| 16 | 0 | private final static romanianStemmer methodObject = new romanianStemmer (); |
| 17 | |
|
| 18 | 0 | private final static Among a_0[] = { |
| 19 | |
new Among ( "", -1, 3, "", methodObject ), |
| 20 | |
new Among ( "I", 0, 1, "", methodObject ), |
| 21 | |
new Among ( "U", 0, 2, "", methodObject ) |
| 22 | |
}; |
| 23 | |
|
| 24 | 0 | private final static Among a_1[] = { |
| 25 | |
new Among ( "ea", -1, 3, "", methodObject ), |
| 26 | |
new Among ( "a\u0163ia", -1, 7, "", methodObject ), |
| 27 | |
new Among ( "aua", -1, 2, "", methodObject ), |
| 28 | |
new Among ( "iua", -1, 4, "", methodObject ), |
| 29 | |
new Among ( "a\u0163ie", -1, 7, "", methodObject ), |
| 30 | |
new Among ( "ele", -1, 3, "", methodObject ), |
| 31 | |
new Among ( "ile", -1, 5, "", methodObject ), |
| 32 | |
new Among ( "iile", 6, 4, "", methodObject ), |
| 33 | |
new Among ( "iei", -1, 4, "", methodObject ), |
| 34 | |
new Among ( "atei", -1, 6, "", methodObject ), |
| 35 | |
new Among ( "ii", -1, 4, "", methodObject ), |
| 36 | |
new Among ( "ului", -1, 1, "", methodObject ), |
| 37 | |
new Among ( "ul", -1, 1, "", methodObject ), |
| 38 | |
new Among ( "elor", -1, 3, "", methodObject ), |
| 39 | |
new Among ( "ilor", -1, 4, "", methodObject ), |
| 40 | |
new Among ( "iilor", 14, 4, "", methodObject ) |
| 41 | |
}; |
| 42 | |
|
| 43 | 0 | private final static Among a_2[] = { |
| 44 | |
new Among ( "icala", -1, 4, "", methodObject ), |
| 45 | |
new Among ( "iciva", -1, 4, "", methodObject ), |
| 46 | |
new Among ( "ativa", -1, 5, "", methodObject ), |
| 47 | |
new Among ( "itiva", -1, 6, "", methodObject ), |
| 48 | |
new Among ( "icale", -1, 4, "", methodObject ), |
| 49 | |
new Among ( "a\u0163iune", -1, 5, "", methodObject ), |
| 50 | |
new Among ( "i\u0163iune", -1, 6, "", methodObject ), |
| 51 | |
new Among ( "atoare", -1, 5, "", methodObject ), |
| 52 | |
new Among ( "itoare", -1, 6, "", methodObject ), |
| 53 | |
new Among ( "\u0103toare", -1, 5, "", methodObject ), |
| 54 | |
new Among ( "icitate", -1, 4, "", methodObject ), |
| 55 | |
new Among ( "abilitate", -1, 1, "", methodObject ), |
| 56 | |
new Among ( "ibilitate", -1, 2, "", methodObject ), |
| 57 | |
new Among ( "ivitate", -1, 3, "", methodObject ), |
| 58 | |
new Among ( "icive", -1, 4, "", methodObject ), |
| 59 | |
new Among ( "ative", -1, 5, "", methodObject ), |
| 60 | |
new Among ( "itive", -1, 6, "", methodObject ), |
| 61 | |
new Among ( "icali", -1, 4, "", methodObject ), |
| 62 | |
new Among ( "atori", -1, 5, "", methodObject ), |
| 63 | |
new Among ( "icatori", 18, 4, "", methodObject ), |
| 64 | |
new Among ( "itori", -1, 6, "", methodObject ), |
| 65 | |
new Among ( "\u0103tori", -1, 5, "", methodObject ), |
| 66 | |
new Among ( "icitati", -1, 4, "", methodObject ), |
| 67 | |
new Among ( "abilitati", -1, 1, "", methodObject ), |
| 68 | |
new Among ( "ivitati", -1, 3, "", methodObject ), |
| 69 | |
new Among ( "icivi", -1, 4, "", methodObject ), |
| 70 | |
new Among ( "ativi", -1, 5, "", methodObject ), |
| 71 | |
new Among ( "itivi", -1, 6, "", methodObject ), |
| 72 | |
new Among ( "icit\u0103i", -1, 4, "", methodObject ), |
| 73 | |
new Among ( "abilit\u0103i", -1, 1, "", methodObject ), |
| 74 | |
new Among ( "ivit\u0103i", -1, 3, "", methodObject ), |
| 75 | |
new Among ( "icit\u0103\u0163i", -1, 4, "", methodObject ), |
| 76 | |
new Among ( "abilit\u0103\u0163i", -1, 1, "", methodObject ), |
| 77 | |
new Among ( "ivit\u0103\u0163i", -1, 3, "", methodObject ), |
| 78 | |
new Among ( "ical", -1, 4, "", methodObject ), |
| 79 | |
new Among ( "ator", -1, 5, "", methodObject ), |
| 80 | |
new Among ( "icator", 35, 4, "", methodObject ), |
| 81 | |
new Among ( "itor", -1, 6, "", methodObject ), |
| 82 | |
new Among ( "\u0103tor", -1, 5, "", methodObject ), |
| 83 | |
new Among ( "iciv", -1, 4, "", methodObject ), |
| 84 | |
new Among ( "ativ", -1, 5, "", methodObject ), |
| 85 | |
new Among ( "itiv", -1, 6, "", methodObject ), |
| 86 | |
new Among ( "ical\u0103", -1, 4, "", methodObject ), |
| 87 | |
new Among ( "iciv\u0103", -1, 4, "", methodObject ), |
| 88 | |
new Among ( "ativ\u0103", -1, 5, "", methodObject ), |
| 89 | |
new Among ( "itiv\u0103", -1, 6, "", methodObject ) |
| 90 | |
}; |
| 91 | |
|
| 92 | 0 | private final static Among a_3[] = { |
| 93 | |
new Among ( "ica", -1, 1, "", methodObject ), |
| 94 | |
new Among ( "abila", -1, 1, "", methodObject ), |
| 95 | |
new Among ( "ibila", -1, 1, "", methodObject ), |
| 96 | |
new Among ( "oasa", -1, 1, "", methodObject ), |
| 97 | |
new Among ( "ata", -1, 1, "", methodObject ), |
| 98 | |
new Among ( "ita", -1, 1, "", methodObject ), |
| 99 | |
new Among ( "anta", -1, 1, "", methodObject ), |
| 100 | |
new Among ( "ista", -1, 3, "", methodObject ), |
| 101 | |
new Among ( "uta", -1, 1, "", methodObject ), |
| 102 | |
new Among ( "iva", -1, 1, "", methodObject ), |
| 103 | |
new Among ( "ic", -1, 1, "", methodObject ), |
| 104 | |
new Among ( "ice", -1, 1, "", methodObject ), |
| 105 | |
new Among ( "abile", -1, 1, "", methodObject ), |
| 106 | |
new Among ( "ibile", -1, 1, "", methodObject ), |
| 107 | |
new Among ( "isme", -1, 3, "", methodObject ), |
| 108 | |
new Among ( "iune", -1, 2, "", methodObject ), |
| 109 | |
new Among ( "oase", -1, 1, "", methodObject ), |
| 110 | |
new Among ( "ate", -1, 1, "", methodObject ), |
| 111 | |
new Among ( "itate", 17, 1, "", methodObject ), |
| 112 | |
new Among ( "ite", -1, 1, "", methodObject ), |
| 113 | |
new Among ( "ante", -1, 1, "", methodObject ), |
| 114 | |
new Among ( "iste", -1, 3, "", methodObject ), |
| 115 | |
new Among ( "ute", -1, 1, "", methodObject ), |
| 116 | |
new Among ( "ive", -1, 1, "", methodObject ), |
| 117 | |
new Among ( "ici", -1, 1, "", methodObject ), |
| 118 | |
new Among ( "abili", -1, 1, "", methodObject ), |
| 119 | |
new Among ( "ibili", -1, 1, "", methodObject ), |
| 120 | |
new Among ( "iuni", -1, 2, "", methodObject ), |
| 121 | |
new Among ( "atori", -1, 1, "", methodObject ), |
| 122 | |
new Among ( "osi", -1, 1, "", methodObject ), |
| 123 | |
new Among ( "ati", -1, 1, "", methodObject ), |
| 124 | |
new Among ( "itati", 30, 1, "", methodObject ), |
| 125 | |
new Among ( "iti", -1, 1, "", methodObject ), |
| 126 | |
new Among ( "anti", -1, 1, "", methodObject ), |
| 127 | |
new Among ( "isti", -1, 3, "", methodObject ), |
| 128 | |
new Among ( "uti", -1, 1, "", methodObject ), |
| 129 | |
new Among ( "i\u015Fti", -1, 3, "", methodObject ), |
| 130 | |
new Among ( "ivi", -1, 1, "", methodObject ), |
| 131 | |
new Among ( "it\u0103i", -1, 1, "", methodObject ), |
| 132 | |
new Among ( "o\u015Fi", -1, 1, "", methodObject ), |
| 133 | |
new Among ( "it\u0103\u0163i", -1, 1, "", methodObject ), |
| 134 | |
new Among ( "abil", -1, 1, "", methodObject ), |
| 135 | |
new Among ( "ibil", -1, 1, "", methodObject ), |
| 136 | |
new Among ( "ism", -1, 3, "", methodObject ), |
| 137 | |
new Among ( "ator", -1, 1, "", methodObject ), |
| 138 | |
new Among ( "os", -1, 1, "", methodObject ), |
| 139 | |
new Among ( "at", -1, 1, "", methodObject ), |
| 140 | |
new Among ( "it", -1, 1, "", methodObject ), |
| 141 | |
new Among ( "ant", -1, 1, "", methodObject ), |
| 142 | |
new Among ( "ist", -1, 3, "", methodObject ), |
| 143 | |
new Among ( "ut", -1, 1, "", methodObject ), |
| 144 | |
new Among ( "iv", -1, 1, "", methodObject ), |
| 145 | |
new Among ( "ic\u0103", -1, 1, "", methodObject ), |
| 146 | |
new Among ( "abil\u0103", -1, 1, "", methodObject ), |
| 147 | |
new Among ( "ibil\u0103", -1, 1, "", methodObject ), |
| 148 | |
new Among ( "oas\u0103", -1, 1, "", methodObject ), |
| 149 | |
new Among ( "at\u0103", -1, 1, "", methodObject ), |
| 150 | |
new Among ( "it\u0103", -1, 1, "", methodObject ), |
| 151 | |
new Among ( "ant\u0103", -1, 1, "", methodObject ), |
| 152 | |
new Among ( "ist\u0103", -1, 3, "", methodObject ), |
| 153 | |
new Among ( "ut\u0103", -1, 1, "", methodObject ), |
| 154 | |
new Among ( "iv\u0103", -1, 1, "", methodObject ) |
| 155 | |
}; |
| 156 | |
|
| 157 | 0 | private final static Among a_4[] = { |
| 158 | |
new Among ( "ea", -1, 1, "", methodObject ), |
| 159 | |
new Among ( "ia", -1, 1, "", methodObject ), |
| 160 | |
new Among ( "esc", -1, 1, "", methodObject ), |
| 161 | |
new Among ( "\u0103sc", -1, 1, "", methodObject ), |
| 162 | |
new Among ( "ind", -1, 1, "", methodObject ), |
| 163 | |
new Among ( "\u00E2nd", -1, 1, "", methodObject ), |
| 164 | |
new Among ( "are", -1, 1, "", methodObject ), |
| 165 | |
new Among ( "ere", -1, 1, "", methodObject ), |
| 166 | |
new Among ( "ire", -1, 1, "", methodObject ), |
| 167 | |
new Among ( "\u00E2re", -1, 1, "", methodObject ), |
| 168 | |
new Among ( "se", -1, 2, "", methodObject ), |
| 169 | |
new Among ( "ase", 10, 1, "", methodObject ), |
| 170 | |
new Among ( "sese", 10, 2, "", methodObject ), |
| 171 | |
new Among ( "ise", 10, 1, "", methodObject ), |
| 172 | |
new Among ( "use", 10, 1, "", methodObject ), |
| 173 | |
new Among ( "\u00E2se", 10, 1, "", methodObject ), |
| 174 | |
new Among ( "e\u015Fte", -1, 1, "", methodObject ), |
| 175 | |
new Among ( "\u0103\u015Fte", -1, 1, "", methodObject ), |
| 176 | |
new Among ( "eze", -1, 1, "", methodObject ), |
| 177 | |
new Among ( "ai", -1, 1, "", methodObject ), |
| 178 | |
new Among ( "eai", 19, 1, "", methodObject ), |
| 179 | |
new Among ( "iai", 19, 1, "", methodObject ), |
| 180 | |
new Among ( "sei", -1, 2, "", methodObject ), |
| 181 | |
new Among ( "e\u015Fti", -1, 1, "", methodObject ), |
| 182 | |
new Among ( "\u0103\u015Fti", -1, 1, "", methodObject ), |
| 183 | |
new Among ( "ui", -1, 1, "", methodObject ), |
| 184 | |
new Among ( "ezi", -1, 1, "", methodObject ), |
| 185 | |
new Among ( "\u00E2i", -1, 1, "", methodObject ), |
| 186 | |
new Among ( "a\u015Fi", -1, 1, "", methodObject ), |
| 187 | |
new Among ( "se\u015Fi", -1, 2, "", methodObject ), |
| 188 | |
new Among ( "ase\u015Fi", 29, 1, "", methodObject ), |
| 189 | |
new Among ( "sese\u015Fi", 29, 2, "", methodObject ), |
| 190 | |
new Among ( "ise\u015Fi", 29, 1, "", methodObject ), |
| 191 | |
new Among ( "use\u015Fi", 29, 1, "", methodObject ), |
| 192 | |
new Among ( "\u00E2se\u015Fi", 29, 1, "", methodObject ), |
| 193 | |
new Among ( "i\u015Fi", -1, 1, "", methodObject ), |
| 194 | |
new Among ( "u\u015Fi", -1, 1, "", methodObject ), |
| 195 | |
new Among ( "\u00E2\u015Fi", -1, 1, "", methodObject ), |
| 196 | |
new Among ( "a\u0163i", -1, 2, "", methodObject ), |
| 197 | |
new Among ( "ea\u0163i", 38, 1, "", methodObject ), |
| 198 | |
new Among ( "ia\u0163i", 38, 1, "", methodObject ), |
| 199 | |
new Among ( "e\u0163i", -1, 2, "", methodObject ), |
| 200 | |
new Among ( "i\u0163i", -1, 2, "", methodObject ), |
| 201 | |
new Among ( "\u00E2\u0163i", -1, 2, "", methodObject ), |
| 202 | |
new Among ( "ar\u0103\u0163i", -1, 1, "", methodObject ), |
| 203 | |
new Among ( "ser\u0103\u0163i", -1, 2, "", methodObject ), |
| 204 | |
new Among ( "aser\u0103\u0163i", 45, 1, "", methodObject ), |
| 205 | |
new Among ( "seser\u0103\u0163i", 45, 2, "", methodObject ), |
| 206 | |
new Among ( "iser\u0103\u0163i", 45, 1, "", methodObject ), |
| 207 | |
new Among ( "user\u0103\u0163i", 45, 1, "", methodObject ), |
| 208 | |
new Among ( "\u00E2ser\u0103\u0163i", 45, 1, "", methodObject ), |
| 209 | |
new Among ( "ir\u0103\u0163i", -1, 1, "", methodObject ), |
| 210 | |
new Among ( "ur\u0103\u0163i", -1, 1, "", methodObject ), |
| 211 | |
new Among ( "\u00E2r\u0103\u0163i", -1, 1, "", methodObject ), |
| 212 | |
new Among ( "am", -1, 1, "", methodObject ), |
| 213 | |
new Among ( "eam", 54, 1, "", methodObject ), |
| 214 | |
new Among ( "iam", 54, 1, "", methodObject ), |
| 215 | |
new Among ( "em", -1, 2, "", methodObject ), |
| 216 | |
new Among ( "asem", 57, 1, "", methodObject ), |
| 217 | |
new Among ( "sesem", 57, 2, "", methodObject ), |
| 218 | |
new Among ( "isem", 57, 1, "", methodObject ), |
| 219 | |
new Among ( "usem", 57, 1, "", methodObject ), |
| 220 | |
new Among ( "\u00E2sem", 57, 1, "", methodObject ), |
| 221 | |
new Among ( "im", -1, 2, "", methodObject ), |
| 222 | |
new Among ( "\u00E2m", -1, 2, "", methodObject ), |
| 223 | |
new Among ( "\u0103m", -1, 2, "", methodObject ), |
| 224 | |
new Among ( "ar\u0103m", 65, 1, "", methodObject ), |
| 225 | |
new Among ( "ser\u0103m", 65, 2, "", methodObject ), |
| 226 | |
new Among ( "aser\u0103m", 67, 1, "", methodObject ), |
| 227 | |
new Among ( "seser\u0103m", 67, 2, "", methodObject ), |
| 228 | |
new Among ( "iser\u0103m", 67, 1, "", methodObject ), |
| 229 | |
new Among ( "user\u0103m", 67, 1, "", methodObject ), |
| 230 | |
new Among ( "\u00E2ser\u0103m", 67, 1, "", methodObject ), |
| 231 | |
new Among ( "ir\u0103m", 65, 1, "", methodObject ), |
| 232 | |
new Among ( "ur\u0103m", 65, 1, "", methodObject ), |
| 233 | |
new Among ( "\u00E2r\u0103m", 65, 1, "", methodObject ), |
| 234 | |
new Among ( "au", -1, 1, "", methodObject ), |
| 235 | |
new Among ( "eau", 76, 1, "", methodObject ), |
| 236 | |
new Among ( "iau", 76, 1, "", methodObject ), |
| 237 | |
new Among ( "indu", -1, 1, "", methodObject ), |
| 238 | |
new Among ( "\u00E2ndu", -1, 1, "", methodObject ), |
| 239 | |
new Among ( "ez", -1, 1, "", methodObject ), |
| 240 | |
new Among ( "easc\u0103", -1, 1, "", methodObject ), |
| 241 | |
new Among ( "ar\u0103", -1, 1, "", methodObject ), |
| 242 | |
new Among ( "ser\u0103", -1, 2, "", methodObject ), |
| 243 | |
new Among ( "aser\u0103", 84, 1, "", methodObject ), |
| 244 | |
new Among ( "seser\u0103", 84, 2, "", methodObject ), |
| 245 | |
new Among ( "iser\u0103", 84, 1, "", methodObject ), |
| 246 | |
new Among ( "user\u0103", 84, 1, "", methodObject ), |
| 247 | |
new Among ( "\u00E2ser\u0103", 84, 1, "", methodObject ), |
| 248 | |
new Among ( "ir\u0103", -1, 1, "", methodObject ), |
| 249 | |
new Among ( "ur\u0103", -1, 1, "", methodObject ), |
| 250 | |
new Among ( "\u00E2r\u0103", -1, 1, "", methodObject ), |
| 251 | |
new Among ( "eaz\u0103", -1, 1, "", methodObject ) |
| 252 | |
}; |
| 253 | |
|
| 254 | 0 | private final static Among a_5[] = { |
| 255 | |
new Among ( "a", -1, 1, "", methodObject ), |
| 256 | |
new Among ( "e", -1, 1, "", methodObject ), |
| 257 | |
new Among ( "ie", 1, 1, "", methodObject ), |
| 258 | |
new Among ( "i", -1, 1, "", methodObject ), |
| 259 | |
new Among ( "\u0103", -1, 1, "", methodObject ) |
| 260 | |
}; |
| 261 | |
|
| 262 | 0 | 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 }; |
| 263 | |
|
| 264 | |
private boolean B_standard_suffix_removed; |
| 265 | |
private int I_p2; |
| 266 | |
private int I_p1; |
| 267 | |
private int I_pV; |
| 268 | |
|
| 269 | |
private void copy_from(romanianStemmer other) { |
| 270 | 0 | B_standard_suffix_removed = other.B_standard_suffix_removed; |
| 271 | 0 | I_p2 = other.I_p2; |
| 272 | 0 | I_p1 = other.I_p1; |
| 273 | 0 | I_pV = other.I_pV; |
| 274 | 0 | super.copy_from(other); |
| 275 | 0 | } |
| 276 | |
|
| 277 | |
private boolean r_prelude() { |
| 278 | |
int v_1; |
| 279 | |
int v_2; |
| 280 | |
int v_3; |
| 281 | |
|
| 282 | |
|
| 283 | |
replab0: while(true) |
| 284 | |
{ |
| 285 | 0 | v_1 = cursor; |
| 286 | |
lab1: do { |
| 287 | |
|
| 288 | |
golab2: while(true) |
| 289 | |
{ |
| 290 | 0 | v_2 = cursor; |
| 291 | |
lab3: do { |
| 292 | |
|
| 293 | 0 | if (!(in_grouping(g_v, 97, 259))) |
| 294 | |
{ |
| 295 | 0 | break lab3; |
| 296 | |
} |
| 297 | |
|
| 298 | 0 | bra = cursor; |
| 299 | |
|
| 300 | |
lab4: do { |
| 301 | 0 | v_3 = cursor; |
| 302 | |
lab5: do { |
| 303 | |
|
| 304 | |
|
| 305 | 0 | if (!(eq_s(1, "u"))) |
| 306 | |
{ |
| 307 | 0 | break lab5; |
| 308 | |
} |
| 309 | |
|
| 310 | 0 | ket = cursor; |
| 311 | 0 | if (!(in_grouping(g_v, 97, 259))) |
| 312 | |
{ |
| 313 | 0 | break lab5; |
| 314 | |
} |
| 315 | |
|
| 316 | 0 | slice_from("U"); |
| 317 | 0 | break lab4; |
| 318 | |
} while (false); |
| 319 | 0 | cursor = v_3; |
| 320 | |
|
| 321 | |
|
| 322 | 0 | if (!(eq_s(1, "i"))) |
| 323 | |
{ |
| 324 | 0 | break lab3; |
| 325 | |
} |
| 326 | |
|
| 327 | 0 | ket = cursor; |
| 328 | 0 | if (!(in_grouping(g_v, 97, 259))) |
| 329 | |
{ |
| 330 | 0 | break lab3; |
| 331 | |
} |
| 332 | |
|
| 333 | 0 | slice_from("I"); |
| 334 | |
} while (false); |
| 335 | 0 | cursor = v_2; |
| 336 | 0 | break golab2; |
| 337 | |
} while (false); |
| 338 | 0 | cursor = v_2; |
| 339 | 0 | if (cursor >= limit) |
| 340 | |
{ |
| 341 | 0 | break lab1; |
| 342 | |
} |
| 343 | 0 | cursor++; |
| 344 | |
} |
| 345 | |
continue replab0; |
| 346 | |
} while (false); |
| 347 | 0 | cursor = v_1; |
| 348 | 0 | break replab0; |
| 349 | |
} |
| 350 | 0 | return true; |
| 351 | |
} |
| 352 | |
|
| 353 | |
private boolean r_mark_regions() { |
| 354 | |
int v_1; |
| 355 | |
int v_2; |
| 356 | |
int v_3; |
| 357 | |
int v_6; |
| 358 | |
int v_8; |
| 359 | |
|
| 360 | 0 | I_pV = limit; |
| 361 | 0 | I_p1 = limit; |
| 362 | 0 | I_p2 = limit; |
| 363 | |
|
| 364 | 0 | v_1 = cursor; |
| 365 | |
lab0: do { |
| 366 | |
|
| 367 | |
|
| 368 | |
lab1: do { |
| 369 | 0 | v_2 = cursor; |
| 370 | |
lab2: do { |
| 371 | |
|
| 372 | 0 | if (!(in_grouping(g_v, 97, 259))) |
| 373 | |
{ |
| 374 | 0 | break lab2; |
| 375 | |
} |
| 376 | |
|
| 377 | |
lab3: do { |
| 378 | 0 | v_3 = cursor; |
| 379 | |
lab4: do { |
| 380 | |
|
| 381 | 0 | if (!(out_grouping(g_v, 97, 259))) |
| 382 | |
{ |
| 383 | 0 | break lab4; |
| 384 | |
} |
| 385 | |
|
| 386 | |
golab5: while(true) |
| 387 | |
{ |
| 388 | |
lab6: do { |
| 389 | 0 | if (!(in_grouping(g_v, 97, 259))) |
| 390 | |
{ |
| 391 | |
break lab6; |
| 392 | |
} |
| 393 | |
break golab5; |
| 394 | |
} while (false); |
| 395 | 0 | if (cursor >= limit) |
| 396 | |
{ |
| 397 | 0 | break lab4; |
| 398 | |
} |
| 399 | 0 | cursor++; |
| 400 | |
} |
| 401 | |
break lab3; |
| 402 | |
} while (false); |
| 403 | 0 | cursor = v_3; |
| 404 | |
|
| 405 | 0 | if (!(in_grouping(g_v, 97, 259))) |
| 406 | |
{ |
| 407 | 0 | break lab2; |
| 408 | |
} |
| 409 | |
|
| 410 | |
golab7: while(true) |
| 411 | |
{ |
| 412 | |
lab8: do { |
| 413 | 0 | if (!(out_grouping(g_v, 97, 259))) |
| 414 | |
{ |
| 415 | |
break lab8; |
| 416 | |
} |
| 417 | |
break golab7; |
| 418 | |
} while (false); |
| 419 | 0 | if (cursor >= limit) |
| 420 | |
{ |
| 421 | 0 | break lab2; |
| 422 | |
} |
| 423 | 0 | cursor++; |
| 424 | |
} |
| 425 | |
} while (false); |
| 426 | |
break lab1; |
| 427 | |
} while (false); |
| 428 | 0 | cursor = v_2; |
| 429 | |
|
| 430 | 0 | if (!(out_grouping(g_v, 97, 259))) |
| 431 | |
{ |
| 432 | 0 | break lab0; |
| 433 | |
} |
| 434 | |
|
| 435 | |
lab9: do { |
| 436 | 0 | v_6 = cursor; |
| 437 | |
lab10: do { |
| 438 | |
|
| 439 | 0 | if (!(out_grouping(g_v, 97, 259))) |
| 440 | |
{ |
| 441 | 0 | break lab10; |
| 442 | |
} |
| 443 | |
|
| 444 | |
golab11: while(true) |
| 445 | |
{ |
| 446 | |
lab12: do { |
| 447 | 0 | if (!(in_grouping(g_v, 97, 259))) |
| 448 | |
{ |
| 449 | |
break lab12; |
| 450 | |
} |
| 451 | |
break golab11; |
| 452 | |
} while (false); |
| 453 | 0 | if (cursor >= limit) |
| 454 | |
{ |
| 455 | 0 | break lab10; |
| 456 | |
} |
| 457 | 0 | cursor++; |
| 458 | |
} |
| 459 | |
break lab9; |
| 460 | |
} while (false); |
| 461 | 0 | cursor = v_6; |
| 462 | |
|
| 463 | 0 | if (!(in_grouping(g_v, 97, 259))) |
| 464 | |
{ |
| 465 | 0 | break lab0; |
| 466 | |
} |
| 467 | |
|
| 468 | 0 | if (cursor >= limit) |
| 469 | |
{ |
| 470 | 0 | break lab0; |
| 471 | |
} |
| 472 | 0 | cursor++; |
| 473 | |
} while (false); |
| 474 | |
} while (false); |
| 475 | |
|
| 476 | 0 | I_pV = cursor; |
| 477 | |
} while (false); |
| 478 | 0 | cursor = v_1; |
| 479 | |
|
| 480 | 0 | v_8 = cursor; |
| 481 | |
lab13: do { |
| 482 | |
|
| 483 | |
|
| 484 | |
golab14: while(true) |
| 485 | |
{ |
| 486 | |
lab15: do { |
| 487 | 0 | if (!(in_grouping(g_v, 97, 259))) |
| 488 | |
{ |
| 489 | |
break lab15; |
| 490 | |
} |
| 491 | |
break golab14; |
| 492 | |
} while (false); |
| 493 | 0 | if (cursor >= limit) |
| 494 | |
{ |
| 495 | 0 | break lab13; |
| 496 | |
} |
| 497 | 0 | cursor++; |
| 498 | |
} |
| 499 | |
|
| 500 | |
golab16: while(true) |
| 501 | |
{ |
| 502 | |
lab17: do { |
| 503 | 0 | if (!(out_grouping(g_v, 97, 259))) |
| 504 | |
{ |
| 505 | |
break lab17; |
| 506 | |
} |
| 507 | |
break golab16; |
| 508 | |
} while (false); |
| 509 | 0 | if (cursor >= limit) |
| 510 | |
{ |
| 511 | 0 | break lab13; |
| 512 | |
} |
| 513 | 0 | cursor++; |
| 514 | |
} |
| 515 | |
|
| 516 | 0 | I_p1 = cursor; |
| 517 | |
|
| 518 | |
golab18: while(true) |
| 519 | |
{ |
| 520 | |
lab19: do { |
| 521 | 0 | if (!(in_grouping(g_v, 97, 259))) |
| 522 | |
{ |
| 523 | |
break lab19; |
| 524 | |
} |
| 525 | |
break golab18; |
| 526 | |
} while (false); |
| 527 | 0 | if (cursor >= limit) |
| 528 | |
{ |
| 529 | 0 | break lab13; |
| 530 | |
} |
| 531 | 0 | cursor++; |
| 532 | |
} |
| 533 | |
|
| 534 | |
golab20: while(true) |
| 535 | |
{ |
| 536 | |
lab21: do { |
| 537 | 0 | if (!(out_grouping(g_v, 97, 259))) |
| 538 | |
{ |
| 539 | |
break lab21; |
| 540 | |
} |
| 541 | |
break golab20; |
| 542 | |
} while (false); |
| 543 | 0 | if (cursor >= limit) |
| 544 | |
{ |
| 545 | 0 | break lab13; |
| 546 | |
} |
| 547 | 0 | cursor++; |
| 548 | |
} |
| 549 | |
|
| 550 | 0 | I_p2 = cursor; |
| 551 | |
} while (false); |
| 552 | 0 | cursor = v_8; |
| 553 | 0 | return true; |
| 554 | |
} |
| 555 | |
|
| 556 | |
private boolean r_postlude() { |
| 557 | |
int among_var; |
| 558 | |
int v_1; |
| 559 | |
|
| 560 | |
replab0: while(true) |
| 561 | |
{ |
| 562 | 0 | v_1 = cursor; |
| 563 | |
lab1: do { |
| 564 | |
|
| 565 | |
|
| 566 | 0 | bra = cursor; |
| 567 | |
|
| 568 | 0 | among_var = find_among(a_0, 3); |
| 569 | 0 | if (among_var == 0) |
| 570 | |
{ |
| 571 | 0 | break lab1; |
| 572 | |
} |
| 573 | |
|
| 574 | 0 | ket = cursor; |
| 575 | 0 | switch(among_var) { |
| 576 | |
case 0: |
| 577 | 0 | break lab1; |
| 578 | |
case 1: |
| 579 | |
|
| 580 | |
|
| 581 | 0 | slice_from("i"); |
| 582 | 0 | break; |
| 583 | |
case 2: |
| 584 | |
|
| 585 | |
|
| 586 | 0 | slice_from("u"); |
| 587 | 0 | break; |
| 588 | |
case 3: |
| 589 | |
|
| 590 | |
|
| 591 | 0 | if (cursor >= limit) |
| 592 | |
{ |
| 593 | 0 | break lab1; |
| 594 | |
} |
| 595 | 0 | cursor++; |
| 596 | |
break; |
| 597 | |
} |
| 598 | 0 | continue replab0; |
| 599 | |
} while (false); |
| 600 | 0 | cursor = v_1; |
| 601 | 0 | break replab0; |
| 602 | |
} |
| 603 | 0 | return true; |
| 604 | |
} |
| 605 | |
|
| 606 | |
private boolean r_RV() { |
| 607 | 0 | if (!(I_pV <= cursor)) |
| 608 | |
{ |
| 609 | 0 | return false; |
| 610 | |
} |
| 611 | 0 | return true; |
| 612 | |
} |
| 613 | |
|
| 614 | |
private boolean r_R1() { |
| 615 | 0 | if (!(I_p1 <= cursor)) |
| 616 | |
{ |
| 617 | 0 | return false; |
| 618 | |
} |
| 619 | 0 | return true; |
| 620 | |
} |
| 621 | |
|
| 622 | |
private boolean r_R2() { |
| 623 | 0 | if (!(I_p2 <= cursor)) |
| 624 | |
{ |
| 625 | 0 | return false; |
| 626 | |
} |
| 627 | 0 | return true; |
| 628 | |
} |
| 629 | |
|
| 630 | |
private boolean r_step_0() { |
| 631 | |
int among_var; |
| 632 | |
int v_1; |
| 633 | |
|
| 634 | |
|
| 635 | 0 | ket = cursor; |
| 636 | |
|
| 637 | 0 | among_var = find_among_b(a_1, 16); |
| 638 | 0 | if (among_var == 0) |
| 639 | |
{ |
| 640 | 0 | return false; |
| 641 | |
} |
| 642 | |
|
| 643 | 0 | bra = cursor; |
| 644 | |
|
| 645 | 0 | if (!r_R1()) |
| 646 | |
{ |
| 647 | 0 | return false; |
| 648 | |
} |
| 649 | 0 | switch(among_var) { |
| 650 | |
case 0: |
| 651 | 0 | return false; |
| 652 | |
case 1: |
| 653 | |
|
| 654 | |
|
| 655 | 0 | slice_del(); |
| 656 | 0 | break; |
| 657 | |
case 2: |
| 658 | |
|
| 659 | |
|
| 660 | 0 | slice_from("a"); |
| 661 | 0 | break; |
| 662 | |
case 3: |
| 663 | |
|
| 664 | |
|
| 665 | 0 | slice_from("e"); |
| 666 | 0 | break; |
| 667 | |
case 4: |
| 668 | |
|
| 669 | |
|
| 670 | 0 | slice_from("i"); |
| 671 | 0 | break; |
| 672 | |
case 5: |
| 673 | |
|
| 674 | |
|
| 675 | |
{ |
| 676 | 0 | v_1 = limit - cursor; |
| 677 | |
lab0: do { |
| 678 | |
|
| 679 | 0 | if (!(eq_s_b(2, "ab"))) |
| 680 | |
{ |
| 681 | 0 | break lab0; |
| 682 | |
} |
| 683 | 0 | return false; |
| 684 | |
} while (false); |
| 685 | 0 | cursor = limit - v_1; |
| 686 | |
} |
| 687 | |
|
| 688 | 0 | slice_from("i"); |
| 689 | 0 | break; |
| 690 | |
case 6: |
| 691 | |
|
| 692 | |
|
| 693 | 0 | slice_from("at"); |
| 694 | 0 | break; |
| 695 | |
case 7: |
| 696 | |
|
| 697 | |
|
| 698 | 0 | slice_from("a\u0163i"); |
| 699 | |
break; |
| 700 | |
} |
| 701 | 0 | return true; |
| 702 | |
} |
| 703 | |
|
| 704 | |
private boolean r_combo_suffix() { |
| 705 | |
int among_var; |
| 706 | |
int v_1; |
| 707 | |
|
| 708 | 0 | v_1 = limit - cursor; |
| 709 | |
|
| 710 | |
|
| 711 | 0 | ket = cursor; |
| 712 | |
|
| 713 | 0 | among_var = find_among_b(a_2, 46); |
| 714 | 0 | if (among_var == 0) |
| 715 | |
{ |
| 716 | 0 | return false; |
| 717 | |
} |
| 718 | |
|
| 719 | 0 | bra = cursor; |
| 720 | |
|
| 721 | 0 | if (!r_R1()) |
| 722 | |
{ |
| 723 | 0 | return false; |
| 724 | |
} |
| 725 | |
|
| 726 | 0 | switch(among_var) { |
| 727 | |
case 0: |
| 728 | 0 | return false; |
| 729 | |
case 1: |
| 730 | |
|
| 731 | |
|
| 732 | 0 | slice_from("abil"); |
| 733 | 0 | break; |
| 734 | |
case 2: |
| 735 | |
|
| 736 | |
|
| 737 | 0 | slice_from("ibil"); |
| 738 | 0 | break; |
| 739 | |
case 3: |
| 740 | |
|
| 741 | |
|
| 742 | 0 | slice_from("iv"); |
| 743 | 0 | break; |
| 744 | |
case 4: |
| 745 | |
|
| 746 | |
|
| 747 | 0 | slice_from("ic"); |
| 748 | 0 | break; |
| 749 | |
case 5: |
| 750 | |
|
| 751 | |
|
| 752 | 0 | slice_from("at"); |
| 753 | 0 | break; |
| 754 | |
case 6: |
| 755 | |
|
| 756 | |
|
| 757 | 0 | slice_from("it"); |
| 758 | |
break; |
| 759 | |
} |
| 760 | |
|
| 761 | 0 | B_standard_suffix_removed = true; |
| 762 | 0 | cursor = limit - v_1; |
| 763 | 0 | return true; |
| 764 | |
} |
| 765 | |
|
| 766 | |
private boolean r_standard_suffix() { |
| 767 | |
int among_var; |
| 768 | |
int v_1; |
| 769 | |
|
| 770 | |
|
| 771 | 0 | B_standard_suffix_removed = false; |
| 772 | |
|
| 773 | |
replab0: while(true) |
| 774 | |
{ |
| 775 | 0 | v_1 = limit - cursor; |
| 776 | |
lab1: do { |
| 777 | |
|
| 778 | 0 | if (!r_combo_suffix()) |
| 779 | |
{ |
| 780 | |
break lab1; |
| 781 | |
} |
| 782 | |
continue replab0; |
| 783 | |
} while (false); |
| 784 | 0 | cursor = limit - v_1; |
| 785 | 0 | break replab0; |
| 786 | |
} |
| 787 | |
|
| 788 | 0 | ket = cursor; |
| 789 | |
|
| 790 | 0 | among_var = find_among_b(a_3, 62); |
| 791 | 0 | if (among_var == 0) |
| 792 | |
{ |
| 793 | 0 | return false; |
| 794 | |
} |
| 795 | |
|
| 796 | 0 | bra = cursor; |
| 797 | |
|
| 798 | 0 | if (!r_R2()) |
| 799 | |
{ |
| 800 | 0 | return false; |
| 801 | |
} |
| 802 | |
|
| 803 | 0 | switch(among_var) { |
| 804 | |
case 0: |
| 805 | 0 | return false; |
| 806 | |
case 1: |
| 807 | |
|
| 808 | |
|
| 809 | 0 | slice_del(); |
| 810 | 0 | break; |
| 811 | |
case 2: |
| 812 | |
|
| 813 | |
|
| 814 | 0 | if (!(eq_s_b(1, "\u0163"))) |
| 815 | |
{ |
| 816 | 0 | return false; |
| 817 | |
} |
| 818 | |
|
| 819 | 0 | bra = cursor; |
| 820 | |
|
| 821 | 0 | slice_from("t"); |
| 822 | 0 | break; |
| 823 | |
case 3: |
| 824 | |
|
| 825 | |
|
| 826 | 0 | slice_from("ist"); |
| 827 | |
break; |
| 828 | |
} |
| 829 | |
|
| 830 | 0 | B_standard_suffix_removed = true; |
| 831 | 0 | return true; |
| 832 | |
} |
| 833 | |
|
| 834 | |
private boolean r_verb_suffix() { |
| 835 | |
int among_var; |
| 836 | |
int v_1; |
| 837 | |
int v_2; |
| 838 | |
int v_3; |
| 839 | |
|
| 840 | 0 | v_1 = limit - cursor; |
| 841 | |
|
| 842 | 0 | if (cursor < I_pV) |
| 843 | |
{ |
| 844 | 0 | return false; |
| 845 | |
} |
| 846 | 0 | cursor = I_pV; |
| 847 | 0 | v_2 = limit_backward; |
| 848 | 0 | limit_backward = cursor; |
| 849 | 0 | cursor = limit - v_1; |
| 850 | |
|
| 851 | |
|
| 852 | 0 | ket = cursor; |
| 853 | |
|
| 854 | 0 | among_var = find_among_b(a_4, 94); |
| 855 | 0 | if (among_var == 0) |
| 856 | |
{ |
| 857 | 0 | limit_backward = v_2; |
| 858 | 0 | return false; |
| 859 | |
} |
| 860 | |
|
| 861 | 0 | bra = cursor; |
| 862 | 0 | switch(among_var) { |
| 863 | |
case 0: |
| 864 | 0 | limit_backward = v_2; |
| 865 | 0 | return false; |
| 866 | |
case 1: |
| 867 | |
|
| 868 | |
|
| 869 | |
lab0: do { |
| 870 | 0 | v_3 = limit - cursor; |
| 871 | |
lab1: do { |
| 872 | 0 | if (!(out_grouping_b(g_v, 97, 259))) |
| 873 | |
{ |
| 874 | |
break lab1; |
| 875 | |
} |
| 876 | |
break lab0; |
| 877 | |
} while (false); |
| 878 | 0 | cursor = limit - v_3; |
| 879 | |
|
| 880 | 0 | if (!(eq_s_b(1, "u"))) |
| 881 | |
{ |
| 882 | 0 | limit_backward = v_2; |
| 883 | 0 | return false; |
| 884 | |
} |
| 885 | |
} while (false); |
| 886 | |
|
| 887 | 0 | slice_del(); |
| 888 | 0 | break; |
| 889 | |
case 2: |
| 890 | |
|
| 891 | |
|
| 892 | 0 | slice_del(); |
| 893 | |
break; |
| 894 | |
} |
| 895 | 0 | limit_backward = v_2; |
| 896 | 0 | return true; |
| 897 | |
} |
| 898 | |
|
| 899 | |
private boolean r_vowel_suffix() { |
| 900 | |
int among_var; |
| 901 | |
|
| 902 | |
|
| 903 | 0 | ket = cursor; |
| 904 | |
|
| 905 | 0 | among_var = find_among_b(a_5, 5); |
| 906 | 0 | if (among_var == 0) |
| 907 | |
{ |
| 908 | 0 | return false; |
| 909 | |
} |
| 910 | |
|
| 911 | 0 | bra = cursor; |
| 912 | |
|
| 913 | 0 | if (!r_RV()) |
| 914 | |
{ |
| 915 | 0 | return false; |
| 916 | |
} |
| 917 | 0 | switch(among_var) { |
| 918 | |
case 0: |
| 919 | 0 | return false; |
| 920 | |
case 1: |
| 921 | |
|
| 922 | |
|
| 923 | 0 | slice_del(); |
| 924 | |
break; |
| 925 | |
} |
| 926 | 0 | return true; |
| 927 | |
} |
| 928 | |
|
| 929 | |
public boolean stem() { |
| 930 | |
int v_1; |
| 931 | |
int v_2; |
| 932 | |
int v_3; |
| 933 | |
int v_4; |
| 934 | |
int v_5; |
| 935 | |
int v_6; |
| 936 | |
int v_7; |
| 937 | |
int v_8; |
| 938 | |
|
| 939 | |
|
| 940 | 0 | v_1 = cursor; |
| 941 | |
lab0: do { |
| 942 | |
|
| 943 | 0 | if (!r_prelude()) |
| 944 | |
{ |
| 945 | |
break lab0; |
| 946 | |
} |
| 947 | |
} while (false); |
| 948 | 0 | cursor = v_1; |
| 949 | |
|
| 950 | 0 | v_2 = cursor; |
| 951 | |
lab1: do { |
| 952 | |
|
| 953 | 0 | if (!r_mark_regions()) |
| 954 | |
{ |
| 955 | |
break lab1; |
| 956 | |
} |
| 957 | |
} while (false); |
| 958 | 0 | cursor = v_2; |
| 959 | |
|
| 960 | 0 | limit_backward = cursor; cursor = limit; |
| 961 | |
|
| 962 | |
|
| 963 | 0 | v_3 = limit - cursor; |
| 964 | |
lab2: do { |
| 965 | |
|
| 966 | 0 | if (!r_step_0()) |
| 967 | |
{ |
| 968 | |
break lab2; |
| 969 | |
} |
| 970 | |
} while (false); |
| 971 | 0 | cursor = limit - v_3; |
| 972 | |
|
| 973 | 0 | v_4 = limit - cursor; |
| 974 | |
lab3: do { |
| 975 | |
|
| 976 | 0 | if (!r_standard_suffix()) |
| 977 | |
{ |
| 978 | |
break lab3; |
| 979 | |
} |
| 980 | |
} while (false); |
| 981 | 0 | cursor = limit - v_4; |
| 982 | |
|
| 983 | 0 | v_5 = limit - cursor; |
| 984 | |
lab4: do { |
| 985 | |
|
| 986 | |
|
| 987 | |
lab5: do { |
| 988 | 0 | v_6 = limit - cursor; |
| 989 | |
lab6: do { |
| 990 | |
|
| 991 | 0 | if (!(B_standard_suffix_removed)) |
| 992 | |
{ |
| 993 | |
break lab6; |
| 994 | |
} |
| 995 | |
break lab5; |
| 996 | |
} while (false); |
| 997 | 0 | cursor = limit - v_6; |
| 998 | |
|
| 999 | 0 | if (!r_verb_suffix()) |
| 1000 | |
{ |
| 1001 | |
break lab4; |
| 1002 | |
} |
| 1003 | |
} while (false); |
| 1004 | |
} while (false); |
| 1005 | 0 | cursor = limit - v_5; |
| 1006 | |
|
| 1007 | 0 | v_7 = limit - cursor; |
| 1008 | |
lab7: do { |
| 1009 | |
|
| 1010 | 0 | if (!r_vowel_suffix()) |
| 1011 | |
{ |
| 1012 | |
break lab7; |
| 1013 | |
} |
| 1014 | |
} while (false); |
| 1015 | 0 | cursor = limit - v_7; |
| 1016 | 0 | cursor = limit_backward; |
| 1017 | 0 | v_8 = cursor; |
| 1018 | |
lab8: do { |
| 1019 | |
|
| 1020 | 0 | if (!r_postlude()) |
| 1021 | |
{ |
| 1022 | |
break lab8; |
| 1023 | |
} |
| 1024 | |
} while (false); |
| 1025 | 0 | cursor = v_8; |
| 1026 | 0 | return true; |
| 1027 | |
} |
| 1028 | |
|
| 1029 | |
public boolean equals( Object o ) { |
| 1030 | 0 | return o instanceof romanianStemmer; |
| 1031 | |
} |
| 1032 | |
|
| 1033 | |
public int hashCode() { |
| 1034 | 0 | return romanianStemmer.class.getName().hashCode(); |
| 1035 | |
} |
| 1036 | |
|
| 1037 | |
|
| 1038 | |
|
| 1039 | |
} |
| 1040 | |
|