Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

LUCENE-1142 : Updated Snowball package, org.tartarus distribution revision 500.

Karl-Johan Wettin3034575f6602
diff --git a/contrib/CHANGES.txt b/contrib/CHANGES.txt
index 3ae8114f96f..c0068e62f23 100644
--- a/contrib/CHANGES.txt
+++ b/contrib/CHANGES.txt
@@ -8,6 +8,8 @@ Changes in runtime behavior
API Changes
+ 1.
+
(None)
Bug fixes
@@ -23,6 +25,13 @@ New features
1. LUCENE-1320: ShingleMatrixFilter, multidimensional shingle token filter. (Karl Wettin)
+ 2. LUCENE-1142: Updated Snowball package, org.tartarus distribution revision 500.
+ Introducing Hungarian, Turkish and Romanian support, updated older stemmers
+ and optimized (reflectionless) SnowballFilter.
+ IMPORTANT NOTICE ON BACKWARDS COMPATIBILITY: an index created using the 2.3.2 (or older)
+ might not be compatible with these updated classes as some algorithms have changed.
+ (Karl Wettin)
+
Documentation
(None)
diff --git a/contrib/snowball/README.txt b/contrib/snowball/README.txt
index 0e765806bb4..f2c23ef8e05 100644
--- a/contrib/snowball/README.txt
+++ b/contrib/snowball/README.txt
@@ -1,16 +1,18 @@
Lucene Snowball README file
-$Id$
-
-INTRODUCTION
-
This project provides pre-compiled version of the Snowball stemmers
+based on revision 500 of the Tartarus Snowball repository,
together with classes integrating them with the Lucene search engine.
-More documentation is provided in the 'docs' subdirectory.
-For more information on Lucene, see:
- http://jakarta.apache.org/lucene
+IMPORTANT NOTICE ON BACKWARDS COMPATIBILITY!
+
+An index created using the Snowball module in Lucene 2.3.2 and below
+might not be compatible with the Snowball module in Lucene 2.4 or greater.
+
+For more information about this issue see:
+https://issues.apache.org/jira/browse/LUCENE-1142
+
For more information on Snowball, see:
http://snowball.tartarus.org/
diff --git a/contrib/snowball/src/java/net/sf/snowball/TestApp.java b/contrib/snowball/src/java/net/sf/snowball/TestApp.java
deleted file mode 100644
index 897e5e6a7a0..00000000000
--- a/contrib/snowball/src/java/net/sf/snowball/TestApp.java
+++ /dev/null
@@ -1,90 +0,0 @@
-package net.sf.snowball;
-
-/**
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-import java.lang.reflect.Method;
-import java.io.Reader;
-import java.io.Writer;
-import java.io.BufferedReader;
-import java.io.BufferedWriter;
-import java.io.FileInputStream;
-import java.io.InputStreamReader;
-import java.io.OutputStreamWriter;
-import java.io.OutputStream;
-import java.io.FileOutputStream;
-
-public class TestApp {
- public static void main(String[] args) throws Throwable {
-
- if (args.length < 2) {
- exitWithUsage();
- }
-
- Class stemClass = Class.forName("net.sf.snowball.ext." +
- args[0] + "Stemmer");
- SnowballProgram stemmer = (SnowballProgram) stemClass.newInstance();
- Method stemMethod = stemClass.getMethod("stem", new Class[0]);
-
- Reader reader;
- reader = new InputStreamReader(new FileInputStream(args[1]));
- reader = new BufferedReader(reader);
-
- StringBuffer input = new StringBuffer();
-
- OutputStream outstream = System.out;
-
- if (args.length > 2 && args[2].equals("-o")) {
- outstream = new FileOutputStream(args[3]);
- } else if (args.length > 2) {
- exitWithUsage();
- }
-
- Writer output = new OutputStreamWriter(outstream);
- output = new BufferedWriter(output);
-
- int repeat = 1;
- if (args.length > 4) {
- repeat = Integer.parseInt(args[4]);
- }
-
- Object[] emptyArgs = new Object[0];
- int character;
- while ((character = reader.read()) != -1) {
- char ch = (char) character;
- if (Character.isWhitespace(ch)) {
- if (input.length() > 0) {
- stemmer.setCurrent(input.toString());
- for (int i = repeat; i != 0; i--) {
- stemMethod.invoke(stemmer, emptyArgs);
- }
- output.write(stemmer.getCurrent());
- output.write('\n');
- input.delete(0, input.length());
- }
- } else {
- input.append(Character.toLowerCase(ch));
- }
- }
- output.flush();
- }
-
- private static void exitWithUsage() {
- System.err.println("Usage: TestApp <stemmer name> <input file> [-o <output file>]");
- System.exit(1);
- }
-}
diff --git a/contrib/snowball/src/java/net/sf/snowball/ext/package.html b/contrib/snowball/src/java/net/sf/snowball/ext/package.html
deleted file mode 100644
index 3368406c7fc..00000000000
--- a/contrib/snowball/src/java/net/sf/snowball/ext/package.html
+++ /dev/null
@@ -1,5 +0,0 @@
-<html>
-<body>
-Snowball generated stemmer classes.
-</body>
-</html>
diff --git a/contrib/snowball/src/java/net/sf/snowball/package.html b/contrib/snowball/src/java/net/sf/snowball/package.html
deleted file mode 100644
index 00894f52bd2..00000000000
--- a/contrib/snowball/src/java/net/sf/snowball/package.html
+++ /dev/null
@@ -1,5 +0,0 @@
-<html>
-<body>
-Snowball system classes.
-</body>
-</html>
diff --git a/contrib/snowball/src/java/org/apache/lucene/analysis/snowball/SnowballAnalyzer.java b/contrib/snowball/src/java/org/apache/lucene/analysis/snowball/SnowballAnalyzer.java
index a862e9f0128..b13bbcbc5e2 100644
--- a/contrib/snowball/src/java/org/apache/lucene/analysis/snowball/SnowballAnalyzer.java
+++ b/contrib/snowball/src/java/org/apache/lucene/analysis/snowball/SnowballAnalyzer.java
@@ -20,8 +20,6 @@ package org.apache.lucene.analysis.snowball;
import org.apache.lucene.analysis.*;
import org.apache.lucene.analysis.standard.*;
-import net.sf.snowball.ext.*;
-
import java.io.Reader;
import java.util.Set;
@@ -30,7 +28,7 @@ import java.util.Set;
*
* Available stemmers are listed in {@link net.sf.snowball.ext}. The name of a
* stemmer is the part of the class name before "Stemmer", e.g., the stemmer in
- * {@link EnglishStemmer} is named "English".
+ * {@link org.tartarus.snowball.ext.EnglishStemmer} is named "English".
*/
public class SnowballAnalyzer extends Analyzer {
private String name;
diff --git a/contrib/snowball/src/java/org/apache/lucene/analysis/snowball/SnowballFilter.java b/contrib/snowball/src/java/org/apache/lucene/analysis/snowball/SnowballFilter.java
index bcd534f055b..86ccc8b3215 100644
--- a/contrib/snowball/src/java/org/apache/lucene/analysis/snowball/SnowballFilter.java
+++ b/contrib/snowball/src/java/org/apache/lucene/analysis/snowball/SnowballFilter.java
@@ -18,41 +18,41 @@ package org.apache.lucene.analysis.snowball;
*/
import java.io.IOException;
-import java.lang.reflect.Method;
-
-import net.sf.snowball.SnowballProgram;
-import net.sf.snowball.ext.EnglishStemmer;
import org.apache.lucene.analysis.Token;
import org.apache.lucene.analysis.TokenFilter;
import org.apache.lucene.analysis.TokenStream;
+import org.tartarus.snowball.SnowballProgram;
-/** A filter that stems words using a Snowball-generated stemmer.
+/**
+ * A filter that stems words using a Snowball-generated stemmer.
*
- * Available stemmers are listed in {@link net.sf.snowball.ext}. The name of a
- * stemmer is the part of the class name before "Stemmer", e.g., the stemmer in
- * {@link EnglishStemmer} is named "English".
+ * Available stemmers are listed in {@link org.tartarus.snowball.ext}.
*/
-
public class SnowballFilter extends TokenFilter {
- private static final Object [] EMPTY_ARGS = new Object[0];
private SnowballProgram stemmer;
- private Method stemMethod;
- /** Construct the named stemming filter.
+ public SnowballFilter(TokenStream input, SnowballProgram stemmer) {
+ super(input);
+ this.stemmer = stemmer;
+ }
+
+ /**
+ * Construct the named stemming filter.
+ *
+ * Available stemmers are listed in {@link org.tartarus.snowball.ext}.
+ * The name of a stemmer is the part of the class name before "Stemmer",
+ * e.g., the stemmer in {@link org.tartarus.snowball.ext.EnglishStemmer} is named "English".
*
* @param in the input tokens to stem
* @param name the name of a stemmer
*/
public SnowballFilter(TokenStream in, String name) {
super(in);
- try {
- Class stemClass =
- Class.forName("net.sf.snowball.ext." + name + "Stemmer");
+ try {
+ Class stemClass = Class.forName("org.tartarus.snowball.ext." + name + "Stemmer");
stemmer = (SnowballProgram) stemClass.newInstance();
- // why doesn't the SnowballProgram class have an (abstract?) stem method?
- stemMethod = stemClass.getMethod("stem", new Class[0]);
} catch (Exception e) {
throw new RuntimeException(e.toString());
}
@@ -66,11 +66,7 @@ public class SnowballFilter extends TokenFilter {
return null;
String originalTerm = nextToken.term();
stemmer.setCurrent(originalTerm);
- try {
- stemMethod.invoke(stemmer, EMPTY_ARGS);
- } catch (Exception e) {
- throw new RuntimeException(e.toString());
- }
+ stemmer.stem();
String finalTerm = stemmer.getCurrent();
// Don't bother updating, if it is unchanged.
if (!originalTerm.equals(finalTerm))
diff --git a/contrib/snowball/src/java/net/sf/snowball/Among.java b/contrib/snowball/src/java/org/tartarus/snowball/Among.java
similarity index 53%
rename from contrib/snowball/src/java/net/sf/snowball/Among.java
rename to contrib/snowball/src/java/org/tartarus/snowball/Among.java
index dec7822cb50..018ba30a093 100644
--- a/contrib/snowball/src/java/net/sf/snowball/Among.java
+++ b/contrib/snowball/src/java/org/tartarus/snowball/Among.java
@@ -1,21 +1,5 @@
-package net.sf.snowball;
-/**
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
+package org.tartarus.snowball;
import java.lang.reflect.Method;
diff --git a/contrib/snowball/src/java/net/sf/snowball/SnowballProgram.java b/contrib/snowball/src/java/org/tartarus/snowball/SnowballProgram.java
similarity index 90%
rename from contrib/snowball/src/java/net/sf/snowball/SnowballProgram.java
rename to contrib/snowball/src/java/org/tartarus/snowball/SnowballProgram.java
index ba2052c3570..58c56338197 100644
--- a/contrib/snowball/src/java/net/sf/snowball/SnowballProgram.java
+++ b/contrib/snowball/src/java/org/tartarus/snowball/SnowballProgram.java
@@ -1,31 +1,22 @@
-package net.sf.snowball;
-
-/**
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
+package org.tartarus.snowball;
import java.lang.reflect.InvocationTargetException;
-public class SnowballProgram {
+/**
+ * This is the rev 500 of the Snowball SVN trunk,
+ * but modified:
+ * made abstract and introduced abstract method stem
+ * to avoid expensive
+ */
+public abstract class SnowballProgram {
protected SnowballProgram()
{
current = new StringBuffer();
setCurrent("");
}
+ public abstract boolean stem();
+
/**
* Set the current string.
*/
@@ -44,7 +35,15 @@ public class SnowballProgram {
*/
public String getCurrent()
{
- return current.toString();
+ String result = current.toString();
+ // Make a new StringBuffer. If we reuse the old one, and a user of
+ // the library keeps a reference to the buffer returned (for example,
+ // by converting it to a String in a way which doesn't force a copy),
+ // the buffer size will not decrease, and we will risk wasting a large
+ // amount of memory.
+ // Thanks to Wolfram Esser for spotting this problem.
+ current = new StringBuffer();
+ return result;
}
// current string
@@ -334,7 +333,7 @@ public class SnowballProgram {
protected int replace_s(int c_bra, int c_ket, String s)
{
int adjustment = s.length() - (c_ket - c_bra);
- current.replace(bra, ket, s);
+ current.replace(c_bra, c_ket, s);
limit += adjustment;
if (cursor >= c_ket) cursor += adjustment;
else if (cursor > c_bra) cursor = c_bra;
@@ -425,4 +424,3 @@ extern void debug(struct SN_env * z, int number, int line_count)
};
-
diff --git a/contrib/snowball/src/java/org/tartarus/snowball/TestApp.java b/contrib/snowball/src/java/org/tartarus/snowball/TestApp.java
new file mode 100644
index 00000000000..e1707f9eb4b
--- /dev/null
+++ b/contrib/snowball/src/java/org/tartarus/snowball/TestApp.java
@@ -0,0 +1,78 @@
+
+package org.tartarus.snowball;
+
+import java.lang.reflect.Method;
+import java.io.Reader;
+import java.io.Writer;
+import java.io.BufferedReader;
+import java.io.BufferedWriter;
+import java.io.FileInputStream;
+import java.io.InputStreamReader;
+import java.io.OutputStreamWriter;
+import java.io.OutputStream;
+import java.io.FileOutputStream;
+
+public class TestApp {
+ private static void usage()
+ {
+ System.err.println("Usage: TestApp <algorithm> <input file> [-o <output file>]");
+ }
+
+ public static void main(String [] args) throws Throwable {
+ if (args.length < 2) {
+ usage();
+ return;
+ }
+
+ Class stemClass = Class.forName("org.tartarus.snowball.ext." +
+ args[0] + "Stemmer");
+ SnowballProgram stemmer = (SnowballProgram) stemClass.newInstance();
+ Method stemMethod = stemClass.getMethod("stem", new Class[0]);
+
+ Reader reader;
+ reader = new InputStreamReader(new FileInputStream(args[1]));
+ reader = new BufferedReader(reader);
+
+ StringBuffer input = new StringBuffer();
+
+ OutputStream outstream;
+
+ if (args.length > 2) {
+ if (args.length == 4 && args[2].equals("-o")) {
+ outstream = new FileOutputStream(args[3]);
+ } else {
+ usage();
+ return;
+ }
+ } else {
+ outstream = System.out;
+ }
+ Writer output = new OutputStreamWriter(outstream);
+ output = new BufferedWriter(output);
+
+ int repeat = 1;
+ if (args.length > 4) {
+ repeat = Integer.parseInt(args[4]);
+ }
+
+ Object [] emptyArgs = new Object[0];
+ int character;
+ while ((character = reader.read()) != -1) {
+ char ch = (char) character;
+ if (Character.isWhitespace((char) ch)) {
+ if (input.length() > 0) {
+ stemmer.setCurrent(input.toString());
+ for (int i = repeat; i != 0; i--) {
+ stemMethod.invoke(stemmer, emptyArgs);
+ }
+ output.write(stemmer.getCurrent());
+ output.write('\n');
+ input.delete(0, input.length());
+ }
+ } else {
+ input.append(Character.toLowerCase(ch));
+ }
+ }
+ output.flush();
+ }
+}
diff --git a/contrib/snowball/src/java/net/sf/snowball/ext/DanishStemmer.java b/contrib/snowball/src/java/org/tartarus/snowball/ext/DanishStemmer.java
similarity index 79%
rename from contrib/snowball/src/java/net/sf/snowball/ext/DanishStemmer.java
rename to contrib/snowball/src/java/org/tartarus/snowball/ext/DanishStemmer.java
index a84d3d6f407..81bd85c5a22 100644
--- a/contrib/snowball/src/java/net/sf/snowball/ext/DanishStemmer.java
+++ b/contrib/snowball/src/java/org/tartarus/snowball/ext/DanishStemmer.java
@@ -1,8 +1,8 @@
// This file was generated automatically by the Snowball to Java compiler
-package net.sf.snowball.ext;
-import net.sf.snowball.SnowballProgram;
-import net.sf.snowball.Among;
+package org.tartarus.snowball.ext;
+import org.tartarus.snowball.SnowballProgram;
+import org.tartarus.snowball.Among;
/**
* Generated class implementing code defined by a snowball script.
@@ -63,10 +63,12 @@ public class DanishStemmer extends SnowballProgram {
private static final char g_s_ending[] = {239, 254, 42, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16 };
+ private int I_x;
private int I_p1;
private StringBuffer S_ch = new StringBuffer();
private void copy_from(DanishStemmer other) {
+ I_x = other.I_x;
I_p1 = other.I_p1;
S_ch = other.S_ch;
super.copy_from(other);
@@ -74,28 +76,44 @@ public class DanishStemmer extends SnowballProgram {
private boolean r_mark_regions() {
int v_1;
+ int v_2;
// (, line 29
I_p1 = limit;
- // goto, line 33
+ // test, line 33
+ v_1 = cursor;
+ // (, line 33
+ // hop, line 33
+ {
+ int c = cursor + 3;
+ if (0 > c || c > limit)
+ {
+ return false;
+ }
+ cursor = c;
+ }
+ // setmark x, line 33
+ I_x = cursor;
+ cursor = v_1;
+ // goto, line 34
golab0: while(true)
{
- v_1 = cursor;
+ v_2 = cursor;
lab1: do {
if (!(in_grouping(g_v, 97, 248)))
{
break lab1;
}
- cursor = v_1;
+ cursor = v_2;
break golab0;
} while (false);
- cursor = v_1;
+ cursor = v_2;
if (cursor >= limit)
{
return false;
}
cursor++;
}
- // gopast, line 33
+ // gopast, line 34
golab2: while(true)
{
lab3: do {
@@ -111,16 +129,16 @@ public class DanishStemmer extends SnowballProgram {
}
cursor++;
}
- // setmark p1, line 33
+ // setmark p1, line 34
I_p1 = cursor;
- // try, line 34
+ // try, line 35
lab4: do {
- // (, line 34
- if (!(I_p1 < 3))
+ // (, line 35
+ if (!(I_p1 < I_x))
{
break lab4;
}
- I_p1 = 3;
+ I_p1 = I_x;
} while (false);
return true;
}
@@ -129,10 +147,10 @@ public class DanishStemmer extends SnowballProgram {
int among_var;
int v_1;
int v_2;
- // (, line 39
- // setlimit, line 40
+ // (, line 40
+ // setlimit, line 41
v_1 = limit - cursor;
- // tomark, line 40
+ // tomark, line 41
if (cursor < I_p1)
{
return false;
@@ -141,34 +159,34 @@ public class DanishStemmer extends SnowballProgram {
v_2 = limit_backward;
limit_backward = cursor;
cursor = limit - v_1;
- // (, line 40
- // [, line 40
+ // (, line 41
+ // [, line 41
ket = cursor;
- // substring, line 40
+ // substring, line 41
among_var = find_among_b(a_0, 32);
if (among_var == 0)
{
limit_backward = v_2;
return false;
}
- // ], line 40
+ // ], line 41
bra = cursor;
limit_backward = v_2;
switch(among_var) {
case 0:
return false;
case 1:
- // (, line 47
- // delete, line 47
+ // (, line 48
+ // delete, line 48
slice_del();
break;
case 2:
- // (, line 49
+ // (, line 50
if (!(in_grouping_b(g_s_ending, 97, 229)))
{
return false;
}
- // delete, line 49
+ // delete, line 50
slice_del();
break;
}
@@ -179,13 +197,13 @@ public class DanishStemmer extends SnowballProgram {
int v_1;
int v_2;
int v_3;
- // (, line 53
- // test, line 54
- v_1 = limit - cursor;
// (, line 54
- // setlimit, line 55
+ // test, line 55
+ v_1 = limit - cursor;
+ // (, line 55
+ // setlimit, line 56
v_2 = limit - cursor;
- // tomark, line 55
+ // tomark, line 56
if (cursor < I_p1)
{
return false;
@@ -194,28 +212,28 @@ public class DanishStemmer extends SnowballProgram {
v_3 = limit_backward;
limit_backward = cursor;
cursor = limit - v_2;
- // (, line 55
- // [, line 55
+ // (, line 56
+ // [, line 56
ket = cursor;
- // substring, line 55
+ // substring, line 56
if (find_among_b(a_1, 4) == 0)
{
limit_backward = v_3;
return false;
}
- // ], line 55
+ // ], line 56
bra = cursor;
limit_backward = v_3;
cursor = limit - v_1;
- // next, line 61
+ // next, line 62
if (cursor <= limit_backward)
{
return false;
}
cursor--;
- // ], line 61
+ // ], line 62
bra = cursor;
- // delete, line 61
+ // delete, line 62
slice_del();
return true;
}
@@ -226,32 +244,32 @@ public class DanishStemmer extends SnowballProgram {
int v_2;
int v_3;
int v_4;
- // (, line 64
- // do, line 65
+ // (, line 65
+ // do, line 66
v_1 = limit - cursor;
lab0: do {
- // (, line 65
- // [, line 65
+ // (, line 66
+ // [, line 66
ket = cursor;
- // literal, line 65
+ // literal, line 66
if (!(eq_s_b(2, "st")))
{
break lab0;
}
- // ], line 65
+ // ], line 66
bra = cursor;
- // literal, line 65
+ // literal, line 66
if (!(eq_s_b(2, "ig")))
{
break lab0;
}
- // delete, line 65
+ // delete, line 66
slice_del();
} while (false);
cursor = limit - v_1;
- // setlimit, line 66
+ // setlimit, line 67
v_2 = limit - cursor;
- // tomark, line 66
+ // tomark, line 67
if (cursor < I_p1)
{
return false;
@@ -260,30 +278,30 @@ public class DanishStemmer extends SnowballProgram {
v_3 = limit_backward;
limit_backward = cursor;
cursor = limit - v_2;
- // (, line 66
- // [, line 66
+ // (, line 67
+ // [, line 67
ket = cursor;
- // substring, line 66
+ // substring, line 67
among_var = find_among_b(a_2, 5);
if (among_var == 0)
{
limit_backward = v_3;
return false;
}
- // ], line 66
+ // ], line 67
bra = cursor;
limit_backward = v_3;
switch(among_var) {
case 0:
return false;
case 1:
- // (, line 69
- // delete, line 69
+ // (, line 70
+ // delete, line 70
slice_del();
- // do, line 69
+ // do, line 70
v_4 = limit - cursor;
lab1: do {
- // call consonant_pair, line 69
+ // call consonant_pair, line 70
if (!r_consonant_pair())
{
break lab1;
@@ -292,8 +310,8 @@ public class DanishStemmer extends SnowballProgram {
cursor = limit - v_4;
break;
case 2:
- // (, line 71
- // <-, line 71
+ // (, line 72
+ // <-, line 72
slice_from("l\u00F8s");
break;
}
@@ -303,10 +321,10 @@ public class DanishStemmer extends SnowballProgram {
private boolean r_undouble() {
int v_1;
int v_2;
- // (, line 74
- // setlimit, line 75
+ // (, line 75
+ // setlimit, line 76
v_1 = limit - cursor;
- // tomark, line 75
+ // tomark, line 76
if (cursor < I_p1)
{
return false;
@@ -315,25 +333,25 @@ public class DanishStemmer extends SnowballProgram {
v_2 = limit_backward;
limit_backward = cursor;
cursor = limit - v_1;
- // (, line 75
- // [, line 75
+ // (, line 76
+ // [, line 76
ket = cursor;
if (!(out_grouping_b(g_v, 97, 248)))
{
limit_backward = v_2;
return false;
}
- // ], line 75
+ // ], line 76
bra = cursor;
- // -> ch, line 75
+ // -> ch, line 76
S_ch = slice_to(S_ch);
limit_backward = v_2;
- // name ch, line 76
+ // name ch, line 77
if (!(eq_v_b(S_ch)))
{
return false;
}
- // delete, line 77
+ // delete, line 78
slice_del();
return true;
}
@@ -344,54 +362,54 @@ public class DanishStemmer extends SnowballProgram {
int v_3;
int v_4;
int v_5;
- // (, line 81
- // do, line 83
+ // (, line 82
+ // do, line 84
v_1 = cursor;
lab0: do {
- // call mark_regions, line 83
+ // call mark_regions, line 84
if (!r_mark_regions())
{
break lab0;
}
} while (false);
cursor = v_1;
- // backwards, line 84
+ // backwards, line 85
limit_backward = cursor; cursor = limit;
- // (, line 84
- // do, line 85
+ // (, line 85
+ // do, line 86
v_2 = limit - cursor;
lab1: do {
- // call main_suffix, line 85
+ // call main_suffix, line 86
if (!r_main_suffix())
{
break lab1;
}
} while (false);
cursor = limit - v_2;
- // do, line 86
+ // do, line 87
v_3 = limit - cursor;
lab2: do {
- // call consonant_pair, line 86
+ // call consonant_pair, line 87
if (!r_consonant_pair())
{
break lab2;
}
} while (false);
cursor = limit - v_3;
- // do, line 87
+ // do, line 88
v_4 = limit - cursor;
lab3: do {
- // call other_suffix, line 87
+ // call other_suffix, line 88
if (!r_other_suffix())
{
break lab3;
}
} while (false);
cursor = limit - v_4;
- // do, line 88
+ // do, line 89
v_5 = limit - cursor;
lab4: do {
- // call undouble, line 88
+ // call undouble, line 89
if (!r_undouble())
{
break lab4;
diff --git a/contrib/snowball/src/java/net/sf/snowball/ext/DutchStemmer.java b/contrib/snowball/src/java/org/tartarus/snowball/ext/DutchStemmer.java
similarity index 99%
rename from contrib/snowball/src/java/net/sf/snowball/ext/DutchStemmer.java
rename to contrib/snowball/src/java/org/tartarus/snowball/ext/DutchStemmer.java
index 531db49d618..a719993ae90 100644
--- a/contrib/snowball/src/java/net/sf/snowball/ext/DutchStemmer.java
+++ b/contrib/snowball/src/java/org/tartarus/snowball/ext/DutchStemmer.java
@@ -1,8 +1,8 @@
// This file was generated automatically by the Snowball to Java compiler
-package net.sf.snowball.ext;
-import net.sf.snowball.SnowballProgram;
-import net.sf.snowball.Among;
+package org.tartarus.snowball.ext;
+import org.tartarus.snowball.SnowballProgram;
+import org.tartarus.snowball.Among;
/**
* Generated class implementing code defined by a snowball script.
diff --git a/contrib/snowball/src/java/net/sf/snowball/ext/EnglishStemmer.java b/contrib/snowball/src/java/org/tartarus/snowball/ext/EnglishStemmer.java
similarity index 72%
rename from contrib/snowball/src/java/net/sf/snowball/ext/EnglishStemmer.java
rename to contrib/snowball/src/java/org/tartarus/snowball/ext/EnglishStemmer.java
index f662ab370eb..9ca87a3898f 100644
--- a/contrib/snowball/src/java/net/sf/snowball/ext/EnglishStemmer.java
+++ b/contrib/snowball/src/java/org/tartarus/snowball/ext/EnglishStemmer.java
@@ -1,8 +1,8 @@
// This file was generated automatically by the Snowball to Java compiler
-package net.sf.snowball.ext;
-import net.sf.snowball.SnowballProgram;
-import net.sf.snowball.Among;
+package org.tartarus.snowball.ext;
+import org.tartarus.snowball.SnowballProgram;
+import org.tartarus.snowball.Among;
/**
* Generated class implementing code defined by a snowball script.
@@ -10,10 +10,18 @@ import net.sf.snowball.Among;
public class EnglishStemmer extends SnowballProgram {
private Among a_0[] = {
+ new Among ( "arsen", -1, -1, "", this),
+ new Among ( "commun", -1, -1, "", this),
new Among ( "gener", -1, -1, "", this)
};
private Among a_1[] = {
+ new Among ( "'", -1, 1, "", this),
+ new Among ( "'s'", 0, 1, "", this),
+ new Among ( "'s", -1, 1, "", this)
+ };
+
+ private Among a_2[] = {
new Among ( "ied", -1, 2, "", this),
new Among ( "s", -1, 3, "", this),
new Among ( "ies", 1, 2, "", this),
@@ -22,7 +30,7 @@ public class EnglishStemmer extends SnowballProgram {
new Among ( "us", 1, -1, "", this)
};
- private Among a_2[] = {
+ private Among a_3[] = {
new Among ( "", -1, 3, "", this),
new Among ( "bb", 0, 2, "", this),
new Among ( "dd", 0, 2, "", this),
@@ -38,7 +46,7 @@ public class EnglishStemmer extends SnowballProgram {
new Among ( "iz", 0, 1, "", this)
};
- private Among a_3[] = {
+ private Among a_4[] = {
new Among ( "ed", -1, 2, "", this),
new Among ( "eed", 0, 1, "", this),
new Among ( "ing", -1, 2, "", this),
@@ -47,7 +55,7 @@ public class EnglishStemmer extends SnowballProgram {
new Among ( "ingly", -1, 2, "", this)
};
- private Among a_4[] = {
+ private Among a_5[] = {
new Among ( "anci", -1, 3, "", this),
new Among ( "enci", -1, 2, "", this),
new Among ( "ogi", -1, 13, "", this),
@@ -74,7 +82,7 @@ public class EnglishStemmer extends SnowballProgram {
new Among ( "ousness", -1, 10, "", this)
};
- private Among a_5[] = {
+ private Among a_6[] = {
new Among ( "icate", -1, 4, "", this),
new Among ( "ative", -1, 6, "", this),
new Among ( "alize", -1, 3, "", this),
@@ -86,7 +94,7 @@ public class EnglishStemmer extends SnowballProgram {
new Among ( "ness", -1, 5, "", this)
};
- private Among a_6[] = {
+ private Among a_7[] = {
new Among ( "ic", -1, 1, "", this),
new Among ( "ance", -1, 1, "", this),
new Among ( "ence", -1, 1, "", this),
@@ -107,12 +115,12 @@ public class EnglishStemmer extends SnowballProgram {
new Among ( "ement", 16, 1, "", this)
};
- private Among a_7[] = {
+ private Among a_8[] = {
new Among ( "e", -1, 1, "", this),
new Among ( "l", -1, 2, "", this)
};
- private Among a_8[] = {
+ private Among a_9[] = {
new Among ( "succeed", -1, -1, "", this),
new Among ( "proceed", -1, -1, "", this),
new Among ( "exceed", -1, -1, "", this),
@@ -123,7 +131,7 @@ public class EnglishStemmer extends SnowballProgram {
new Among ( "outing", -1, -1, "", this)
};
- private Among a_9[] = {
+ private Among a_10[] = {
new Among ( "andes", -1, -1, "", this),
new Among ( "atlas", -1, -1, "", this),
new Among ( "bias", -1, -1, "", this),
@@ -166,108 +174,122 @@ public class EnglishStemmer extends SnowballProgram {
int v_2;
int v_3;
int v_4;
- // (, line 23
- // unset Y_found, line 24
+ int v_5;
+ // (, line 25
+ // unset Y_found, line 26
B_Y_found = false;
- // do, line 25
+ // do, line 27
v_1 = cursor;
lab0: do {
- // (, line 25
- // [, line 25
+ // (, line 27
+ // [, line 27
bra = cursor;
- // literal, line 25
- if (!(eq_s(1, "y")))
+ // literal, line 27
+ if (!(eq_s(1, "'")))
{
break lab0;
}
- // ], line 25
+ // ], line 27
ket = cursor;
- if (!(in_grouping(g_v, 97, 121)))
+ // delete, line 27
+ slice_del();
+ } while (false);
+ cursor = v_1;
+ // do, line 28
+ v_2 = cursor;
+ lab1: do {
+ // (, line 28
+ // [, line 28
+ bra = cursor;
+ // literal, line 28
+ if (!(eq_s(1, "y")))
{
- break lab0;
+ break lab1;
}
- // <-, line 25
+ // ], line 28
+ ket = cursor;
+ // <-, line 28
slice_from("Y");
- // set Y_found, line 25
+ // set Y_found, line 28
B_Y_found = true;
} while (false);
- cursor = v_1;
- // do, line 26
- v_2 = cursor;
- lab1: do {
- // repeat, line 26
- replab2: while(true)
+ cursor = v_2;
+ // do, line 29
+ v_3 = cursor;
+ lab2: do {
+ // repeat, line 29
+ replab3: while(true)
{
- v_3 = cursor;
- lab3: do {
- // (, line 26
- // goto, line 26
- golab4: while(true)
+ v_4 = cursor;
+ lab4: do {
+ // (, line 29
+ // goto, line 29
+ golab5: while(true)
{
- v_4 = cursor;
- lab5: do {
- // (, line 26
+ v_5 = cursor;
+ lab6: do {
+ // (, line 29
if (!(in_grouping(g_v, 97, 121)))
{
- break lab5;
+ break lab6;
}
- // [, line 26
+ // [, line 29
bra = cursor;
- // literal, line 26
+ // literal, line 29
if (!(eq_s(1, "y")))
{
- break lab5;
+ break lab6;
}
- // ], line 26
+ // ], line 29
ket = cursor;
- cursor = v_4;
- break golab4;
+ cursor = v_5;
+ break golab5;
} while (false);
- cursor = v_4;
+ cursor = v_5;
if (cursor >= limit)
{
- break lab3;
+ break lab4;
}
cursor++;
}
- // <-, line 26
+ // <-, line 29
slice_from("Y");
- // set Y_found, line 26
+ // set Y_found, line 29
B_Y_found = true;
- continue replab2;
+ continue replab3;
} while (false);
- cursor = v_3;
- break replab2;
+ cursor = v_4;
+ break replab3;
}
} while (false);
- cursor = v_2;
+ cursor = v_3;
return true;
}
private boolean r_mark_regions() {
int v_1;
int v_2;
- // (, line 29
+ // (, line 32
I_p1 = limit;
I_p2 = limit;
- // do, line 32
+ // do, line 35
v_1 = cursor;
lab0: do {
- // (, line 32
- // or, line 36
+ // (, line 35
+ // or, line 41
lab1: do {
v_2 = cursor;
lab2: do {
- // among, line 33
- if (find_among(a_0, 1) == 0)
+ // among, line 36
+ if (find_among(a_0, 3) == 0)
{
break lab2;
}
break lab1;
} while (false);
cursor = v_2;
- // (, line 36
- // gopast, line 36
+ // (, line 41
+ // gopast, line 41
golab3: while(true)
{
lab4: do {
@@ -283,7 +305,7 @@ public class EnglishStemmer extends SnowballProgram {
}
cursor++;
}
- // gopast, line 36
+ // gopast, line 41
golab5: while(true)
{
lab6: do {
@@ -300,9 +322,9 @@ public class EnglishStemmer extends SnowballProgram {
cursor++;
}
} while (false);
- // setmark p1, line 37
+ // setmark p1, line 42
I_p1 = cursor;
- // gopast, line 38
+ // gopast, line 43
golab7: while(true)
{
lab8: do {
@@ -318,7 +340,7 @@ public class EnglishStemmer extends SnowballProgram {
}
cursor++;
}
- // gopast, line 38
+ // gopast, line 43
golab9: while(true)
{
lab10: do {
@@ -334,7 +356,7 @@ public class EnglishStemmer extends SnowballProgram {
}
cursor++;
}
- // setmark p2, line 38
+ // setmark p2, line 43
I_p2 = cursor;
} while (false);
cursor = v_1;
@@ -343,12 +365,12 @@ public class EnglishStemmer extends SnowballProgram {
private boolean r_shortv() {
int v_1;
- // (, line 44
- // or, line 46
+ // (, line 49
+ // or, line 51
lab0: do {
v_1 = limit - cursor;
lab1: do {
- // (, line 45
+ // (, line 50
if (!(out_grouping_b(g_v_WXY, 89, 121)))
{
break lab1;
@@ -364,7 +386,7 @@ public class EnglishStemmer extends SnowballProgram {
break lab0;
} while (false);
cursor = limit - v_1;
- // (, line 47
+ // (, line 52
if (!(out_grouping_b(g_v, 97, 121)))
{
return false;
@@ -373,7 +395,7 @@ public class EnglishStemmer extends SnowballProgram {
{
return false;
}
- // atlimit, line 47
+ // atlimit, line 52
if (cursor > limit_backward)
{
return false;
@@ -401,69 +423,94 @@ public class EnglishStemmer extends SnowballProgram {
private boolean r_Step_1a() {
int among_var;
int v_1;
- // (, line 53
- // [, line 54
+ int v_2;
+ // (, line 58
+ // try, line 59
+ v_1 = limit - cursor;
+ lab0: do {
+ // (, line 59
+ // [, line 60
+ ket = cursor;
+ // substring, line 60
+ among_var = find_among_b(a_1, 3);
+ if (among_var == 0)
+ {
+ cursor = limit - v_1;
+ break lab0;
+ }
+ // ], line 60
+ bra = cursor;
+ switch(among_var) {
+ case 0:
+ cursor = limit - v_1;
+ break lab0;
+ case 1:
+ // (, line 62
+ // delete, line 62
+ slice_del();
+ break;
+ }
+ } while (false);
+ // [, line 65
ket = cursor;
- // substring, line 54
- among_var = find_among_b(a_1, 6);
+ // substring, line 65
+ among_var = find_among_b(a_2, 6);
if (among_var == 0)
{
return false;
}
- // ], line 54
+ // ], line 65
bra = cursor;
switch(among_var) {
case 0:
return false;
case 1:
- // (, line 55
- // <-, line 55
+ // (, line 66
+ // <-, line 66
slice_from("ss");
break;
case 2:
- // (, line 57
- // or, line 57
- lab0: do {
- v_1 = limit - cursor;
- lab1: do {
- // (, line 57
- // next, line 57
- if (cursor <= limit_backward)
- {
- break lab1;
- }
- cursor--;
- // atlimit, line 57
- if (cursor > limit_backward)
+ // (, line 68
+ // or, line 68
+ lab1: do {
+ v_2 = limit - cursor;
+ lab2: do {
+ // (, line 68
+ // hop, line 68
{
- break lab1;
+ int c = cursor - 2;
+ if (limit_backward > c || c > limit)
+ {
+ break lab2;
+ }
+ cursor = c;
}
- // <-, line 57
- slice_from("ie");
- break lab0;
+ // <-, line 68
+ slice_from("i");
+ break lab1;
} while (false);
- cursor = limit - v_1;
- // <-, line 57
- slice_from("i");
+ cursor = limit - v_2;
+ // <-, line 68
+ slice_from("ie");
} while (false);
break;
case 3:
- // (, line 58
- // next, line 58
+ // (, line 69
+ // next, line 69
if (cursor <= limit_backward)
{
return false;
}
cursor--;
- // gopast, line 58
- golab2: while(true)
+ // gopast, line 69
+ golab3: while(true)
{
- lab3: do {
+ lab4: do {
if (!(in_grouping_b(g_v, 97, 121)))
{
- break lab3;
+ break lab4;
}
- break golab2;
+ break golab3;
} while (false);
if (cursor <= limit_backward)
{
@@ -471,7 +518,7 @@ public class EnglishStemmer extends SnowballProgram {
}
cursor--;
}
- // delete, line 58
+ // delete, line 69
slice_del();
break;
}
@@ -483,35 +530,35 @@ public class EnglishStemmer extends SnowballProgram {
int v_1;
int v_3;
int v_4;
- // (, line 63
- // [, line 64
+ // (, line 74
+ // [, line 75
ket = cursor;
- // substring, line 64
- among_var = find_among_b(a_3, 6);
+ // substring, line 75
+ among_var = find_among_b(a_4, 6);
if (among_var == 0)
{
return false;
}
- // ], line 64
+ // ], line 75
bra = cursor;
switch(among_var) {
case 0:
return false;
case 1:
- // (, line 66
- // call R1, line 66
+ // (, line 77
+ // call R1, line 77
if (!r_R1())
{
return false;
}
- // <-, line 66
+ // <-, line 77
slice_from("ee");
break;
case 2:
- // (, line 68
- // test, line 69
+ // (, line 79
+ // test, line 80
v_1 = limit - cursor;
- // gopast, line 69
+ // gopast, line 80
golab0: while(true)
{
lab1: do {
@@ -528,12 +575,12 @@ public class EnglishStemmer extends SnowballProgram {
cursor--;
}
cursor = limit - v_1;
- // delete, line 69
+ // delete, line 80
slice_del();
- // test, line 70
+ // test, line 81
v_3 = limit - cursor;
- // substring, line 70
- among_var = find_among_b(a_2, 13);
+ // substring, line 81
+ among_var = find_among_b(a_3, 13);
if (among_var == 0)
{
return false;
@@ -543,8 +590,8 @@ public class EnglishStemmer extends SnowballProgram {
case 0:
return false;
case 1:
- // (, line 72
- // <+, line 72
+ // (, line 83
+ // <+, line 83
{
int c = cursor;
insert(cursor, cursor, "e");
@@ -552,36 +599,36 @@ public class EnglishStemmer extends SnowballProgram {
}
break;
case 2:
- // (, line 75
- // [, line 75
+ // (, line 86
+ // [, line 86
ket = cursor;
- // next, line 75
+ // next, line 86
if (cursor <= limit_backward)
{
return false;
}
cursor--;
- // ], line 75
+ // ], line 86
bra = cursor;
- // delete, line 75
+ // delete, line 86
slice_del();
break;
case 3:
- // (, line 76
- // atmark, line 76
+ // (, line 87
+ // atmark, line 87
if (cursor != I_p1)
{
return false;
}
- // test, line 76
+ // test, line 87
v_4 = limit - cursor;
- // call shortv, line 76
+ // call shortv, line 87
if (!r_shortv())
{
return false;
}
cursor = limit - v_4;
- // <+, line 76
+ // <+, line 87
{
int c = cursor;
insert(cursor, cursor, "e");
@@ -597,14 +644,14 @@ public class EnglishStemmer extends SnowballProgram {
private boolean r_Step_1c() {
int v_1;
int v_2;
- // (, line 82
- // [, line 83
+ // (, line 93
+ // [, line 94
ket = cursor;
- // or, line 83
+ // or, line 94
lab0: do {
v_1 = limit - cursor;
lab1: do {
- // literal, line 83
+ // literal, line 94
if (!(eq_s_b(1, "y")))
{
break lab1;
@@ -612,23 +659,23 @@ public class EnglishStemmer extends SnowballProgram {
break lab0;
} while (false);
cursor = limit - v_1;
- // literal, line 83
+ // literal, line 94
if (!(eq_s_b(1, "Y")))
{
return false;
}
} while (false);
- // ], line 83
+ // ], line 94
bra = cursor;
if (!(out_grouping_b(g_v, 97, 121)))
{
return false;
}
- // not, line 84
+ // not, line 95
{
v_2 = limit - cursor;
lab2: do {
- // atlimit, line 84
+ // atlimit, line 95
if (cursor > limit_backward)
{
break lab2;
@@ -637,25 +684,25 @@ public class EnglishStemmer extends SnowballProgram {
} while (false);
cursor = limit - v_2;
}
- // <-, line 85
+ // <-, line 96
slice_from("i");
return true;
}
private boolean r_Step_2() {
int among_var;
- // (, line 88
- // [, line 89
+ // (, line 99
+ // [, line 100
ket = cursor;
- // substring, line 89
- among_var = find_among_b(a_4, 24);
+ // substring, line 100
+ among_var = find_among_b(a_5, 24);
if (among_var == 0)
{
return false;
}
- // ], line 89
+ // ], line 100
bra = cursor;
- // call R1, line 89
+ // call R1, line 100
if (!r_R1())
{
return false;
@@ -664,92 +711,92 @@ public class EnglishStemmer extends SnowballProgram {
case 0:
return false;
case 1:
- // (, line 90
- // <-, line 90
+ // (, line 101
+ // <-, line 101
slice_from("tion");
break;
case 2:
- // (, line 91
- // <-, line 91
+ // (, line 102
+ // <-, line 102
slice_from("ence");
break;
case 3:
- // (, line 92
- // <-, line 92
+ // (, line 103
+ // <-, line 103
slice_from("ance");
break;
case 4:
- // (, line 93
- // <-, line 93
+ // (, line 104
+ // <-, line 104
slice_from("able");
break;
case 5:
- // (, line 94
- // <-, line 94
+ // (, line 105
+ // <-, line 105
slice_from("ent");
break;
case 6:
- // (, line 96
- // <-, line 96
+ // (, line 107
+ // <-, line 107
slice_from("ize");
break;
case 7:
- // (, line 98
- // <-, line 98
+ // (, line 109
+ // <-, line 109
slice_from("ate");
break;
case 8:
- // (, line 100
- // <-, line 100
+ // (, line 111
+ // <-, line 111
slice_from("al");
break;
case 9:
- // (, line 101
- // <-, line 101
+ // (, line 112
+ // <-, line 112
slice_from("ful");
break;
case 10:
- // (, line 103
- // <-, line 103
+ // (, line 114
+ // <-, line 114
slice_from("ous");
break;
case 11:
- // (, line 105
- // <-, line 105
+ // (, line 116
+ // <-, line 116
slice_from("ive");
break;
case 12:
- // (, line 107
- // <-, line 107
+ // (, line 118
+ // <-, line 118
slice_from("ble");
break;
case 13:
- // (, line 108
- // literal, line 108
+ // (, line 119
+ // literal, line 119
if (!(eq_s_b(1, "l")))
{
return false;
}
- // <-, line 108
+ // <-, line 119
slice_from("og");
break;
case 14:
- // (, line 109
- // <-, line 109
+ // (, line 120
+ // <-, line 120
slice_from("ful");
break;
case 15:
- // (, line 110
- // <-, line 110
+ // (, line 121
+ // <-, line 121
slice_from("less");
break;
case 16:
- // (, line 111
+ // (, line 122
if (!(in_grouping_b(g_valid_LI, 99, 116)))
{
return false;
}
- // delete, line 111
+ // delete, line 122
slice_del();
break;
}
@@ -758,18 +805,18 @@ public class EnglishStemmer extends SnowballProgram {
private boolean r_Step_3() {
int among_var;
- // (, line 115
- // [, line 116
+ // (, line 126
+ // [, line 127
ket = cursor;
- // substring, line 116
- among_var = find_among_b(a_5, 9);
+ // substring, line 127
+ among_var = find_among_b(a_6, 9);
if (among_var == 0)
{
return false;
}
- // ], line 116
+ // ], line 127
bra = cursor;
- // call R1, line 116
+ // call R1, line 127
if (!r_R1())
{
return false;
@@ -778,38 +825,38 @@ public class EnglishStemmer extends SnowballProgram {
case 0:
return false;
case 1:
- // (, line 117
- // <-, line 117
+ // (, line 128
+ // <-, line 128
slice_from("tion");
break;
case 2:
- // (, line 118
- // <-, line 118
+ // (, line 129
+ // <-, line 129
slice_from("ate");
break;
case 3:
- // (, line 119
- // <-, line 119
+ // (, line 130
+ // <-, line 130
slice_from("al");
break;
case 4:
- // (, line 121
- // <-, line 121
+ // (, line 132
+ // <-, line 132
slice_from("ic");
break;
case 5:
- // (, line 123
- // delete, line 123
+ // (, line 134
+ // delete, line 134
slice_del();
break;
case 6:
- // (, line 125
- // call R2, line 125
+ // (, line 136
+ // call R2, line 136
if (!r_R2())
{
return false;
}
- // delete, line 125
+ // delete, line 136
slice_del();
break;
}
@@ -819,18 +866,18 @@ public class EnglishStemmer extends SnowballProgram {
private boolean r_Step_4() {
int among_var;
int v_1;
- // (, line 129
- // [, line 130
+ // (, line 140
+ // [, line 141
ket = cursor;
- // substring, line 130
- among_var = find_among_b(a_6, 18);
+ // substring, line 141
+ among_var = find_among_b(a_7, 18);
if (among_var == 0)
{
return false;
}
- // ], line 130
+ // ], line 141
bra = cursor;
- // call R2, line 130
+ // call R2, line 141
if (!r_R2())
{
return false;
@@ -839,17 +886,17 @@ public class EnglishStemmer extends SnowballProgram {
case 0:
return false;
case 1:
- // (, line 133
- // delete, line 133
+ // (, line 144
+ // delete, line 144
slice_del();
break;
case 2:
- // (, line 134
- // or, line 134
+ // (, line 145
+ // or, line 145
lab0: do {
v_1 = limit - cursor;
lab1: do {
- // literal, line 134
+ // literal, line 145
if (!(eq_s_b(1, "s")))
{
break lab1;
@@ -857,13 +904,13 @@ public class EnglishStemmer extends SnowballProgram {
break lab0;
} while (false);
cursor = limit - v_1;
- // literal, line 134
+ // literal, line 145
if (!(eq_s_b(1, "t")))
{
return false;
}
} while (false);
- // delete, line 134
+ // delete, line 145
slice_del();
break;
}
@@ -874,27 +921,27 @@ public class EnglishStemmer extends SnowballProgram {
int among_var;
int v_1;
int v_2;
- // (, line 138
- // [, line 139
+ // (, line 149
+ // [, line 150
ket = cursor;
- // substring, line 139
- among_var = find_among_b(a_7, 2);
+ // substring, line 150
+ among_var = find_among_b(a_8, 2);
if (among_var == 0)
{
return false;
}
- // ], line 139
+ // ], line 150
bra = cursor;
switch(among_var) {
case 0:
return false;
case 1:
- // (, line 140
- // or, line 140
+ // (, line 151
+ // or, line 151
lab0: do {
v_1 = limit - cursor;
lab1: do {
- // call R2, line 140
+ // call R2, line 151
if (!r_R2())
{
break lab1;
@@ -902,17 +949,17 @@ public class EnglishStemmer extends SnowballProgram {
break lab0;
} while (false);
cursor = limit - v_1;
- // (, line 140
- // call R1, line 140
+ // (, line 151
+ // call R1, line 151
if (!r_R1())
{
return false;
}
- // not, line 140
+ // not, line 151
{
v_2 = limit - cursor;
lab2: do {
- // call shortv, line 140
+ // call shortv, line 151
if (!r_shortv())
{
break lab2;
@@ -922,22 +969,22 @@ public class EnglishStemmer extends SnowballProgram {
cursor = limit - v_2;
}
} while (false);
- // delete, line 140
+ // delete, line 151
slice_del();
break;
case 2:
- // (, line 141
- // call R2, line 141
+ // (, line 152
+ // call R2, line 152
if (!r_R2())
{
return false;
}
- // literal, line 141
+ // literal, line 152
if (!(eq_s_b(1, "l")))
{
return false;
}
- // delete, line 141
+ // delete, line 152
slice_del();
break;
}
@@ -945,17 +992,17 @@ public class EnglishStemmer extends SnowballProgram {
}
private boolean r_exception2() {
- // (, line 145
- // [, line 147
+ // (, line 156
+ // [, line 158
ket = cursor;
- // substring, line 147
- if (find_among_b(a_8, 8) == 0)
+ // substring, line 158
+ if (find_among_b(a_9, 8) == 0)
{
return false;
}
- // ], line 147
+ // ], line 158
bra = cursor;
- // atlimit, line 147
+ // atlimit, line 158
if (cursor > limit_backward)
{
return false;
@@ -965,18 +1012,18 @@ public class EnglishStemmer extends SnowballProgram {
private boolean r_exception1() {
int among_var;
- // (, line 157
- // [, line 159
+ // (, line 168
+ // [, line 170
bra = cursor;
- // substring, line 159
- among_var = find_among(a_9, 18);
+ // substring, line 170
+ among_var = find_among(a_10, 18);
if (among_var == 0)
{
return false;
}
- // ], line 159
+ // ], line 170
ket = cursor;
- // atlimit, line 159
+ // atlimit, line 170
if (cursor < limit)
{
return false;
@@ -985,58 +1032,58 @@ public class EnglishStemmer extends SnowballProgram {
case 0:
return false;
case 1:
- // (, line 163
- // <-, line 163
+ // (, line 174
+ // <-, line 174
slice_from("ski");
break;
case 2:
- // (, line 164
- // <-, line 164
+ // (, line 175
+ // <-, line 175
slice_from("sky");
break;
case 3:
- // (, line 165
- // <-, line 165
+ // (, line 176
+ // <-, line 176
slice_from("die");
break;
case 4:
- // (, line 166
- // <-, line 166
+ // (, line 177
+ // <-, line 177
slice_from("lie");
break;
case 5:
- // (, line 167
- // <-, line 167
+ // (, line 178
+ // <-, line 178
slice_from("tie");
break;
case 6:
- // (, line 171
- // <-, line 171
+ // (, line 182
+ // <-, line 182
slice_from("idl");
break;
case 7:
- // (, line 172
- // <-, line 172
+ // (, line 183
+ // <-, line 183
slice_from("gentl");
break;
case 8:
- // (, line 173
- // <-, line 173
+ // (, line 184
+ // <-, line 184
slice_from("ugli");
break;
case 9:
- // (, line 174
- // <-, line 174
+ // (, line 185
+ // <-, line 185
slice_from("earli");
break;
case 10:
- // (, line 175
- // <-, line 175
+ // (, line 186
+ // <-, line 186
slice_from("onli");
break;
case 11:
- // (, line 176
- // <-, line 176
+ // (, line 187
+ // <-, line 187
slice_from("singl");
break;
}
@@ -1046,32 +1093,32 @@ public class EnglishStemmer extends SnowballProgram {
private boolean r_postlude() {
int v_1;
int v_2;
- // (, line 192
- // Boolean test Y_found, line 192
+ // (, line 203
+ // Boolean test Y_found, line 203
if (!(B_Y_found))
{
return false;
}
- // repeat, line 192
+ // repeat, line 203
replab0: while(true)
{
v_1 = cursor;
lab1: do {
- // (, line 192
- // goto, line 192
+ // (, line 203
+ // goto, line 203
golab2: while(true)
{
v_2 = cursor;
lab3: do {
- // (, line 192
- // [, line 192
+ // (, line 203
+ // [, line 203
bra = cursor;
- // literal, line 192
+ // literal, line 203
if (!(eq_s(1, "Y")))
{
break lab3;
}
- // ], line 192
+ // ], line 203
ket = cursor;
cursor = v_2;
break golab2;
@@ -1083,7 +1130,7 @@ public class EnglishStemmer extends SnowballProgram {
}
cursor++;
}
- // <-, line 192
+ // <-, line 203
slice_from("y");
continue replab0;
} while (false);
@@ -1107,12 +1154,12 @@ public class EnglishStemmer extends SnowballProgram {
int v_11;
int v_12;
int v_13;
- // (, line 194
- // or, line 196
+ // (, line 205
+ // or, line 207
lab0: do {
v_1 = cursor;
lab1: do {
- // call exception1, line 196
+ // call exception1, line 207
if (!r_exception1())
{
break lab1;
@@ -1120,133 +1167,142 @@ public class EnglishStemmer extends SnowballProgram {
break lab0;
} while (false);
cursor = v_1;
- // (, line 196
- // test, line 198
- v_2 = cursor;
- // hop, line 198
- {
- int c = cursor + 3;
- if (0 > c || c > limit)
+ lab2: do {
+ // not, line 208
{
- return false;
+ v_2 = cursor;
+ lab3: do {
+ // hop, line 208
+ {
+ int c = cursor + 3;
+ if (0 > c || c > limit)
+ {
+ break lab3;
+ }
+ cursor = c;
+ }
+ break lab2;
+ } while (false);
+ cursor = v_2;
}
- cursor = c;
- }
- cursor = v_2;
- // do, line 199
+ break lab0;
+ } while (false);
+ cursor = v_1;
+ // (, line 208
+ // do, line 209
v_3 = cursor;
- lab2: do {
- // call prelude, line 199
+ lab4: do {
+ // call prelude, line 209
if (!r_prelude())
{
- break lab2;
+ break lab4;
}
} while (false);
cursor = v_3;
- // do, line 200
+ // do, line 210
v_4 = cursor;
- lab3: do {
- // call mark_regions, line 200
+ lab5: do {
+ // call mark_regions, line 210
if (!r_mark_regions())
{
- break lab3;
+ break lab5;
}
} while (false);
cursor = v_4;
- // backwards, line 201
+ // backwards, line 211
limit_backward = cursor; cursor = limit;
- // (, line 201
- // do, line 203
+ // (, line 211
+ // do, line 213
v_5 = limit - cursor;
- lab4: do {
- // call Step_1a, line 203
+ lab6: do {
+ // call Step_1a, line 213
if (!r_Step_1a())
{
- break lab4;
+ break lab6;
}
} while (false);
cursor = limit - v_5;
- // or, line 205
- lab5: do {
+ // or, line 215
+ lab7: do {
v_6 = limit - cursor;
- lab6: do {
- // call exception2, line 205
+ lab8: do {
+ // call exception2, line 215
if (!r_exception2())
{
- break lab6;
+ break lab8;
}
- break lab5;
+ break lab7;
} while (false);
cursor = limit - v_6;
- // (, line 205
- // do, line 207
+ // (, line 215
+ // do, line 217
v_7 = limit - cursor;
- lab7: do {
- // call Step_1b, line 207
+ lab9: do {
+ // call Step_1b, line 217
if (!r_Step_1b())
{
- break lab7;
+ break lab9;
}
} while (false);
cursor = limit - v_7;
- // do, line 208
+ // do, line 218
v_8 = limit - cursor;
- lab8: do {
- // call Step_1c, line 208
+ lab10: do {
+ // call Step_1c, line 218
if (!r_Step_1c())
{
- break lab8;
+ break lab10;
}
} while (false);
cursor = limit - v_8;
- // do, line 210
+ // do, line 220
v_9 = limit - cursor;
- lab9: do {
- // call Step_2, line 210
+ lab11: do {
+ // call Step_2, line 220
if (!r_Step_2())
{
- break lab9;
+ break lab11;
}
} while (false);
cursor = limit - v_9;
- // do, line 211
+ // do, line 221
v_10 = limit - cursor;
- lab10: do {
- // call Step_3, line 211
+ lab12: do {
+ // call Step_3, line 221
if (!r_Step_3())
{
- break lab10;
+ break lab12;
}
} while (false);
cursor = limit - v_10;
- // do, line 212
+ // do, line 222
v_11 = limit - cursor;
- lab11: do {
- // call Step_4, line 212
+ lab13: do {
+ // call Step_4, line 222
if (!r_Step_4())
{
- break lab11;
+ break lab13;
}
} while (false);
cursor = limit - v_11;
- // do, line 214
+ // do, line 224
v_12 = limit - cursor;
- lab12: do {
- // call Step_5, line 214
+ lab14: do {
+ // call Step_5, line 224
if (!r_Step_5())
{
- break lab12;
+ break lab14;
}
} while (false);
cursor = limit - v_12;
} while (false);
- cursor = limit_backward; // do, line 217
+ cursor = limit_backward; // do, line 227
v_13 = cursor;
- lab13: do {
- // call postlude, line 217
+ lab15: do {
+ // call postlude, line 227
if (!r_postlude())
{
- break lab13;
+ break lab15;
}
} while (false);
cursor = v_13;
diff --git a/contrib/snowball/src/java/net/sf/snowball/ext/FinnishStemmer.java b/contrib/snowball/src/java/org/tartarus/snowball/ext/FinnishStemmer.java
similarity index 96%
rename from contrib/snowball/src/java/net/sf/snowball/ext/FinnishStemmer.java
rename to contrib/snowball/src/java/org/tartarus/snowball/ext/FinnishStemmer.java
index 14609b462fc..420dd76971c 100644
--- a/contrib/snowball/src/java/net/sf/snowball/ext/FinnishStemmer.java
+++ b/contrib/snowball/src/java/org/tartarus/snowball/ext/FinnishStemmer.java
@@ -1,8 +1,8 @@
// This file was generated automatically by the Snowball to Java compiler
-package net.sf.snowball.ext;
-import net.sf.snowball.SnowballProgram;
-import net.sf.snowball.Among;
+package org.tartarus.snowball.ext;
+import org.tartarus.snowball.SnowballProgram;
+import org.tartarus.snowball.Among;
/**
* Generated class implementing code defined by a snowball script.
@@ -129,9 +129,9 @@ public class FinnishStemmer extends SnowballProgram {
private static final char g_AEI[] = {17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8 };
- private static final char g_v[] = {17, 65, 16, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 32 };
+ private static final char g_V1[] = {17, 65, 16, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 32 };
- private static final char g_V[] = {17, 65, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 32 };
+ private static final char g_V2[] = {17, 65, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 32 };
private static final char g_particle_end[] = {17, 97, 24, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 32 };
@@ -159,7 +159,7 @@ public class FinnishStemmer extends SnowballProgram {
{
v_1 = cursor;
lab1: do {
- if (!(in_grouping(g_v, 97, 246)))
+ if (!(in_grouping(g_V1, 97, 246)))
{
break lab1;
}
@@ -177,7 +177,7 @@ public class FinnishStemmer extends SnowballProgram {
golab2: while(true)
{
lab3: do {
- if (!(out_grouping(g_v, 97, 246)))
+ if (!(out_grouping(g_V1, 97, 246)))
{
break lab3;
}
@@ -196,7 +196,7 @@ public class FinnishStemmer extends SnowballProgram {
{
v_3 = cursor;
lab5: do {
- if (!(in_grouping(g_v, 97, 246)))
+ if (!(in_grouping(g_V1, 97, 246)))
{
break lab5;
}
@@ -214,7 +214,7 @@ public class FinnishStemmer extends SnowballProgram {
golab6: while(true)
{
lab7: do {
- if (!(out_grouping(g_v, 97, 246)))
+ if (!(out_grouping(g_V1, 97, 246)))
{
break lab7;
}
@@ -414,14 +414,14 @@ public class FinnishStemmer extends SnowballProgram {
{
return false;
}
- if (!(in_grouping_b(g_V, 97, 246)))
+ if (!(in_grouping_b(g_V2, 97, 246)))
{
return false;
}
return true;
}
- private boolean r_case() {
+ private boolean r_case_ending() {
int among_var;
int v_1;
int v_2;
@@ -545,11 +545,11 @@ public class FinnishStemmer extends SnowballProgram {
break;
case 8:
// (, line 119
- if (!(in_grouping_b(g_v, 97, 246)))
+ if (!(in_grouping_b(g_V1, 97, 246)))
{
return false;
}
- if (!(out_grouping_b(g_v, 97, 246)))
+ if (!(out_grouping_b(g_V1, 97, 246)))
{
return false;
}
@@ -690,7 +690,7 @@ public class FinnishStemmer extends SnowballProgram {
bra = cursor;
// test, line 162
v_3 = limit - cursor;
- if (!(in_grouping_b(g_v, 97, 246)))
+ if (!(in_grouping_b(g_V1, 97, 246)))
{
limit_backward = v_2;
return false;
@@ -810,7 +810,7 @@ public class FinnishStemmer extends SnowballProgram {
}
// ], line 175
bra = cursor;
- if (!(out_grouping_b(g_v, 97, 246)))
+ if (!(out_grouping_b(g_V1, 97, 246)))
{
break lab1;
}
@@ -881,7 +881,7 @@ public class FinnishStemmer extends SnowballProgram {
{
v_9 = limit - cursor;
lab7: do {
- if (!(out_grouping_b(g_v, 97, 246)))
+ if (!(out_grouping_b(g_V1, 97, 246)))
{
break lab7;
}
@@ -966,8 +966,8 @@ public class FinnishStemmer extends SnowballProgram {
// do, line 190
v_4 = limit - cursor;
lab3: do {
- // call case, line 190
- if (!r_case())
+ // call case_ending, line 190
+ if (!r_case_ending())
{
break lab3;
}
diff --git a/contrib/snowball/src/java/net/sf/snowball/ext/FrenchStemmer.java b/contrib/snowball/src/java/org/tartarus/snowball/ext/FrenchStemmer.java
similarity index 77%
rename from contrib/snowball/src/java/net/sf/snowball/ext/FrenchStemmer.java
rename to contrib/snowball/src/java/org/tartarus/snowball/ext/FrenchStemmer.java
index a76f0a5a6b5..04485b2b76a 100644
--- a/contrib/snowball/src/java/net/sf/snowball/ext/FrenchStemmer.java
+++ b/contrib/snowball/src/java/org/tartarus/snowball/ext/FrenchStemmer.java
@@ -1,8 +1,8 @@
// This file was generated automatically by the Snowball to Java compiler
-package net.sf.snowball.ext;
-import net.sf.snowball.SnowballProgram;
-import net.sf.snowball.Among;
+package org.tartarus.snowball.ext;
+import org.tartarus.snowball.SnowballProgram;
+import org.tartarus.snowball.Among;
/**
* Generated class implementing code defined by a snowball script.
@@ -10,13 +10,19 @@ import net.sf.snowball.Among;
public class FrenchStemmer extends SnowballProgram {
private Among a_0[] = {
+ new Among ( "col", -1, -1, "", this),
+ new Among ( "par", -1, -1, "", this),
+ new Among ( "tap", -1, -1, "", this)
+ };
+
+ private Among a_1[] = {
new Among ( "", -1, 4, "", this),
new Among ( "I", 0, 1, "", this),
new Among ( "U", 0, 2, "", this),
new Among ( "Y", 0, 3, "", this)
};
- private Among a_1[] = {
+ private Among a_2[] = {
new Among ( "iqU", -1, 3, "", this),
new Among ( "abl", -1, 3, "", this),
new Among ( "I\u00E8r", -1, 4, "", this),
@@ -25,13 +31,13 @@ public class FrenchStemmer extends SnowballProgram {
new Among ( "iv", -1, 1, "", this)
};
- private Among a_2[] = {
+ private Among a_3[] = {
new Among ( "ic", -1, 2, "", this),
new Among ( "abil", -1, 1, "", this),
new Among ( "iv", -1, 3, "", this)
};
- private Among a_3[] = {
+ private Among a_4[] = {
new Among ( "iqUe", -1, 1, "", this),
new Among ( "atrice", -1, 2, "", this),
new Among ( "ance", -1, 1, "", this),
@@ -77,7 +83,7 @@ public class FrenchStemmer extends SnowballProgram {
new Among ( "it\u00E9", -1, 7, "", this)
};
- private Among a_4[] = {
+ private Among a_5[] = {
new Among ( "ira", -1, 1, "", this),
new Among ( "ie", -1, 1, "", this),
new Among ( "isse", -1, 1, "", this),
@@ -115,7 +121,7 @@ public class FrenchStemmer extends SnowballProgram {
new Among ( "issez", -1, 1, "", this)
};
- private Among a_5[] = {
+ private Among a_6[] = {
new Among ( "a", -1, 3, "", this),
new Among ( "era", 0, 2, "", this),
new Among ( "asse", -1, 3, "", this),
@@ -156,7 +162,7 @@ public class FrenchStemmer extends SnowballProgram {
new Among ( "\u00E9", -1, 2, "", this)
};
- private Among a_6[] = {
+ private Among a_7[] = {
new Among ( "e", -1, 3, "", this),
new Among ( "I\u00E8re", 0, 2, "", this),
new Among ( "i\u00E8re", 0, 2, "", this),
@@ -166,7 +172,7 @@ public class FrenchStemmer extends SnowballProgram {
new Among ( "\u00EB", -1, 4, "", this)
};
- private Among a_7[] = {
+ private Among a_8[] = {
new Among ( "ell", -1, -1, "", this),
new Among ( "eill", -1, -1, "", this),
new Among ( "enn", -1, -1, "", this),
@@ -337,7 +343,7 @@ public class FrenchStemmer extends SnowballProgram {
v_1 = cursor;
lab0: do {
// (, line 56
- // or, line 57
+ // or, line 58
lab1: do {
v_2 = cursor;
lab2: do {
@@ -359,22 +365,31 @@ public class FrenchStemmer extends SnowballProgram {
break lab1;
} while (false);
cursor = v_2;
- // (, line 57
- // next, line 57
+ lab3: do {
+ // among, line 59
+ if (find_among(a_0, 3) == 0)
+ {
+ break lab3;
+ }
+ break lab1;
+ } while (false);
+ cursor = v_2;
+ // (, line 66
+ // next, line 66
if (cursor >= limit)
{
break lab0;
}
cursor++;
- // gopast, line 57
- golab3: while(true)
+ // gopast, line 66
+ golab4: while(true)
{
- lab4: do {
+ lab5: do {
if (!(in_grouping(g_v, 97, 251)))
{
- break lab4;
+ break lab5;
}
- break golab3;
+ break golab4;
} while (false);
if (cursor >= limit)
{
@@ -383,81 +398,81 @@ public class FrenchStemmer extends SnowballProgram {
cursor++;
}
} while (false);
- // setmark pV, line 58
+ // setmark pV, line 67
I_pV = cursor;
} while (false);
cursor = v_1;
- // do, line 60
+ // do, line 69
v_4 = cursor;
- lab5: do {
- // (, line 60
- // gopast, line 61
- golab6: while(true)
+ lab6: do {
+ // (, line 69
+ // gopast, line 70
+ golab7: while(true)
{
- lab7: do {
+ lab8: do {
if (!(in_grouping(g_v, 97, 251)))
{
- break lab7;
+ break lab8;
}
- break golab6;
+ break golab7;
} while (false);
if (cursor >= limit)
{
- break lab5;
+ break lab6;
}
cursor++;
}
- // gopast, line 61
- golab8: while(true)
+ // gopast, line 70
+ golab9: while(true)
{
- lab9: do {
+ lab10: do {
if (!(out_grouping(g_v, 97, 251)))
{
- break lab9;
+ break lab10;
}
- break golab8;
+ break golab9;
} while (false);
if (cursor >= limit)
{
- break lab5;
+ break lab6;
}
cursor++;
}
- // setmark p1, line 61
+ // setmark p1, line 70
I_p1 = cursor;
- // gopast, line 62
- golab10: while(true)
+ // gopast, line 71
+ golab11: while(true)
{
- lab11: do {
+ lab12: do {
if (!(in_grouping(g_v, 97, 251)))
{
- break lab11;
+ break lab12;
}
- break golab10;
+ break golab11;
} while (false);
if (cursor >= limit)
{
- break lab5;
+ break lab6;
}
cursor++;
}
- // gopast, line 62
- golab12: while(true)
+ // gopast, line 71
+ golab13: while(true)
{
- lab13: do {
+ lab14: do {
if (!(out_grouping(g_v, 97, 251)))
{
- break lab13;
+ break lab14;
}
- break golab12;
+ break golab13;
} while (false);
if (cursor >= limit)
{
- break lab5;
+ break lab6;
}
cursor++;
}
- // setmark p2, line 62
+ // setmark p2, line 71
I_p2 = cursor;
} while (false);
cursor = v_4;
@@ -467,43 +482,43 @@ public class FrenchStemmer extends SnowballProgram {
private boolean r_postlude() {
int among_var;
int v_1;
- // repeat, line 66
+ // repeat, line 75
replab0: while(true)
{
v_1 = cursor;
lab1: do {
- // (, line 66
- // [, line 68
+ // (, line 75
+ // [, line 77
bra = cursor;
- // substring, line 68
- among_var = find_among(a_0, 4);
+ // substring, line 77
+ among_var = find_among(a_1, 4);
if (among_var == 0)
{
break lab1;
}
- // ], line 68
+ // ], line 77
ket = cursor;
switch(among_var) {
case 0:
break lab1;
case 1:
- // (, line 69
- // <-, line 69
+ // (, line 78
+ // <-, line 78
slice_from("i");
break;
case 2:
- // (, line 70
- // <-, line 70
+ // (, line 79
+ // <-, line 79
slice_from("u");
break;
case 3:
- // (, line 71
- // <-, line 71
+ // (, line 80
+ // <-, line 80
slice_from("y");
break;
case 4:
- // (, line 72
- // next, line 72
+ // (, line 81
+ // next, line 81
if (cursor >= limit)
{
break lab1;
@@ -556,403 +571,403 @@ public class FrenchStemmer extends SnowballProgram {
int v_9;
int v_10;
int v_11;
- // (, line 82
- // [, line 83
+ // (, line 91
+ // [, line 92
ket = cursor;
- // substring, line 83
- among_var = find_among_b(a_3, 43);
+ // substring, line 92
+ among_var = find_among_b(a_4, 43);
if (among_var == 0)
{
return false;
}
- // ], line 83
+ // ], line 92
bra = cursor;
switch(among_var) {
case 0:
return false;
case 1:
- // (, line 87
- // call R2, line 87
+ // (, line 96
+ // call R2, line 96
if (!r_R2())
{
return false;
}
- // delete, line 87
+ // delete, line 96
slice_del();
break;
case 2:
- // (, line 90
- // call R2, line 90
+ // (, line 99
+ // call R2, line 99
if (!r_R2())
{
return false;
}
- // delete, line 90
+ // delete, line 99
slice_del();
- // try, line 91
+ // try, line 100
v_1 = limit - cursor;
lab0: do {
- // (, line 91
- // [, line 91
+ // (, line 100
+ // [, line 100
ket = cursor;
- // literal, line 91
+ // literal, line 100
if (!(eq_s_b(2, "ic")))
{
cursor = limit - v_1;
break lab0;
}
- // ], line 91
+ // ], line 100
bra = cursor;
- // or, line 91
+ // or, line 100
lab1: do {
v_2 = limit - cursor;
lab2: do {
- // (, line 91
- // call R2, line 91
+ // (, line 100
+ // call R2, line 100
if (!r_R2())
{
break lab2;
}
- // delete, line 91
+ // delete, line 100
slice_del();
break lab1;
} while (false);
cursor = limit - v_2;
- // <-, line 91
+ // <-, line 100
slice_from("iqU");
} while (false);
} while (false);
break;
case 3:
- // (, line 95
- // call R2, line 95
+ // (, line 104
+ // call R2, line 104
if (!r_R2())
{
return false;
}
- // <-, line 95
+ // <-, line 104
slice_from("log");
break;
case 4:
- // (, line 98
- // call R2, line 98
+ // (, line 107
+ // call R2, line 107
if (!r_R2())
{
return false;
}
- // <-, line 98
+ // <-, line 107
slice_from("u");
break;
case 5:
- // (, line 101
- // call R2, line 101
+ // (, line 110
+ // call R2, line 110
if (!r_R2())
{
return false;
}
- // <-, line 101
+ // <-, line 110
slice_from("ent");
break;
case 6:
- // (, line 104
- // call RV, line 105
+ // (, line 113
+ // call RV, line 114
if (!r_RV())
{
return false;
}
- // delete, line 105
+ // delete, line 114
slice_del();
- // try, line 106
+ // try, line 115
v_3 = limit - cursor;
lab3: do {
- // (, line 106
- // [, line 107
+ // (, line 115
+ // [, line 116
ket = cursor;
- // substring, line 107
- among_var = find_among_b(a_1, 6);
+ // substring, line 116
+ among_var = find_among_b(a_2, 6);
if (among_var == 0)
{
cursor = limit - v_3;
break lab3;
}
- // ], line 107
+ // ], line 116
bra = cursor;
switch(among_var) {
case 0:
cursor = limit - v_3;
break lab3;
case 1:
- // (, line 108
- // call R2, line 108
+ // (, line 117
+ // call R2, line 117
if (!r_R2())
{
cursor = limit - v_3;
break lab3;
}
- // delete, line 108
+ // delete, line 117
slice_del();
- // [, line 108
+ // [, line 117
ket = cursor;
- // literal, line 108
+ // literal, line 117
if (!(eq_s_b(2, "at")))
{
cursor = limit - v_3;
break lab3;
}
- // ], line 108
+ // ], line 117
bra = cursor;
- // call R2, line 108
+ // call R2, line 117
if (!r_R2())
{
cursor = limit - v_3;
break lab3;
}
- // delete, line 108
+ // delete, line 117
slice_del();
break;
case 2:
- // (, line 109
- // or, line 109
+ // (, line 118
+ // or, line 118
lab4: do {
v_4 = limit - cursor;
lab5: do {
- // (, line 109
- // call R2, line 109
+ // (, line 118
+ // call R2, line 118
if (!r_R2())
{
break lab5;
}
- // delete, line 109
+ // delete, line 118
slice_del();
break lab4;
} while (false);
cursor = limit - v_4;
- // (, line 109
- // call R1, line 109
+ // (, line 118
+ // call R1, line 118
if (!r_R1())
{
cursor = limit - v_3;
break lab3;
}
- // <-, line 109
+ // <-, line 118
slice_from("eux");
} while (false);
break;
case 3:
- // (, line 111
- // call R2, line 111
+ // (, line 120
+ // call R2, line 120
if (!r_R2())
{
cursor = limit - v_3;
break lab3;
}
- // delete, line 111
+ // delete, line 120
slice_del();
break;
case 4:
- // (, line 113
- // call RV, line 113
+ // (, line 122
+ // call RV, line 122
if (!r_RV())
{
cursor = limit - v_3;
break lab3;
}
- // <-, line 113
+ // <-, line 122
slice_from("i");
break;
}
} while (false);
break;
case 7:
- // (, line 119
- // call R2, line 120
+ // (, line 128
+ // call R2, line 129
if (!r_R2())
{
return false;
}
- // delete, line 120
+ // delete, line 129
slice_del();
- // try, line 121
+ // try, line 130
v_5 = limit - cursor;
lab6: do {
- // (, line 121
- // [, line 122
+ // (, line 130
+ // [, line 131
ket = cursor;
- // substring, line 122
- among_var = find_among_b(a_2, 3);
+ // substring, line 131
+ among_var = find_among_b(a_3, 3);
if (among_var == 0)
{
cursor = limit - v_5;
break lab6;
}
- // ], line 122
+ // ], line 131
bra = cursor;
switch(among_var) {
case 0:
cursor = limit - v_5;
break lab6;
case 1:
- // (, line 123
- // or, line 123
+ // (, line 132
+ // or, line 132
lab7: do {
v_6 = limit - cursor;
lab8: do {
- // (, line 123
- // call R2, line 123
+ // (, line 132
+ // call R2, line 132
if (!r_R2())
{
break lab8;
}
- // delete, line 123
+ // delete, line 132
slice_del();
break lab7;
} while (false);
cursor = limit - v_6;
- // <-, line 123
+ // <-, line 132
slice_from("abl");
} while (false);
break;
case 2:
- // (, line 124
- // or, line 124
+ // (, line 133
+ // or, line 133
lab9: do {
v_7 = limit - cursor;
lab10: do {
- // (, line 124
- // call R2, line 124
+ // (, line 133
+ // call R2, line 133
if (!r_R2())
{
break lab10;
}
- // delete, line 124
+ // delete, line 133
slice_del();
break lab9;
} while (false);
cursor = limit - v_7;
- // <-, line 124
+ // <-, line 133
slice_from("iqU");
} while (false);
break;
case 3:
- // (, line 125
- // call R2, line 125
+ // (, line 134
+ // call R2, line 134
if (!r_R2())
{
cursor = limit - v_5;
break lab6;
}
- // delete, line 125
+ // delete, line 134
slice_del();
break;
}
} while (false);
break;
case 8:
- // (, line 131
- // call R2, line 132
+ // (, line 140
+ // call R2, line 141
if (!r_R2())
{
return false;
}
- // delete, line 132
+ // delete, line 141
slice_del();
- // try, line 133
+ // try, line 142
v_8 = limit - cursor;
lab11: do {
- // (, line 133
- // [, line 133
+ // (, line 142
+ // [, line 142
ket = cursor;
- // literal, line 133
+ // literal, line 142
if (!(eq_s_b(2, "at")))
{
cursor = limit - v_8;
break lab11;
}
- // ], line 133
+ // ], line 142
bra = cursor;
- // call R2, line 133
+ // call R2, line 142
if (!r_R2())
{
cursor = limit - v_8;
break lab11;
}
- // delete, line 133
+ // delete, line 142
slice_del();
- // [, line 133
+ // [, line 142
ket = cursor;
- // literal, line 133
+ // literal, line 142
if (!(eq_s_b(2, "ic")))
{
cursor = limit - v_8;
break lab11;
}
- // ], line 133
+ // ], line 142
bra = cursor;
- // or, line 133
+ // or, line 142
lab12: do {
v_9 = limit - cursor;
lab13: do {
- // (, line 133
- // call R2, line 133
+ // (, line 142
+ // call R2, line 142
if (!r_R2())
{
break lab13;
}
- // delete, line 133
+ // delete, line 142
slice_del();
break lab12;
} while (false);
cursor = limit - v_9;
- // <-, line 133
+ // <-, line 142
slice_from("iqU");
} while (false);
} while (false);
break;
case 9:
- // (, line 135
- // <-, line 135
+ // (, line 144
+ // <-, line 144
slice_from("eau");
break;
case 10:
- // (, line 136
- // call R1, line 136
+ // (, line 145
+ // call R1, line 145
if (!r_R1())
{
return false;
}
- // <-, line 136
+ // <-, line 145
slice_from("al");
break;
case 11:
- // (, line 138
- // or, line 138
+ // (, line 147
+ // or, line 147
lab14: do {
v_10 = limit - cursor;
lab15: do {
- // (, line 138
- // call R2, line 138
+ // (, line 147
+ // call R2, line 147
if (!r_R2())
{
break lab15;
}
- // delete, line 138
+ // delete, line 147
slice_del();
break lab14;
} while (false);
cursor = limit - v_10;
- // (, line 138
- // call R1, line 138
+ // (, line 147
+ // call R1, line 147
if (!r_R1())
{
return false;
}
- // <-, line 138
+ // <-, line 147
slice_from("eux");
} while (false);
break;
case 12:
- // (, line 141
- // call R1, line 141
+ // (, line 150
+ // call R1, line 150
if (!r_R1())
{
return false;
@@ -961,51 +976,51 @@ public class FrenchStemmer extends SnowballProgram {
{
return false;
}
- // delete, line 141
+ // delete, line 150
slice_del();
break;
case 13:
- // (, line 146
- // call RV, line 146
+ // (, line 155
+ // call RV, line 155
if (!r_RV())
{
return false;
}
- // fail, line 146
- // (, line 146
- // <-, line 146
+ // fail, line 155
+ // (, line 155
+ // <-, line 155
slice_from("ant");
return false;
case 14:
- // (, line 147
- // call RV, line 147
+ // (, line 156
+ // call RV, line 156
if (!r_RV())
{
return false;
}
- // fail, line 147
- // (, line 147
- // <-, line 147
+ // fail, line 156
+ // (, line 156
+ // <-, line 156
slice_from("ent");
return false;
case 15:
- // (, line 149
- // test, line 149
+ // (, line 158
+ // test, line 158
v_11 = limit - cursor;
- // (, line 149
+ // (, line 158
if (!(in_grouping_b(g_v, 97, 251)))
{
return false;
}
- // call RV, line 149
+ // call RV, line 158
if (!r_RV())
{
return false;
}
cursor = limit - v_11;
- // fail, line 149
- // (, line 149
- // delete, line 149
+ // fail, line 158
+ // (, line 158
+ // delete, line 158
slice_del();
return false;
}
@@ -1016,9 +1031,9 @@ public class FrenchStemmer extends SnowballProgram {
int among_var;
int v_1;
int v_2;
- // setlimit, line 154
+ // setlimit, line 163
v_1 = limit - cursor;
- // tomark, line 154
+ // tomark, line 163
if (cursor < I_pV)
{
return false;
@@ -1027,30 +1042,30 @@ public class FrenchStemmer extends SnowballProgram {
v_2 = limit_backward;
limit_backward = cursor;
cursor = limit - v_1;
- // (, line 154
- // [, line 155
+ // (, line 163
+ // [, line 164
ket = cursor;
- // substring, line 155
- among_var = find_among_b(a_4, 35);
+ // substring, line 164
+ among_var = find_among_b(a_5, 35);
if (among_var == 0)
{
limit_backward = v_2;
return false;
}
- // ], line 155
+ // ], line 164
bra = cursor;
switch(among_var) {
case 0:
limit_backward = v_2;
return false;
case 1:
- // (, line 161
+ // (, line 170
if (!(out_grouping_b(g_v, 97, 251)))
{
limit_backward = v_2;
return false;
}
- // delete, line 161
+ // delete, line 170
slice_del();
break;
}
@@ -1063,9 +1078,9 @@ public class FrenchStemmer extends SnowballProgram {
int v_1;
int v_2;
int v_3;
- // setlimit, line 165
+ // setlimit, line 174
v_1 = limit - cursor;
- // tomark, line 165
+ // tomark, line 174
if (cursor < I_pV)
{
return false;
@@ -1074,57 +1089,57 @@ public class FrenchStemmer extends SnowballProgram {
v_2 = limit_backward;
limit_backward = cursor;
cursor = limit - v_1;
- // (, line 165
- // [, line 166
+ // (, line 174
+ // [, line 175
ket = cursor;
- // substring, line 166
- among_var = find_among_b(a_5, 38);
+ // substring, line 175
+ among_var = find_among_b(a_6, 38);
if (among_var == 0)
{
limit_backward = v_2;
return false;
}
- // ], line 166
+ // ], line 175
bra = cursor;
switch(among_var) {
case 0:
limit_backward = v_2;
return false;
case 1:
- // (, line 168
- // call R2, line 168
+ // (, line 177
+ // call R2, line 177
if (!r_R2())
{
limit_backward = v_2;
return false;
}
- // delete, line 168
+ // delete, line 177
slice_del();
break;
case 2:
- // (, line 176
- // delete, line 176
+ // (, line 185
+ // delete, line 185
slice_del();
break;
case 3:
- // (, line 181
- // delete, line 181
+ // (, line 190
+ // delete, line 190
slice_del();
- // try, line 182
+ // try, line 191
v_3 = limit - cursor;
lab0: do {
- // (, line 182
- // [, line 182
+ // (, line 191
+ // [, line 191
ket = cursor;
- // literal, line 182
+ // literal, line 191
if (!(eq_s_b(1, "e")))
{
cursor = limit - v_3;
break lab0;
}
- // ], line 182
+ // ], line 191
bra = cursor;
- // delete, line 182
+ // delete, line 191
slice_del();
} while (false);
break;
@@ -1140,22 +1155,22 @@ public class FrenchStemmer extends SnowballProgram {
int v_3;
int v_4;
int v_5;
- // (, line 189
- // try, line 190
+ // (, line 198
+ // try, line 199
v_1 = limit - cursor;
lab0: do {
- // (, line 190
- // [, line 190
+ // (, line 199
+ // [, line 199
ket = cursor;
- // literal, line 190
+ // literal, line 199
if (!(eq_s_b(1, "s")))
{
cursor = limit - v_1;
break lab0;
}
- // ], line 190
+ // ], line 199
bra = cursor;
- // test, line 190
+ // test, line 199
v_2 = limit - cursor;
if (!(out_grouping_b(g_keep_with_s, 97, 232)))
{
@@ -1163,12 +1178,12 @@ public class FrenchStemmer extends SnowballProgram {
break lab0;
}
cursor = limit - v_2;
- // delete, line 190
+ // delete, line 199
slice_del();
} while (false);
- // setlimit, line 191
+ // setlimit, line 200
v_3 = limit - cursor;
- // tomark, line 191
+ // tomark, line 200
if (cursor < I_pV)
{
return false;
@@ -1177,35 +1192,35 @@ public class FrenchStemmer extends SnowballProgram {
v_4 = limit_backward;
limit_backward = cursor;
cursor = limit - v_3;
- // (, line 191
- // [, line 192
+ // (, line 200
+ // [, line 201
ket = cursor;
- // substring, line 192
- among_var = find_among_b(a_6, 7);
+ // substring, line 201
+ among_var = find_among_b(a_7, 7);
if (among_var == 0)
{
limit_backward = v_4;
return false;
}
- // ], line 192
+ // ], line 201
bra = cursor;
switch(among_var) {
case 0:
limit_backward = v_4;
return false;
case 1:
- // (, line 193
- // call R2, line 193
+ // (, line 202
+ // call R2, line 202
if (!r_R2())
{
limit_backward = v_4;
return false;
}
- // or, line 193
+ // or, line 202
lab1: do {
v_5 = limit - cursor;
lab2: do {
- // literal, line 193
+ // literal, line 202
if (!(eq_s_b(1, "s")))
{
break lab2;
@@ -1213,35 +1228,35 @@ public class FrenchStemmer extends SnowballProgram {
break lab1;
} while (false);
cursor = limit - v_5;
- // literal, line 193
+ // literal, line 202
if (!(eq_s_b(1, "t")))
{
limit_backward = v_4;
return false;
}
} while (false);
- // delete, line 193
+ // delete, line 202
slice_del();
break;
case 2:
- // (, line 195
- // <-, line 195
+ // (, line 204
+ // <-, line 204
slice_from("i");
break;
case 3:
- // (, line 196
- // delete, line 196
+ // (, line 205
+ // delete, line 205
slice_del();
break;
case 4:
- // (, line 197
- // literal, line 197
+ // (, line 206
+ // literal, line 206
if (!(eq_s_b(2, "gu")))
{
limit_backward = v_4;
return false;
}
- // delete, line 197
+ // delete, line 206
slice_del();
break;
}
@@ -1251,37 +1266,37 @@ public class FrenchStemmer extends SnowballProgram {
private boolean r_un_double() {
int v_1;
- // (, line 202
- // test, line 203
+ // (, line 211
+ // test, line 212
v_1 = limit - cursor;
- // among, line 203
- if (find_among_b(a_7, 5) == 0)
+ // among, line 212
+ if (find_among_b(a_8, 5) == 0)
{
return false;
}
cursor = limit - v_1;
- // [, line 203
+ // [, line 212
ket = cursor;
- // next, line 203
+ // next, line 212
if (cursor <= limit_backward)
{
return false;
}
cursor--;
- // ], line 203
+ // ], line 212
bra = cursor;
- // delete, line 203
+ // delete, line 212
slice_del();
return true;
}
private boolean r_un_accent() {
int v_3;
- // (, line 206
- // atleast, line 207
+ // (, line 215
+ // atleast, line 216
{
int v_1 = 1;
- // atleast, line 207
+ // atleast, line 216
replab0: while(true)
{
lab1: do {
@@ -1299,13 +1314,13 @@ public class FrenchStemmer extends SnowballProgram {
return false;
}
}
- // [, line 208
+ // [, line 217
ket = cursor;
- // or, line 208
+ // or, line 217
lab2: do {
v_3 = limit - cursor;
lab3: do {
- // literal, line 208
+ // literal, line 217
if (!(eq_s_b(1, "\u00E9")))
{
break lab3;
@@ -1313,15 +1328,15 @@ public class FrenchStemmer extends SnowballProgram {
break lab2;
} while (false);
cursor = limit - v_3;
- // literal, line 208
+ // literal, line 217
if (!(eq_s_b(1, "\u00E8")))
{
return false;
}
} while (false);
- // ], line 208
+ // ], line 217
bra = cursor;
- // <-, line 208
+ // <-, line 217
slice_from("e");
return true;
}
@@ -1338,47 +1353,47 @@ public class FrenchStemmer extends SnowballProgram {
int v_9;
int v_10;
int v_11;
- // (, line 212
- // do, line 214
+ // (, line 221
+ // do, line 223
v_1 = cursor;
lab0: do {
- // call prelude, line 214
+ // call prelude, line 223
if (!r_prelude())
{
break lab0;
}
} while (false);
cursor = v_1;
- // do, line 215
+ // do, line 224
v_2 = cursor;
lab1: do {
- // call mark_regions, line 215
+ // call mark_regions, line 224
if (!r_mark_regions())
{
break lab1;
}
} while (false);
cursor = v_2;
- // backwards, line 216
+ // backwards, line 225
limit_backward = cursor; cursor = limit;
- // (, line 216
- // do, line 218
+ // (, line 225
+ // do, line 227
v_3 = limit - cursor;
lab2: do {
- // (, line 218
- // or, line 228
+ // (, line 227
+ // or, line 237
lab3: do {
v_4 = limit - cursor;
lab4: do {
- // (, line 219
- // and, line 224
+ // (, line 228
+ // and, line 233
v_5 = limit - cursor;
- // (, line 220
- // or, line 220
+ // (, line 229
+ // or, line 229
lab5: do {
v_6 = limit - cursor;
lab6: do {
- // call standard_suffix, line 220
+ // call standard_suffix, line 229
if (!r_standard_suffix())
{
break lab6;
@@ -1387,7 +1402,7 @@ public class FrenchStemmer extends SnowballProgram {
} while (false);
cursor = limit - v_6;
lab7: do {
- // call i_verb_suffix, line 221
+ // call i_verb_suffix, line 230
if (!r_i_verb_suffix())
{
break lab7;
@@ -1395,53 +1410,53 @@ public class FrenchStemmer extends SnowballProgram {
break lab5;
} while (false);
cursor = limit - v_6;
- // call verb_suffix, line 222
+ // call verb_suffix, line 231
if (!r_verb_suffix())
{
break lab4;
}
} while (false);
cursor = limit - v_5;
- // try, line 225
+ // try, line 234
v_7 = limit - cursor;
lab8: do {
- // (, line 225
- // [, line 225
+ // (, line 234
+ // [, line 234
ket = cursor;
- // or, line 225
+ // or, line 234
lab9: do {
v_8 = limit - cursor;
lab10: do {
- // (, line 225
- // literal, line 225
+ // (, line 234
+ // literal, line 234
if (!(eq_s_b(1, "Y")))
{
break lab10;
}
- // ], line 225
+ // ], line 234
bra = cursor;
- // <-, line 225
+ // <-, line 234
slice_from("i");
break lab9;
} while (false);
cursor = limit - v_8;
- // (, line 226
- // literal, line 226
+ // (, line 235
+ // literal, line 235
if (!(eq_s_b(1, "\u00E7")))
{
cursor = limit - v_7;
break lab8;
}
- // ], line 226
+ // ], line 235
bra = cursor;
- // <-, line 226
+ // <-, line 235
slice_from("c");
} while (false);
} while (false);
break lab3;
} while (false);
cursor = limit - v_4;
- // call residual_suffix, line 229
+ // call residual_suffix, line 238
if (!r_residual_suffix())
{
break lab2;
@@ -1449,30 +1464,30 @@ public class FrenchStemmer extends SnowballProgram {
} while (false);
} while (false);
cursor = limit - v_3;
- // do, line 234
+ // do, line 243
v_9 = limit - cursor;
lab11: do {
- // call un_double, line 234
+ // call un_double, line 243
if (!r_un_double())
{
break lab11;
}
} while (false);
cursor = limit - v_9;
- // do, line 235
+ // do, line 244
v_10 = limit - cursor;
lab12: do {
- // call un_accent, line 235
+ // call un_accent, line 244
if (!r_un_accent())
{
break lab12;
}
} while (false);
cursor = limit - v_10;
- cursor = limit_backward; // do, line 237
+ cursor = limit_backward; // do, line 246
v_11 = cursor;
lab13: do {
- // call postlude, line 237
+ // call postlude, line 246
if (!r_postlude())
{
break lab13;
diff --git a/contrib/snowball/src/java/net/sf/snowball/ext/German2Stemmer.java b/contrib/snowball/src/java/org/tartarus/snowball/ext/German2Stemmer.java
similarity index 83%
rename from contrib/snowball/src/java/net/sf/snowball/ext/German2Stemmer.java
rename to contrib/snowball/src/java/org/tartarus/snowball/ext/German2Stemmer.java
index 684d1e7b2d0..516751814cf 100644
--- a/contrib/snowball/src/java/net/sf/snowball/ext/German2Stemmer.java
+++ b/contrib/snowball/src/java/org/tartarus/snowball/ext/German2Stemmer.java
@@ -1,8 +1,8 @@
// This file was generated automatically by the Snowball to Java compiler
-package net.sf.snowball.ext;
-import net.sf.snowball.SnowballProgram;
-import net.sf.snowball.Among;
+package org.tartarus.snowball.ext;
+import org.tartarus.snowball.SnowballProgram;
+import org.tartarus.snowball.Among;
/**
* Generated class implementing code defined by a snowball script.
@@ -66,10 +66,12 @@ public class German2Stemmer extends SnowballProgram {
private static final char g_st_ending[] = {117, 30, 4 };
+ private int I_x;
private int I_p2;
private int I_p1;
private void copy_from(German2Stemmer other) {
+ I_x = other.I_x;
I_p2 = other.I_p2;
I_p1 = other.I_p1;
super.copy_from(other);
@@ -224,10 +226,26 @@ public class German2Stemmer extends SnowballProgram {
}
private boolean r_mark_regions() {
+ int v_1;
// (, line 48
I_p1 = limit;
I_p2 = limit;
- // gopast, line 53
+ // test, line 53
+ v_1 = cursor;
+ // (, line 53
+ // hop, line 53
+ {
+ int c = cursor + 3;
+ if (0 > c || c > limit)
+ {
+ return false;
+ }
+ cursor = c;
+ }
+ // setmark x, line 53
+ I_x = cursor;
+ cursor = v_1;
+ // gopast, line 55
golab0: while(true)
{
lab1: do {
@@ -243,7 +261,7 @@ public class German2Stemmer extends SnowballProgram {
}
cursor++;
}
- // gopast, line 53
+ // gopast, line 55
golab2: while(true)
{
lab3: do {
@@ -259,18 +277,18 @@ public class German2Stemmer extends SnowballProgram {
}
cursor++;
}
- // setmark p1, line 53
+ // setmark p1, line 55
I_p1 = cursor;
- // try, line 54
+ // try, line 56
lab4: do {
- // (, line 54
- if (!(I_p1 < 3))
+ // (, line 56
+ if (!(I_p1 < I_x))
{
break lab4;
}
- I_p1 = 3;
+ I_p1 = I_x;
} while (false);
- // gopast, line 55
+ // gopast, line 57
golab5: while(true)
{
lab6: do {
@@ -286,7 +304,7 @@ public class German2Stemmer extends SnowballProgram {
}
cursor++;
}
- // gopast, line 55
+ // gopast, line 57
golab7: while(true)
{
lab8: do {
@@ -302,7 +320,7 @@ public class German2Stemmer extends SnowballProgram {
}
cursor++;
}
- // setmark p2, line 55
+ // setmark p2, line 57
I_p2 = cursor;
return true;
}
@@ -310,53 +328,53 @@ public class German2Stemmer extends SnowballProgram {
private boolean r_postlude() {
int among_var;
int v_1;
- // repeat, line 59
+ // repeat, line 61
replab0: while(true)
{
v_1 = cursor;
lab1: do {
- // (, line 59
- // [, line 61
+ // (, line 61
+ // [, line 63
bra = cursor;
- // substring, line 61
+ // substring, line 63
among_var = find_among(a_1, 6);
if (among_var == 0)
{
break lab1;
}
- // ], line 61
+ // ], line 63
ket = cursor;
switch(among_var) {
case 0:
break lab1;
case 1:
- // (, line 62
- // <-, line 62
+ // (, line 64
+ // <-, line 64
slice_from("y");
break;
case 2:
- // (, line 63
- // <-, line 63
+ // (, line 65
+ // <-, line 65
slice_from("u");
break;
case 3:
- // (, line 64
- // <-, line 64
+ // (, line 66
+ // <-, line 66
slice_from("a");
break;
case 4:
- // (, line 65
- // <-, line 65
+ // (, line 67
+ // <-, line 67
slice_from("o");
break;
case 5:
- // (, line 66
- // <-, line 66
+ // (, line 68
+ // <-, line 68
slice_from("u");
break;
case 6:
- // (, line 67
- // next, line 67
+ // (, line 69
+ // next, line 69
if (cursor >= limit)
{
break lab1;
@@ -399,22 +417,22 @@ public class German2Stemmer extends SnowballProgram {
int v_7;
int v_8;
int v_9;
- // (, line 77
- // do, line 78
+ // (, line 79
+ // do, line 80
v_1 = limit - cursor;
lab0: do {
- // (, line 78
- // [, line 79
+ // (, line 80
+ // [, line 81
ket = cursor;
- // substring, line 79
+ // substring, line 81
among_var = find_among_b(a_2, 7);
if (among_var == 0)
{
break lab0;
}
- // ], line 79
+ // ], line 81
bra = cursor;
- // call R1, line 79
+ // call R1, line 81
if (!r_R1())
{
break lab0;
@@ -423,37 +441,37 @@ public class German2Stemmer extends SnowballProgram {
case 0:
break lab0;
case 1:
- // (, line 81
- // delete, line 81
+ // (, line 83
+ // delete, line 83
slice_del();
break;
case 2:
- // (, line 84
+ // (, line 86
if (!(in_grouping_b(g_s_ending, 98, 116)))
{
break lab0;
}
- // delete, line 84
+ // delete, line 86
slice_del();
break;
}
} while (false);
cursor = limit - v_1;
- // do, line 88
+ // do, line 90
v_2 = limit - cursor;
lab1: do {
- // (, line 88
- // [, line 89
+ // (, line 90
+ // [, line 91
ket = cursor;
- // substring, line 89
+ // substring, line 91
among_var = find_among_b(a_3, 4);
if (among_var == 0)
{
break lab1;
}
- // ], line 89
+ // ], line 91
bra = cursor;
- // call R1, line 89
+ // call R1, line 91
if (!r_R1())
{
break lab1;
@@ -462,17 +480,17 @@ public class German2Stemmer extends SnowballProgram {
case 0:
break lab1;
case 1:
- // (, line 91
- // delete, line 91
+ // (, line 93
+ // delete, line 93
slice_del();
break;
case 2:
- // (, line 94
+ // (, line 96
if (!(in_grouping_b(g_st_ending, 98, 116)))
{
break lab1;
}
- // hop, line 94
+ // hop, line 96
{
int c = cursor - 3;
if (limit_backward > c || c > limit)
@@ -481,27 +499,27 @@ public class German2Stemmer extends SnowballProgram {
}
cursor = c;
}
- // delete, line 94
+ // delete, line 96
slice_del();
break;
}
} while (false);
cursor = limit - v_2;
- // do, line 98
+ // do, line 100
v_3 = limit - cursor;
lab2: do {
- // (, line 98
- // [, line 99
+ // (, line 100
+ // [, line 101
ket = cursor;
- // substring, line 99
+ // substring, line 101
among_var = find_among_b(a_5, 8);
if (among_var == 0)
{
break lab2;
}
- // ], line 99
+ // ], line 101
bra = cursor;
- // call R2, line 99
+ // call R2, line 101
if (!r_R2())
{
break lab2;
@@ -510,28 +528,28 @@ public class German2Stemmer extends SnowballProgram {
case 0:
break lab2;
case 1:
- // (, line 101
- // delete, line 101
+ // (, line 103
+ // delete, line 103
slice_del();
- // try, line 102
+ // try, line 104
v_4 = limit - cursor;
lab3: do {
- // (, line 102
- // [, line 102
+ // (, line 104
+ // [, line 104
ket = cursor;
- // literal, line 102
+ // literal, line 104
if (!(eq_s_b(2, "ig")))
{
cursor = limit - v_4;
break lab3;
}
- // ], line 102
+ // ], line 104
bra = cursor;
- // not, line 102
+ // not, line 104
{
v_5 = limit - cursor;
lab4: do {
- // literal, line 102
+ // literal, line 104
if (!(eq_s_b(1, "e")))
{
break lab4;
@@ -541,23 +559,23 @@ public class German2Stemmer extends SnowballProgram {
} while (false);
cursor = limit - v_5;
}
- // call R2, line 102
+ // call R2, line 104
if (!r_R2())
{
cursor = limit - v_4;
break lab3;
}
- // delete, line 102
+ // delete, line 104
slice_del();
} while (false);
break;
case 2:
- // (, line 105
- // not, line 105
+ // (, line 107
+ // not, line 107
{
v_6 = limit - cursor;
lab5: do {
- // literal, line 105
+ // literal, line 107
if (!(eq_s_b(1, "e")))
{
break lab5;
@@ -566,24 +584,24 @@ public class German2Stemmer extends SnowballProgram {
} while (false);
cursor = limit - v_6;
}
- // delete, line 105
+ // delete, line 107
slice_del();
break;
case 3:
- // (, line 108
- // delete, line 108
+ // (, line 110
+ // delete, line 110
slice_del();
- // try, line 109
+ // try, line 111
v_7 = limit - cursor;
lab6: do {
- // (, line 109
- // [, line 110
+ // (, line 111
+ // [, line 112
ket = cursor;
- // or, line 110
+ // or, line 112
lab7: do {
v_8 = limit - cursor;
lab8: do {
- // literal, line 110
+ // literal, line 112
if (!(eq_s_b(2, "er")))
{
break lab8;
@@ -591,45 +609,45 @@ public class German2Stemmer extends SnowballProgram {
break lab7;
} while (false);
cursor = limit - v_8;
- // literal, line 110
+ // literal, line 112
if (!(eq_s_b(2, "en")))
{
cursor = limit - v_7;
break lab6;
}
} while (false);
- // ], line 110
+ // ], line 112
bra = cursor;
- // call R1, line 110
+ // call R1, line 112
if (!r_R1())
{
cursor = limit - v_7;
break lab6;
}
- // delete, line 110
+ // delete, line 112
slice_del();
} while (false);
break;
case 4:
- // (, line 114
- // delete, line 114
+ // (, line 116
+ // delete, line 116
slice_del();
- // try, line 115
+ // try, line 117
v_9 = limit - cursor;
lab9: do {
- // (, line 115
- // [, line 116
+ // (, line 117
+ // [, line 118
ket = cursor;
- // substring, line 116
+ // substring, line 118
among_var = find_among_b(a_4, 2);
if (among_var == 0)
{
cursor = limit - v_9;
break lab9;
}
- // ], line 116
+ // ], line 118
bra = cursor;
- // call R2, line 116
+ // call R2, line 118
if (!r_R2())
{
cursor = limit - v_9;
@@ -640,8 +658,8 @@ public class German2Stemmer extends SnowballProgram {
cursor = limit - v_9;
break lab9;
case 1:
- // (, line 118
- // delete, line 118
+ // (, line 120
+ // delete, line 120
slice_del();
break;
}
@@ -658,43 +676,43 @@ public class German2Stemmer extends SnowballProgram {
int v_2;
int v_3;
int v_4;
- // (, line 128
- // do, line 129
+ // (, line 130
+ // do, line 131
v_1 = cursor;
lab0: do {
- // call prelude, line 129
+ // call prelude, line 131
if (!r_prelude())
{
break lab0;
}
} while (false);
cursor = v_1;
- // do, line 130
+ // do, line 132
v_2 = cursor;
lab1: do {
- // call mark_regions, line 130
+ // call mark_regions, line 132
if (!r_mark_regions())
{
break lab1;
}
} while (false);
cursor = v_2;
- // backwards, line 131
+ // backwards, line 133
limit_backward = cursor; cursor = limit;
- // do, line 132
+ // do, line 134
v_3 = limit - cursor;
lab2: do {
- // call standard_suffix, line 132
+ // call standard_suffix, line 134
if (!r_standard_suffix())
{
break lab2;
}
} while (false);
cursor = limit - v_3;
- cursor = limit_backward; // do, line 133
+ cursor = limit_backward; // do, line 135
v_4 = cursor;
lab3: do {
- // call postlude, line 133
+ // call postlude, line 135
if (!r_postlude())
{
break lab3;
diff --git a/contrib/snowball/src/java/net/sf/snowball/ext/GermanStemmer.java b/contrib/snowball/src/java/org/tartarus/snowball/ext/GermanStemmer.java
similarity index 82%
rename from contrib/snowball/src/java/net/sf/snowball/ext/GermanStemmer.java
rename to contrib/snowball/src/java/org/tartarus/snowball/ext/GermanStemmer.java
index d1d53382e09..79467793193 100644
--- a/contrib/snowball/src/java/net/sf/snowball/ext/GermanStemmer.java
+++ b/contrib/snowball/src/java/org/tartarus/snowball/ext/GermanStemmer.java
@@ -1,8 +1,8 @@
// This file was generated automatically by the Snowball to Java compiler
-package net.sf.snowball.ext;
-import net.sf.snowball.SnowballProgram;
-import net.sf.snowball.Among;
+package org.tartarus.snowball.ext;
+import org.tartarus.snowball.SnowballProgram;
+import org.tartarus.snowball.Among;
/**
* Generated class implementing code defined by a snowball script.
@@ -57,10 +57,12 @@ public class GermanStemmer extends SnowballProgram {
private static final char g_st_ending[] = {117, 30, 4 };
+ private int I_x;
private int I_p2;
private int I_p1;
private void copy_from(GermanStemmer other) {
+ I_x = other.I_x;
I_p2 = other.I_p2;
I_p1 = other.I_p1;
super.copy_from(other);
@@ -186,10 +188,26 @@ public class GermanStemmer extends SnowballProgram {
}
private boolean r_mark_regions() {
+ int v_1;
// (, line 42
I_p1 = limit;
I_p2 = limit;
- // gopast, line 47
+ // test, line 47
+ v_1 = cursor;
+ // (, line 47
+ // hop, line 47
+ {
+ int c = cursor + 3;
+ if (0 > c || c > limit)
+ {
+ return false;
+ }
+ cursor = c;
+ }
+ // setmark x, line 47
+ I_x = cursor;
+ cursor = v_1;
+ // gopast, line 49
golab0: while(true)
{
lab1: do {
@@ -205,7 +223,7 @@ public class GermanStemmer extends SnowballProgram {
}
cursor++;
}
- // gopast, line 47
+ // gopast, line 49
golab2: while(true)
{
lab3: do {
@@ -221,18 +239,18 @@ public class GermanStemmer extends SnowballProgram {
}
cursor++;
}
- // setmark p1, line 47
+ // setmark p1, line 49
I_p1 = cursor;
- // try, line 48
+ // try, line 50
lab4: do {
- // (, line 48
- if (!(I_p1 < 3))
+ // (, line 50
+ if (!(I_p1 < I_x))
{
break lab4;
}
- I_p1 = 3;
+ I_p1 = I_x;
} while (false);
- // gopast, line 49
+ // gopast, line 51
golab5: while(true)
{
lab6: do {
@@ -248,7 +266,7 @@ public class GermanStemmer extends SnowballProgram {
}
cursor++;
}
- // gopast, line 49
+ // gopast, line 51
golab7: while(true)
{
lab8: do {
@@ -264,7 +282,7 @@ public class GermanStemmer extends SnowballProgram {
}
cursor++;
}
- // setmark p2, line 49
+ // setmark p2, line 51
I_p2 = cursor;
return true;
}
@@ -272,53 +290,53 @@ public class GermanStemmer extends SnowballProgram {
private boolean r_postlude() {
int among_var;
int v_1;
- // repeat, line 53
+ // repeat, line 55
replab0: while(true)
{
v_1 = cursor;
lab1: do {
- // (, line 53
- // [, line 55
+ // (, line 55
+ // [, line 57
bra = cursor;
- // substring, line 55
+ // substring, line 57
among_var = find_among(a_0, 6);
if (among_var == 0)
{
break lab1;
}
- // ], line 55
+ // ], line 57
ket = cursor;
switch(among_var) {
case 0:
break lab1;
case 1:
- // (, line 56
- // <-, line 56
+ // (, line 58
+ // <-, line 58
slice_from("y");
break;
case 2:
- // (, line 57
- // <-, line 57
+ // (, line 59
+ // <-, line 59
slice_from("u");
break;
case 3:
- // (, line 58
- // <-, line 58
+ // (, line 60
+ // <-, line 60
slice_from("a");
break;
case 4:
- // (, line 59
- // <-, line 59
+ // (, line 61
+ // <-, line 61
slice_from("o");
break;
case 5:
- // (, line 60
- // <-, line 60
+ // (, line 62
+ // <-, line 62
slice_from("u");
break;
case 6:
- // (, line 61
- // next, line 61
+ // (, line 63
+ // next, line 63
if (cursor >= limit)
{
break lab1;
@@ -361,22 +379,22 @@ public class GermanStemmer extends SnowballProgram {
int v_7;
int v_8;
int v_9;
- // (, line 71
- // do, line 72
+ // (, line 73
+ // do, line 74
v_1 = limit - cursor;
lab0: do {
- // (, line 72
- // [, line 73
+ // (, line 74
+ // [, line 75
ket = cursor;
- // substring, line 73
+ // substring, line 75
among_var = find_among_b(a_1, 7);
if (among_var == 0)
{
break lab0;
}
- // ], line 73
+ // ], line 75
bra = cursor;
- // call R1, line 73
+ // call R1, line 75
if (!r_R1())
{
break lab0;
@@ -385,37 +403,37 @@ public class GermanStemmer extends SnowballProgram {
case 0:
break lab0;
case 1:
- // (, line 75
- // delete, line 75
+ // (, line 77
+ // delete, line 77
slice_del();
break;
case 2:
- // (, line 78
+ // (, line 80
if (!(in_grouping_b(g_s_ending, 98, 116)))
{
break lab0;
}
- // delete, line 78
+ // delete, line 80
slice_del();
break;
}
} while (false);
cursor = limit - v_1;
- // do, line 82
+ // do, line 84
v_2 = limit - cursor;
lab1: do {
- // (, line 82
- // [, line 83
+ // (, line 84
+ // [, line 85
ket = cursor;
- // substring, line 83
+ // substring, line 85
among_var = find_among_b(a_2, 4);
if (among_var == 0)
{
break lab1;
}
- // ], line 83
+ // ], line 85
bra = cursor;
- // call R1, line 83
+ // call R1, line 85
if (!r_R1())
{
break lab1;
@@ -424,17 +442,17 @@ public class GermanStemmer extends SnowballProgram {
case 0:
break lab1;
case 1:
- // (, line 85
- // delete, line 85
+ // (, line 87
+ // delete, line 87
slice_del();
break;
case 2:
- // (, line 88
+ // (, line 90
if (!(in_grouping_b(g_st_ending, 98, 116)))
{
break lab1;
}
- // hop, line 88
+ // hop, line 90
{
int c = cursor - 3;
if (limit_backward > c || c > limit)
@@ -443,27 +461,27 @@ public class GermanStemmer extends SnowballProgram {
}
cursor = c;
}
- // delete, line 88
+ // delete, line 90
slice_del();
break;
}
} while (false);
cursor = limit - v_2;
- // do, line 92
+ // do, line 94
v_3 = limit - cursor;
lab2: do {
- // (, line 92
- // [, line 93
+ // (, line 94
+ // [, line 95
ket = cursor;
- // substring, line 93
+ // substring, line 95
among_var = find_among_b(a_4, 8);
if (among_var == 0)
{
break lab2;
}
- // ], line 93
+ // ], line 95
bra = cursor;
- // call R2, line 93
+ // call R2, line 95
if (!r_R2())
{
break lab2;
@@ -472,28 +490,28 @@ public class GermanStemmer extends SnowballProgram {
case 0:
break lab2;
case 1:
- // (, line 95
- // delete, line 95
+ // (, line 97
+ // delete, line 97
slice_del();
- // try, line 96
+ // try, line 98
v_4 = limit - cursor;
lab3: do {
- // (, line 96
- // [, line 96
+ // (, line 98
+ // [, line 98
ket = cursor;
- // literal, line 96
+ // literal, line 98
if (!(eq_s_b(2, "ig")))
{
cursor = limit - v_4;
break lab3;
}
- // ], line 96
+ // ], line 98
bra = cursor;
- // not, line 96
+ // not, line 98
{
v_5 = limit - cursor;
lab4: do {
- // literal, line 96
+ // literal, line 98
if (!(eq_s_b(1, "e")))
{
break lab4;
@@ -503,23 +521,23 @@ public class GermanStemmer extends SnowballProgram {
} while (false);
cursor = limit - v_5;
}
- // call R2, line 96
+ // call R2, line 98
if (!r_R2())
{
cursor = limit - v_4;
break lab3;
}
- // delete, line 96
+ // delete, line 98
slice_del();
} while (false);
break;
case 2:
- // (, line 99
- // not, line 99
+ // (, line 101
+ // not, line 101
{
v_6 = limit - cursor;
lab5: do {
- // literal, line 99
+ // literal, line 101
if (!(eq_s_b(1, "e")))
{
break lab5;
@@ -528,24 +546,24 @@ public class GermanStemmer extends SnowballProgram {
} while (false);
cursor = limit - v_6;
}
- // delete, line 99
+ // delete, line 101
slice_del();
break;
case 3:
- // (, line 102
- // delete, line 102
+ // (, line 104
+ // delete, line 104
slice_del();
- // try, line 103
+ // try, line 105
v_7 = limit - cursor;
lab6: do {
- // (, line 103
- // [, line 104
+ // (, line 105
+ // [, line 106
ket = cursor;
- // or, line 104
+ // or, line 106
lab7: do {
v_8 = limit - cursor;
lab8: do {
- // literal, line 104
+ // literal, line 106
if (!(eq_s_b(2, "er")))
{
break lab8;
@@ -553,45 +571,45 @@ public class GermanStemmer extends SnowballProgram {
break lab7;
} while (false);
cursor = limit - v_8;
- // literal, line 104
+ // literal, line 106
if (!(eq_s_b(2, "en")))
{
cursor = limit - v_7;
break lab6;
}
} while (false);
- // ], line 104
+ // ], line 106
bra = cursor;
- // call R1, line 104
+ // call R1, line 106
if (!r_R1())
{
cursor = limit - v_7;
break lab6;
}
- // delete, line 104
+ // delete, line 106
slice_del();
} while (false);
break;
case 4:
- // (, line 108
- // delete, line 108
+ // (, line 110
+ // delete, line 110
slice_del();
- // try, line 109
+ // try, line 111
v_9 = limit - cursor;
lab9: do {
- // (, line 109
- // [, line 110
+ // (, line 111
+ // [, line 112
ket = cursor;
- // substring, line 110
+ // substring, line 112
among_var = find_among_b(a_3, 2);
if (among_var == 0)
{
cursor = limit - v_9;
break lab9;
}
- // ], line 110
+ // ], line 112
bra = cursor;
- // call R2, line 110
+ // call R2, line 112
if (!r_R2())
{
cursor = limit - v_9;
@@ -602,8 +620,8 @@ public class GermanStemmer extends SnowballProgram {
cursor = limit - v_9;
break lab9;
case 1:
- // (, line 112
- // delete, line 112
+ // (, line 114
+ // delete, line 114
slice_del();
break;
}
@@ -620,43 +638,43 @@ public class GermanStemmer extends SnowballProgram {
int v_2;
int v_3;
int v_4;
- // (, line 122
- // do, line 123
+ // (, line 124
+ // do, line 125
v_1 = cursor;
lab0: do {
- // call prelude, line 123
+ // call prelude, line 125
if (!r_prelude())
{
break lab0;
}
} while (false);
cursor = v_1;
- // do, line 124
+ // do, line 126
v_2 = cursor;
lab1: do {
- // call mark_regions, line 124
+ // call mark_regions, line 126
if (!r_mark_regions())
{
break lab1;
}
} while (false);
cursor = v_2;
- // backwards, line 125
+ // backwards, line 127
limit_backward = cursor; cursor = limit;
- // do, line 126
+ // do, line 128
v_3 = limit - cursor;
lab2: do {
- // call standard_suffix, line 126
+ // call standard_suffix, line 128
if (!r_standard_suffix())
{
break lab2;
}
} while (false);
cursor = limit - v_3;
- cursor = limit_backward; // do, line 127
+ cursor = limit_backward; // do, line 129
v_4 = cursor;
lab3: do {
- // call postlude, line 127
+ // call postlude, line 129
if (!r_postlude())
{
break lab3;
diff --git a/contrib/snowball/src/java/org/tartarus/snowball/ext/HungarianStemmer.java b/contrib/snowball/src/java/org/tartarus/snowball/ext/HungarianStemmer.java
new file mode 100644
index 00000000000..6aad5e54c7b
--- /dev/null
+++ b/contrib/snowball/src/java/org/tartarus/snowball/ext/HungarianStemmer.java
@@ -0,0 +1,1158 @@
+// This file was generated automatically by the Snowball to Java compiler
+
+package org.tartarus.snowball.ext;
+import org.tartarus.snowball.SnowballProgram;
+import org.tartarus.snowball.Among;
+
+/**
+ * Generated class implementing code defined by a snowball script.
+ */
+public class HungarianStemmer extends SnowballProgram {
+
+ private Among a_0[] = {
+ new Among ( "cs", -1, -1, "", this),
+ new Among ( "dzs", -1, -1, "", this),
+ new Among ( "gy", -1, -1, "", this),
+ new Among ( "ly", -1, -1, "", this),
+ new Among ( "ny", -1, -1, "", this),
+ new Among ( "sz", -1, -1, "", this),
+ new Among ( "ty", -1, -1, "", this),
+ new Among ( "zs", -1, -1, "", this)
+ };
+
+ private Among a_1[] = {
+ new Among ( "\u00E1", -1, 1, "", this),
+ new Among ( "\u00E9", -1, 2, "", this)
+ };
+
+ private Among a_2[] = {
+ new Among ( "bb", -1, -1, "", this),
+ new Among ( "cc", -1, -1, "", this),
+ new Among ( "dd", -1, -1, "", this),
+ new Among ( "ff", -1, -1, "", this),
+ new Among ( "gg", -1, -1, "", this),
+ new Among ( "jj", -1, -1, "", this),
+ new Among ( "kk", -1, -1, "", this),
+ new Among ( "ll", -1, -1, "", this),
+ new Among ( "mm", -1, -1, "", this),
+ new Among ( "nn", -1, -1, "", this),
+ new Among ( "pp", -1, -1, "", this),
+ new Among ( "rr", -1, -1, "", this),
+ new Among ( "ccs", -1, -1, "", this),
+ new Among ( "ss", -1, -1, "", this),
+ new Among ( "zzs", -1, -1, "", this),
+ new Among ( "tt", -1, -1, "", this),
+ new Among ( "vv", -1, -1, "", this),
+ new Among ( "ggy", -1, -1, "", this),
+ new Among ( "lly", -1, -1, "", this),
+ new Among ( "nny", -1, -1, "", this),
+ new Among ( "tty", -1, -1, "", this),
+ new Among ( "ssz", -1, -1, "", this),
+ new Among ( "zz", -1, -1, "", this)
+ };
+
+ private Among a_3[] = {
+ new Among ( "al", -1, 1, "", this),
+ new Among ( "el", -1, 2, "", this)
+ };
+
+ private Among a_4[] = {
+ new Among ( "ba", -1, -1, "", this),
+ new Among ( "ra", -1, -1, "", this),
+ new Among ( "be", -1, -1, "", this),
+ new Among ( "re", -1, -1, "", this),
+ new Among ( "ig", -1, -1, "", this),
+ new Among ( "nak", -1, -1, "", this),
+ new Among ( "nek", -1, -1, "", this),
+ new Among ( "val", -1, -1, "", this),
+ new Among ( "vel", -1, -1, "", this),
+ new Among ( "ul", -1, -1, "", this),
+ new Among ( "n\u00E1l", -1, -1, "", this),
+ new Among ( "n\u00E9l", -1, -1, "", this),
+ new Among ( "b\u00F3l", -1, -1, "", this),
+ new Among ( "r\u00F3l", -1, -1, "", this),
+ new Among ( "t\u00F3l", -1, -1, "", this),
+ new Among ( "b\u00F5l", -1, -1, "", this),
+ new Among ( "r\u00F5l", -1, -1, "", this),
+ new Among ( "t\u00F5l", -1, -1, "", this),
+ new Among ( "\u00FCl", -1, -1, "", this),
+ new Among ( "n", -1, -1, "", this),
+ new Among ( "an", 19, -1, "", this),
+ new Among ( "ban", 20, -1, "", this),
+ new Among ( "en", 19, -1, "", this),
+ new Among ( "ben", 22, -1, "", this),
+ new Among ( "k\u00E9ppen", 22, -1, "", this),
+ new Among ( "on", 19, -1, "", this),
+ new Among ( "\u00F6n", 19, -1, "", this),
+ new Among ( "k\u00E9pp", -1, -1, "", this),
+ new Among ( "kor", -1, -1, "", this),
+ new Among ( "t", -1, -1, "", this),
+ new Among ( "at", 29, -1, "", this),
+ new Among ( "et", 29, -1, "", this),
+ new Among ( "k\u00E9nt", 29, -1, "", this),
+ new Among ( "ank\u00E9nt", 32, -1, "", this),
+ new Among ( "enk\u00E9nt", 32, -1, "", this),
+ new Among ( "onk\u00E9nt", 32, -1, "", this),
+ new Among ( "ot", 29, -1, "", this),
+ new Among ( "\u00E9rt", 29, -1, "", this),
+ new Among ( "\u00F6t", 29, -1, "", this),
+ new Among ( "hez", -1, -1, "", this),
+ new Among ( "hoz", -1, -1, "", this),
+ new Among ( "h\u00F6z", -1, -1, "", this),
+ new Among ( "v\u00E1", -1, -1, "", this),
+ new Among ( "v\u00E9", -1, -1, "", this)
+ };
+
+ private Among a_5[] = {
+ new Among ( "\u00E1n", -1, 2, "", this),
+ new Among ( "\u00E9n", -1, 1, "", this),
+ new Among ( "\u00E1nk\u00E9nt", -1, 3, "", this)
+ };
+
+ private Among a_6[] = {
+ new Among ( "stul", -1, 2, "", this),
+ new Among ( "astul", 0, 1, "", this),
+ new Among ( "\u00E1stul", 0, 3, "", this),
+ new Among ( "st\u00FCl", -1, 2, "", this),
+ new Among ( "est\u00FCl", 3, 1, "", this),
+ new Among ( "\u00E9st\u00FCl", 3, 4, "", this)
+ };
+
+ private Among a_7[] = {
+ new Among ( "\u00E1", -1, 1, "", this),
+ new Among ( "\u00E9", -1, 2, "", this)
+ };
+
+ private Among a_8[] = {
+ new Among ( "k", -1, 7, "", this),
+ new Among ( "ak", 0, 4, "", this),
+ new Among ( "ek", 0, 6, "", this),
+ new Among ( "ok", 0, 5, "", this),
+ new Among ( "\u00E1k", 0, 1, "", this),
+ new Among ( "\u00E9k", 0, 2, "", this),
+ new Among ( "\u00F6k", 0, 3, "", this)
+ };
+
+ private Among a_9[] = {
+ new Among ( "\u00E9i", -1, 7, "", this),
+ new Among ( "\u00E1\u00E9i", 0, 6, "", this),
+ new Among ( "\u00E9\u00E9i", 0, 5, "", this),
+ new Among ( "\u00E9", -1, 9, "", this),
+ new Among ( "k\u00E9", 3, 4, "", this),
+ new Among ( "ak\u00E9", 4, 1, "", this),
+ new Among ( "ek\u00E9", 4, 1, "", this),
+ new Among ( "ok\u00E9", 4, 1, "", this),
+ new Among ( "\u00E1k\u00E9", 4, 3, "", this),
+ new Among ( "\u00E9k\u00E9", 4, 2, "", this),
+ new Among ( "\u00F6k\u00E9", 4, 1, "", this),
+ new Among ( "\u00E9\u00E9", 3, 8, "", this)
+ };
+
+ private Among a_10[] = {
+ new Among ( "a", -1, 18, "", this),
+ new Among ( "ja", 0, 17, "", this),
+ new Among ( "d", -1, 16, "", this),
+ new Among ( "ad", 2, 13, "", this),
+ new Among ( "ed", 2, 13, "", this),
+ new Among ( "od", 2, 13, "", this),
+ new Among ( "\u00E1d", 2, 14, "", this),
+ new Among ( "\u00E9d", 2, 15, "", this),
+ new Among ( "\u00F6d", 2, 13, "", this),
+ new Among ( "e", -1, 18, "", this),
+ new Among ( "je", 9, 17, "", this),
+ new Among ( "nk", -1, 4, "", this),
+ new Among ( "unk", 11, 1, "", this),
+ new Among ( "\u00E1nk", 11, 2, "", this),
+ new Among ( "\u00E9nk", 11, 3, "", this),
+ new Among ( "\u00FCnk", 11, 1, "", this),
+ new Among ( "uk", -1, 8, "", this),
+ new Among ( "juk", 16, 7, "", this),
+ new Among ( "\u00E1juk", 17, 5, "", this),
+ new Among ( "\u00FCk", -1, 8, "", this),
+ new Among ( "j\u00FCk", 19, 7, "", this),
+ new Among ( "\u00E9j\u00FCk", 20, 6, "", this),
+ new Among ( "m", -1, 12, "", this),
+ new Among ( "am", 22, 9, "", this),
+ new Among ( "em", 22, 9, "", this),
+ new Among ( "om", 22, 9, "", this),
+ new Among ( "\u00E1m", 22, 10, "", this),
+ new Among ( "\u00E9m", 22, 11, "", this),
+ new Among ( "o", -1, 18, "", this),
+ new Among ( "\u00E1", -1, 19, "", this),
+ new Among ( "\u00E9", -1, 20, "", this)
+ };
+
+ private Among a_11[] = {
+ new Among ( "id", -1, 10, "", this),
+ new Among ( "aid", 0, 9, "", this),
+ new Among ( "jaid", 1, 6, "", this),
+ new Among ( "eid", 0, 9, "", this),
+ new Among ( "jeid", 3, 6, "", this),
+ new Among ( "\u00E1id", 0, 7, "", this),
+ new Among ( "\u00E9id", 0, 8, "", this),
+ new Among ( "i", -1, 15, "", this),
+ new Among ( "ai", 7, 14, "", this),
+ new Among ( "jai", 8, 11, "", this),
+ new Among ( "ei", 7, 14, "", this),
+ new Among ( "jei", 10, 11, "", this),
+ new Among ( "\u00E1i", 7, 12, "", this),
+ new Among ( "\u00E9i", 7, 13, "", this),
+ new Among ( "itek", -1, 24, "", this),
+ new Among ( "eitek", 14, 21, "", this),
+ new Among ( "jeitek", 15, 20, "", this),
+ new Among ( "\u00E9itek", 14, 23, "", this),
+ new Among ( "ik", -1, 29, "", this),
+ new Among ( "aik", 18, 26, "", this),
+ new Among ( "jaik", 19, 25, "", this),
+ new Among ( "eik", 18, 26, "", this),
+ new Among ( "jeik", 21, 25, "", this),
+ new Among ( "\u00E1ik", 18, 27, "", this),
+ new Among ( "\u00E9ik", 18, 28, "", this),
+ new Among ( "ink", -1, 20, "", this),
+ new Among ( "aink", 25, 17, "", this),
+ new Among ( "jaink", 26, 16, "", this),
+ new Among ( "eink", 25, 17, "", this),
+ new Among ( "jeink", 28, 16, "", this),
+ new Among ( "\u00E1ink", 25, 18, "", this),
+ new Among ( "\u00E9ink", 25, 19, "", this),
+ new Among ( "aitok", -1, 21, "", this),
+ new Among ( "jaitok", 32, 20, "", this),
+ new Among ( "\u00E1itok", -1, 22, "", this),
+ new Among ( "im", -1, 5, "", this),
+ new Among ( "aim", 35, 4, "", this),
+ new Among ( "jaim", 36, 1, "", this),
+ new Among ( "eim", 35, 4, "", this),
+ new Among ( "jeim", 38, 1, "", this),
+ new Among ( "\u00E1im", 35, 2, "", this),
+ new Among ( "\u00E9im", 35, 3, "", this)
+ };
+
+ private static final char g_v[] = {17, 65, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 17, 52, 14 };
+
+ private int I_p1;
+
+ private void copy_from(HungarianStemmer other) {
+ I_p1 = other.I_p1;
+ super.copy_from(other);
+ }
+
+ private boolean r_mark_regions() {
+ int v_1;
+ int v_2;
+ int v_3;
+ // (, line 44
+ I_p1 = limit;
+ // or, line 51
+ lab0: do {
+ v_1 = cursor;
+ lab1: do {
+ // (, line 48
+ if (!(in_grouping(g_v, 97, 252)))
+ {
+ break lab1;
+ }
+ // goto, line 48
+ golab2: while(true)
+ {
+ v_2 = cursor;
+ lab3: do {
+ if (!(out_grouping(g_v, 97, 252)))
+ {
+ break lab3;
+ }
+ cursor = v_2;
+ break golab2;
+ } while (false);
+ cursor = v_2;
+ if (cursor >= limit)
+ {
+ break lab1;
+ }
+ cursor++;
+ }
+ // or, line 49
+ lab4: do {
+ v_3 = cursor;
+ lab5: do {
+ // among, line 49
+ if (find_among(a_0, 8) == 0)
+ {
+ break lab5;
+ }
+ break lab4;
+ } while (false);
+ cursor = v_3;
+ // next, line 49
+ if (cursor >= limit)
+ {
+ break lab1;
+ }
+ cursor++;
+ } while (false);
+ // setmark p1, line 50
+ I_p1 = cursor;
+ break lab0;
+ } while (false);
+ cursor = v_1;
+ // (, line 53
+ if (!(out_grouping(g_v, 97, 252)))
+ {
+ return false;
+ }
+ // gopast, line 53
+ golab6: while(true)
+ {
+ lab7: do {
+ if (!(in_grouping(g_v, 97, 252)))
+ {
+ break lab7;
+ }
+ break golab6;
+ } while (false);
+ if (cursor >= limit)
+ {
+ return false;
+ }
+ cursor++;
+ }
+ // setmark p1, line 53
+ I_p1 = cursor;
+ } while (false);
+ return true;
+ }
+
+ private boolean r_R1() {
+ if (!(I_p1 <= cursor))
+ {
+ return false;
+ }
+ return true;
+ }
+
+ private boolean r_v_ending() {
+ int among_var;
+ // (, line 60
+ // [, line 61
+ ket = cursor;
+ // substring, line 61
+ among_var = find_among_b(a_1, 2);
+ if (among_var == 0)
+ {
+ return false;
+ }
+ // ], line 61
+ bra = cursor;
+ // call R1, line 61
+ if (!r_R1())
+ {
+ return false;
+ }
+ switch(among_var) {
+ case 0:
+ return false;
+ case 1:
+ // (, line 62
+ // <-, line 62
+ slice_from("a");
+ break;
+ case 2:
+ // (, line 63
+ // <-, line 63
+ slice_from("e");
+ break;
+ }
+ return true;
+ }
+
+ private boolean r_double() {
+ int v_1;
+ // (, line 67
+ // test, line 68
+ v_1 = limit - cursor;
+ // among, line 68
+ if (find_among_b(a_2, 23) == 0)
+ {
+ return false;
+ }
+ cursor = limit - v_1;
+ return true;
+ }
+
+ private boolean r_undouble() {
+ // (, line 72
+ // next, line 73
+ if (cursor <= limit_backward)
+ {
+ return false;
+ }
+ cursor--;
+ // [, line 73
+ ket = cursor;
+ // hop, line 73
+ {
+ int c = cursor - 1;
+ if (limit_backward > c || c > limit)
+ {
+ return false;
+ }
+ cursor = c;
+ }
+ // ], line 73
+ bra = cursor;
+ // delete, line 73
+ slice_del();
+ return true;
+ }
+
+ private boolean r_instrum() {
+ int among_var;
+ // (, line 76
+ // [, line 77
+ ket = cursor;
+ // substring, line 77
+ among_var = find_among_b(a_3, 2);
+ if (among_var == 0)
+ {
+ return false;
+ }
+ // ], line 77
+ bra = cursor;
+ // call R1, line 77
+ if (!r_R1())
+ {
+ return false;
+ }
+ switch(among_var) {
+ case 0:
+ return false;
+ case 1:
+ // (, line 78
+ // call double, line 78
+ if (!r_double())
+ {
+ return false;
+ }
+ break;
+ case 2:
+ // (, line 79
+ // call double, line 79
+ if (!r_double())
+ {
+ return false;
+ }
+ break;
+ }
+ // delete, line 81
+ slice_del();
+ // call undouble, line 82
+ if (!r_undouble())
+ {
+ return false;
+ }
+ return true;
+ }
+
+ private boolean r_case() {
+ // (, line 86
+ // [, line 87
+ ket = cursor;
+ // substring, line 87
+ if (find_among_b(a_4, 44) == 0)
+ {
+ return false;
+ }
+ // ], line 87
+ bra = cursor;
+ // call R1, line 87
+ if (!r_R1())
+ {
+ return false;
+ }
+ // delete, line 111
+ slice_del();
+ // call v_ending, line 112
+ if (!r_v_ending())
+ {
+ return false;
+ }
+ return true;
+ }
+
+ private boolean r_case_special() {
+ int among_var;
+ // (, line 115
+ // [, line 116
+ ket = cursor;
+ // substring, line 116
+ among_var = find_among_b(a_5, 3);
+ if (among_var == 0)
+ {
+ return false;
+ }
+ // ], line 116
+ bra = cursor;
+ // call R1, line 116
+ if (!r_R1())
+ {
+ return false;
+ }
+ switch(among_var) {
+ case 0:
+ return false;
+ case 1:
+ // (, line 117
+ // <-, line 117
+ slice_from("e");
+ break;
+ case 2:
+ // (, line 118
+ // <-, line 118
+ slice_from("a");
+ break;
+ case 3:
+ // (, line 119
+ // <-, line 119
+ slice_from("a");
+ break;
+ }
+ return true;
+ }
+
+ private boolean r_case_other() {
+ int among_var;
+ // (, line 123
+ // [, line 124
+ ket = cursor;
+ // substring, line 124
+ among_var = find_among_b(a_6, 6);
+ if (among_var == 0)
+ {
+ return false;
+ }
+ // ], line 124
+ bra = cursor;
+ // call R1, line 124
+ if (!r_R1())
+ {
+ return false;
+ }
+ switch(among_var) {
+ case 0:
+ return false;
+ case 1:
+ // (, line 125
+ // delete, line 125
+ slice_del();
+ break;
+ case 2:
+ // (, line 126
+ // delete, line 126
+ slice_del();
+ break;
+ case 3:
+ // (, line 127
+ // <-, line 127
+ slice_from("a");
+ break;
+ case 4:
+ // (, line 128
+ // <-, line 128
+ slice_from("e");
+ break;
+ }
+ return true;
+ }
+
+ private boolean r_factive() {
+ int among_var;
+ // (, line 132
+ // [, line 133
+ ket = cursor;
+ // substring, line 133
+ among_var = find_among_b(a_7, 2);
+ if (among_var == 0)
+ {
+ return false;
+ }
+ // ], line 133
+ bra = cursor;
+ // call R1, line 133
+ if (!r_R1())
+ {
+ return false;
+ }
+ switch(among_var) {
+ case 0:
+ return false;
+ case 1:
+ // (, line 134
+ // call double, line 134
+ if (!r_double())
+ {
+ return false;
+ }
+ break;
+ case 2:
+ // (, line 135
+ // call double, line 135
+ if (!r_double())
+ {
+ return false;
+ }
+ break;
+ }
+ // delete, line 137
+ slice_del();
+ // call undouble, line 138
+ if (!r_undouble())
+ {
+ return false;
+ }
+ return true;
+ }
+
+ private boolean r_plural() {
+ int among_var;
+ // (, line 141
+ // [, line 142
+ ket = cursor;
+ // substring, line 142
+ among_var = find_among_b(a_8, 7);
+ if (among_var == 0)
+ {
+ return false;
+ }
+ // ], line 142
+ bra = cursor;
+ // call R1, line 142
+ if (!r_R1())
+ {
+ return false;
+ }
+ switch(among_var) {
+ case 0:
+ return false;
+ case 1:
+ // (, line 143
+ // <-, line 143
+ slice_from("a");
+ break;
+ case 2:
+ // (, line 144
+ // <-, line 144
+ slice_from("e");
+ break;
+ case 3:
+ // (, line 145
+ // delete, line 145
+ slice_del();
+ break;
+ case 4:
+ // (, line 146
+ // delete, line 146
+ slice_del();
+ break;
+ case 5:
+ // (, line 147
+ // delete, line 147
+ slice_del();
+ break;
+ case 6:
+ // (, line 148
+ // delete, line 148
+ slice_del();
+ break;
+ case 7:
+ // (, line 149
+ // delete, line 149
+ slice_del();
+ break;
+ }
+ return true;
+ }
+
+ private boolean r_owned() {
+ int among_var;
+ // (, line 153
+ // [, line 154
+ ket = cursor;
+ // substring, line 154
+ among_var = find_among_b(a_9, 12);
+ if (among_var == 0)
+ {
+ return false;
+ }
+ // ], line 154
+ bra = cursor;
+ // call R1, line 154
+ if (!r_R1())
+ {
+ return false;
+ }
+ switch(among_var) {
+ case 0:
+ return false;
+ case 1:
+ // (, line 155
+ // delete, line 155
+ slice_del();
+ break;
+ case 2:
+ // (, line 156
+ // <-, line 156
+ slice_from("e");
+ break;
+ case 3:
+ // (, line 157
+ // <-, line 157
+ slice_from("a");
+ break;
+ case 4:
+ // (, line 158
+ // delete, line 158
+ slice_del();
+ break;
+ case 5:
+ // (, line 159
+ // <-, line 159
+ slice_from("e");
+ break;
+ case 6:
+ // (, line 160
+ // <-, line 160
+ slice_from("a");
+ break;
+ case 7:
+ // (, line 161
+ // delete, line 161
+ slice_del();
+ break;
+ case 8:
+ // (, line 162
+ // <-, line 162
+ slice_from("e");
+ break;
+ case 9:
+ // (, line 163
+ // delete, line 163
+ slice_del();
+ break;
+ }
+ return true;
+ }
+
+ private boolean r_sing_owner() {
+ int among_var;
+ // (, line 167
+ // [, line 168
+ ket = cursor;
+ // substring, line 168
+ among_var = find_among_b(a_10, 31);
+ if (among_var == 0)
+ {
+ return false;
+ }
+ // ], line 168
+ bra = cursor;
+ // call R1, line 168
+ if (!r_R1())
+ {
+ return false;
+ }
+ switch(among_var) {
+ case 0:
+ return false;
+ case 1:
+ // (, line 169
+ // delete, line 169
+ slice_del();
+ break;
+ case 2:
+ // (, line 170
+ // <-, line 170
+ slice_from("a");
+ break;
+ case 3:
+ // (, line 171
+ // <-, line 171
+ slice_from("e");
+ break;
+ case 4:
+ // (, line 172
+ // delete, line 172
+ slice_del();
+ break;
+ case 5:
+ // (, line 173
+ // <-, line 173
+ slice_from("a");
+ break;
+ case 6:
+ // (, line 174
+ // <-, line 174
+ slice_from("e");
+ break;
+ case 7:
+ // (, line 175
+ // delete, line 175
+ slice_del();
+ break;
+ case 8:
+ // (, line 176
+ // delete, line 176
+ slice_del();
+ break;
+ case 9:
+ // (, line 177
+ // delete, line 177
+ slice_del();
+ break;
+ case 10:
+ // (, line 178
+ // <-, line 178
+ slice_from("a");
+ break;
+ case 11:
+ // (, line 179
+ // <-, line 179
+ slice_from("e");
+ break;
+ case 12:
+ // (, line 180
+ // delete, line 180
+ slice_del();
+ break;
+ case 13:
+ // (, line 181
+ // delete, line 181
+ slice_del();
+ break;
+ case 14:
+ // (, line 182
+ // <-, line 182
+ slice_from("a");
+ break;
+ case 15:
+ // (, line 183
+ // <-, line 183
+ slice_from("e");
+ break;
+ case 16:
+ // (, line 184
+ // delete, line 184
+ slice_del();
+ break;
+ case 17:
+ // (, line 185
+ // delete, line 185
+ slice_del();
+ break;
+ case 18:
+ // (, line 186
+ // delete, line 186
+ slice_del();
+ break;
+ case 19:
+ // (, line 187
+ // <-, line 187
+ slice_from("a");
+ break;
+ case 20:
+ // (, line 188
+ // <-, line 188
+ slice_from("e");
+ break;
+ }
+ return true;
+ }
+
+ private boolean r_plur_owner() {
+ int among_var;
+ // (, line 192
+ // [, line 193
+ ket = cursor;
+ // substring, line 193
+ among_var = find_among_b(a_11, 42);
+ if (among_var == 0)
+ {
+ return false;
+ }
+ // ], line 193
+ bra = cursor;
+ // call R1, line 193
+ if (!r_R1())
+ {
+ return false;
+ }
+ switch(among_var) {
+ case 0:
+ return false;
+ case 1:
+ // (, line 194
+ // delete, line 194
+ slice_del();
+ break;
+ case 2:
+ // (, line 195
+ // <-, line 195
+ slice_from("a");
+ break;
+ case 3:
+ // (, line 196
+ // <-, line 196
+ slice_from("e");
+ break;
+ case 4:
+ // (, line 197
+ // delete, line 197
+ slice_del();
+ break;
+ case 5:
+ // (, line 198
+ // delete, line 198
+ slice_del();
+ break;
+ case 6:
+ // (, line 199
+ // delete, line 199
+ slice_del();
+ break;
+ case 7:
+ // (, line 200
+ // <-, line 200
+ slice_from("a");
+ break;
+ case 8:
+ // (, line 201
+ // <-, line 201
+ slice_from("e");
+ break;
+ case 9:
+ // (, line 202
+ // delete, line 202
+ slice_del();
+ break;
+ case 10:
+ // (, line 203
+ // delete, line 203
+ slice_del();
+ break;
+ case 11:
+ // (, line 204
+ // delete, line 204
+ slice_del();
+ break;
+ case 12:
+ // (, line 205
+ // <-, line 205
+ slice_from("a");
+ break;
+ case 13:
+ // (, line 206
+ // <-, line 206
+ slice_from("e");
+ break;
+ case 14:
+ // (, line 207
+ // delete, line 207
+ slice_del();
+ break;
+ case 15:
+ // (, line 208
+ // delete, line 208
+ slice_del();
+ break;
+ case 16:
+ // (, line 209
+ // delete, line 209
+ slice_del();
+ break;
+ case 17:
+ // (, line 210
+ // delete, line 210
+ slice_del();
+ break;
+ case 18:
+ // (, line 211
+ // <-, line 211
+ slice_from("a");
+ break;
+ case 19:
+ // (, line 212
+ // <-, line 212
+ slice_from("e");
+ break;
+ case 20:
+ // (, line 214
+ // delete, line 214
+ slice_del();
+ break;
+ case 21:
+ // (, line 215
+ // delete, line 215
+ slice_del();
+ break;
+ case 22:
+ // (, line 216
+ // <-, line 216
+ slice_from("a");
+ break;
+ case 23:
+ // (, line 217
+ // <-, line 217
+ slice_from("e");
+ break;
+ case 24:
+ // (, line 218
+ // delete, line 218
+ slice_del();
+ break;
+ case 25:
+ // (, line 219
+ // delete, line 219
+ slice_del();
+ break;
+ case 26:
+ // (, line 220
+ // delete, line 220
+ slice_del();
+ break;
+ case 27:
+ // (, line 221
+ // <-, line 221
+ slice_from("a");
+ break;
+ case 28:
+ // (, line 222
+ // <-, line 222
+ slice_from("e");
+ break;
+ case 29:
+ // (, line 223
+ // delete, line 223
+ slice_del();
+ break;
+ }
+ return true;
+ }
+
+ public boolean stem() {
+ int v_1;
+ int v_2;
+ int v_3;
+ int v_4;
+ int v_5;
+ int v_6;
+ int v_7;
+ int v_8;
+ int v_9;
+ int v_10;
+ // (, line 228
+ // do, line 229
+ v_1 = cursor;
+ lab0: do {
+ // call mark_regions, line 229
+ if (!r_mark_regions())
+ {
+ break lab0;
+ }
+ } while (false);
+ cursor = v_1;
+ // backwards, line 230
+ limit_backward = cursor; cursor = limit;
+ // (, line 230
+ // do, line 231
+ v_2 = limit - cursor;
+ lab1: do {
+ // call instrum, line 231
+ if (!r_instrum())
+ {
+ break lab1;
+ }
+ } while (false);
+ cursor = limit - v_2;
+ // do, line 232
+ v_3 = limit - cursor;
+ lab2: do {
+ // call case, line 232
+ if (!r_case())
+ {
+ break lab2;
+ }
+ } while (false);
+ cursor = limit - v_3;
+ // do, line 233
+ v_4 = limit - cursor;
+ lab3: do {
+ // call case_special, line 233
+ if (!r_case_special())
+ {
+ break lab3;
+ }
+ } while (false);
+ cursor = limit - v_4;
+ // do, line 234
+ v_5 = limit - cursor;
+ lab4: do {
+ // call case_other, line 234
+ if (!r_case_other())
+ {
+ break lab4;
+ }
+ } while (false);
+ cursor = limit - v_5;
+ // do, line 235
+ v_6 = limit - cursor;
+ lab5: do {
+ // call factive, line 235
+ if (!r_factive())
+ {
+ break lab5;
+ }
+ } while (false);
+ cursor = limit - v_6;
+ // do, line 236
+ v_7 = limit - cursor;
+ lab6: do {
+ // call owned, line 236
+ if (!r_owned())
+ {
+ break lab6;
+ }
+ } while (false);
+ cursor = limit - v_7;
+ // do, line 237
+ v_8 = limit - cursor;
+ lab7: do {
+ // call sing_owner, line 237
+ if (!r_sing_owner())
+ {
+ break lab7;
+ }
+ } while (false);
+ cursor = limit - v_8;
+ // do, line 238
+ v_9 = limit - cursor;
+ lab8: do {
+ // call plur_owner, line 238
+ if (!r_plur_owner())
+ {
+ break lab8;
+ }
+ } while (false);
+ cursor = limit - v_9;
+ // do, line 239
+ v_10 = limit - cursor;
+ lab9: do {
+ // call plural, line 239
+ if (!r_plural())
+ {
+ break lab9;
+ }
+ } while (false);
+ cursor = limit - v_10;
+ cursor = limit_backward; return true;
+ }
+
+}
+
diff --git a/contrib/snowball/src/java/net/sf/snowball/ext/ItalianStemmer.java b/contrib/snowball/src/java/org/tartarus/snowball/ext/ItalianStemmer.java
similarity index 89%
rename from contrib/snowball/src/java/net/sf/snowball/ext/ItalianStemmer.java
rename to contrib/snowball/src/java/org/tartarus/snowball/ext/ItalianStemmer.java
index 03f295b1637..d352b867c0c 100644
--- a/contrib/snowball/src/java/net/sf/snowball/ext/ItalianStemmer.java
+++ b/contrib/snowball/src/java/org/tartarus/snowball/ext/ItalianStemmer.java
@@ -1,8 +1,8 @@
// This file was generated automatically by the Snowball to Java compiler
-package net.sf.snowball.ext;
-import net.sf.snowball.SnowballProgram;
-import net.sf.snowball.Among;
+package org.tartarus.snowball.ext;
+import org.tartarus.snowball.SnowballProgram;
+import org.tartarus.snowball.Among;
/**
* Generated class implementing code defined by a snowball script.
@@ -105,14 +105,15 @@ public class ItalianStemmer extends SnowballProgram {
new Among ( "uzione", -1, 4, "", this),
new Among ( "atore", -1, 2, "", this),
new Among ( "ose", -1, 1, "", this),
+ new Among ( "ante", -1, 1, "", this),
new Among ( "mente", -1, 1, "", this),
- new Among ( "amente", 18, 7, "", this),
+ new Among ( "amente", 19, 7, "", this),
new Among ( "iste", -1, 1, "", this),
new Among ( "ive", -1, 9, "", this),
new Among ( "anze", -1, 1, "", this),
new Among ( "enze", -1, 5, "", this),
new Among ( "ici", -1, 1, "", this),
- new Among ( "atrici", 24, 1, "", this),
+ new Among ( "atrici", 25, 1, "", this),
new Among ( "ichi", -1, 1, "", this),
new Among ( "abili", -1, 1, "", this),
new Among ( "ibili", -1, 1, "", this),
@@ -122,6 +123,7 @@ public class ItalianStemmer extends SnowballProgram {
new Among ( "uzioni", -1, 4, "", this),
new Among ( "atori", -1, 2, "", this),
new Among ( "osi", -1, 1, "", this),
+ new Among ( "anti", -1, 1, "", this),
new Among ( "amenti", -1, 6, "", this),
new Among ( "imenti", -1, 6, "", this),
new Among ( "isti", -1, 1, "", this),
@@ -719,7 +721,7 @@ public class ItalianStemmer extends SnowballProgram {
// [, line 104
ket = cursor;
// substring, line 104
- among_var = find_among_b(a_6, 49);
+ among_var = find_among_b(a_6, 51);
if (among_var == 0)
{
return false;
@@ -730,238 +732,238 @@ public class ItalianStemmer extends SnowballProgram {
case 0:
return false;
case 1:
- // (, line 110
- // call R2, line 110
+ // (, line 111
+ // call R2, line 111
if (!r_R2())
{
return false;
}
- // delete, line 110
+ // delete, line 111
slice_del();
break;
case 2:
- // (, line 112
- // call R2, line 112
+ // (, line 113
+ // call R2, line 113
if (!r_R2())
{
return false;
}
- // delete, line 112
+ // delete, line 113
slice_del();
- // try, line 113
+ // try, line 114
v_1 = limit - cursor;
lab0: do {
- // (, line 113
- // [, line 113
+ // (, line 114
+ // [, line 114
ket = cursor;
- // literal, line 113
+ // literal, line 114
if (!(eq_s_b(2, "ic")))
{
cursor = limit - v_1;
break lab0;
}
- // ], line 113
+ // ], line 114
bra = cursor;
- // call R2, line 113
+ // call R2, line 114
if (!r_R2())
{
cursor = limit - v_1;
break lab0;
}
- // delete, line 113
+ // delete, line 114
slice_del();
} while (false);
break;
case 3:
- // (, line 116
- // call R2, line 116
+ // (, line 117
+ // call R2, line 117
if (!r_R2())
{
return false;
}
- // <-, line 116
+ // <-, line 117
slice_from("log");
break;
case 4:
- // (, line 118
- // call R2, line 118
+ // (, line 119
+ // call R2, line 119
if (!r_R2())
{
return false;
}
- // <-, line 118
+ // <-, line 119
slice_from("u");
break;
case 5:
- // (, line 120
- // call R2, line 120
+ // (, line 121
+ // call R2, line 121
if (!r_R2())
{
return false;
}
- // <-, line 120
+ // <-, line 121
slice_from("ente");
break;
case 6:
- // (, line 122
- // call RV, line 122
+ // (, line 123
+ // call RV, line 123
if (!r_RV())
{
return false;
}
- // delete, line 122
+ // delete, line 123
slice_del();
break;
case 7:
- // (, line 123
- // call R1, line 124
+ // (, line 124
+ // call R1, line 125
if (!r_R1())
{
return false;
}
- // delete, line 124
+ // delete, line 125
slice_del();
- // try, line 125
+ // try, line 126
v_2 = limit - cursor;
lab1: do {
- // (, line 125
- // [, line 126
+ // (, line 126
+ // [, line 127
ket = cursor;
- // substring, line 126
+ // substring, line 127
among_var = find_among_b(a_4, 4);
if (among_var == 0)
{
cursor = limit - v_2;
break lab1;
}
- // ], line 126
+ // ], line 127
bra = cursor;
- // call R2, line 126
+ // call R2, line 127
if (!r_R2())
{
cursor = limit - v_2;
break lab1;
}
- // delete, line 126
+ // delete, line 127
slice_del();
switch(among_var) {
case 0:
cursor = limit - v_2;
break lab1;
case 1:
- // (, line 127
- // [, line 127
+ // (, line 128
+ // [, line 128
ket = cursor;
- // literal, line 127
+ // literal, line 128
if (!(eq_s_b(2, "at")))
{
cursor = limit - v_2;
break lab1;
}
- // ], line 127
+ // ], line 128
bra = cursor;
- // call R2, line 127
+ // call R2, line 128
if (!r_R2())
{
cursor = limit - v_2;
break lab1;
}
- // delete, line 127
+ // delete, line 128
slice_del();
break;
}
} while (false);
break;
case 8:
- // (, line 132
- // call R2, line 133
+ // (, line 133
+ // call R2, line 134
if (!r_R2())
{
return false;
}
- // delete, line 133
+ // delete, line 134
slice_del();
- // try, line 134
+ // try, line 135
v_3 = limit - cursor;
lab2: do {
- // (, line 134
- // [, line 135
+ // (, line 135
+ // [, line 136
ket = cursor;
- // substring, line 135
+ // substring, line 136
among_var = find_among_b(a_5, 3);
if (among_var == 0)
{
cursor = limit - v_3;
break lab2;
}
- // ], line 135
+ // ], line 136
bra = cursor;
switch(among_var) {
case 0:
cursor = limit - v_3;
break lab2;
case 1:
- // (, line 136
- // call R2, line 136
+ // (, line 137
+ // call R2, line 137
if (!r_R2())
{
cursor = limit - v_3;
break lab2;
}
- // delete, line 136
+ // delete, line 137
slice_del();
break;
}
} while (false);
break;
case 9:
- // (, line 140
- // call R2, line 141
+ // (, line 141
+ // call R2, line 142
if (!r_R2())
{
return false;
}
- // delete, line 141
+ // delete, line 142
slice_del();
- // try, line 142
+ // try, line 143
v_4 = limit - cursor;
lab3: do {
- // (, line 142
- // [, line 142
+ // (, line 143
+ // [, line 143
ket = cursor;
- // literal, line 142
+ // literal, line 143
if (!(eq_s_b(2, "at")))
{
cursor = limit - v_4;
break lab3;
}
- // ], line 142
+ // ], line 143
bra = cursor;
- // call R2, line 142
+ // call R2, line 143
if (!r_R2())
{
cursor = limit - v_4;
break lab3;
}
- // delete, line 142
+ // delete, line 143
slice_del();
- // [, line 142
+ // [, line 143
ket = cursor;
- // literal, line 142
+ // literal, line 143
if (!(eq_s_b(2, "ic")))
{
cursor = limit - v_4;
break lab3;
}
- // ], line 142
+ // ], line 143
bra = cursor;
- // call R2, line 142
+ // call R2, line 143
if (!r_R2())
{
cursor = limit - v_4;
break lab3;
}
- // delete, line 142
+ // delete, line 143
slice_del();
} while (false);
break;
@@ -973,9 +975,9 @@ public class ItalianStemmer extends SnowballProgram {
int among_var;
int v_1;
int v_2;
- // setlimit, line 147
+ // setlimit, line 148
v_1 = limit - cursor;
- // tomark, line 147
+ // tomark, line 148
if (cursor < I_pV)
{
return false;
@@ -984,25 +986,25 @@ public class ItalianStemmer extends SnowballProgram {
v_2 = limit_backward;
limit_backward = cursor;
cursor = limit - v_1;
- // (, line 147
- // [, line 148
+ // (, line 148
+ // [, line 149
ket = cursor;
- // substring, line 148
+ // substring, line 149
among_var = find_among_b(a_7, 87);
if (among_var == 0)
{
limit_backward = v_2;
return false;
}
- // ], line 148
+ // ], line 149
bra = cursor;
switch(among_var) {
case 0:
limit_backward = v_2;
return false;
case 1:
- // (, line 162
- // delete, line 162
+ // (, line 163
+ // delete, line 163
slice_del();
break;
}
@@ -1013,73 +1015,73 @@ public class ItalianStemmer extends SnowballProgram {
private boolean r_vowel_suffix() {
int v_1;
int v_2;
- // (, line 169
- // try, line 170
+ // (, line 170
+ // try, line 171
v_1 = limit - cursor;
lab0: do {
- // (, line 170
- // [, line 171
+ // (, line 171
+ // [, line 172
ket = cursor;
if (!(in_grouping_b(g_AEIO, 97, 242)))
{
cursor = limit - v_1;
break lab0;
}
- // ], line 171
+ // ], line 172
bra = cursor;
- // call RV, line 171
+ // call RV, line 172
if (!r_RV())
{
cursor = limit - v_1;
break lab0;
}
- // delete, line 171
+ // delete, line 172
slice_del();
- // [, line 172
+ // [, line 173
ket = cursor;
- // literal, line 172
+ // literal, line 173
if (!(eq_s_b(1, "i")))
{
cursor = limit - v_1;
break lab0;
}
- // ], line 172
+ // ], line 173
bra = cursor;
- // call RV, line 172
+ // call RV, line 173
if (!r_RV())
{
cursor = limit - v_1;
break lab0;
}
- // delete, line 172
+ // delete, line 173
slice_del();
} while (false);
- // try, line 174
+ // try, line 175
v_2 = limit - cursor;
lab1: do {
- // (, line 174
- // [, line 175
+ // (, line 175
+ // [, line 176
ket = cursor;
- // literal, line 175
+ // literal, line 176
if (!(eq_s_b(1, "h")))
{
cursor = limit - v_2;
break lab1;
}
- // ], line 175
+ // ], line 176
bra = cursor;
if (!(in_grouping_b(g_CG, 99, 103)))
{
cursor = limit - v_2;
break lab1;
}
- // call RV, line 175
+ // call RV, line 176
if (!r_RV())
{
cursor = limit - v_2;
break lab1;
}
- // delete, line 175
+ // delete, line 176
slice_del();
} while (false);
return true;
@@ -1093,49 +1095,49 @@ public class ItalianStemmer extends SnowballProgram {
int v_5;
int v_6;
int v_7;
- // (, line 180
- // do, line 181
+ // (, line 181
+ // do, line 182
v_1 = cursor;
lab0: do {
- // call prelude, line 181
+ // call prelude, line 182
if (!r_prelude())
{
break lab0;
}
} while (false);
cursor = v_1;
- // do, line 182
+ // do, line 183
v_2 = cursor;
lab1: do {
- // call mark_regions, line 182
+ // call mark_regions, line 183
if (!r_mark_regions())
{
break lab1;
}
} while (false);
cursor = v_2;
- // backwards, line 183
+ // backwards, line 184
limit_backward = cursor; cursor = limit;
- // (, line 183
- // do, line 184
+ // (, line 184
+ // do, line 185
v_3 = limit - cursor;
lab2: do {
- // call attached_pronoun, line 184
+ // call attached_pronoun, line 185
if (!r_attached_pronoun())
{
break lab2;
}
} while (false);
cursor = limit - v_3;
- // do, line 185
+ // do, line 186
v_4 = limit - cursor;
lab3: do {
- // (, line 185
- // or, line 185
+ // (, line 186
+ // or, line 186
lab4: do {
v_5 = limit - cursor;
lab5: do {
- // call standard_suffix, line 185
+ // call standard_suffix, line 186
if (!r_standard_suffix())
{
break lab5;
@@ -1143,7 +1145,7 @@ public class ItalianStemmer extends SnowballProgram {
break lab4;
} while (false);
cursor = limit - v_5;
- // call verb_suffix, line 185
+ // call verb_suffix, line 186
if (!r_verb_suffix())
{
break lab3;
@@ -1151,20 +1153,20 @@ public class ItalianStemmer extends SnowballProgram {
} while (false);
} while (false);
cursor = limit - v_4;
- // do, line 186
+ // do, line 187
v_6 = limit - cursor;
lab6: do {
- // call vowel_suffix, line 186
+ // call vowel_suffix, line 187
if (!r_vowel_suffix())
{
break lab6;
}
} while (false);
cursor = limit - v_6;
- cursor = limit_backward; // do, line 188
+ cursor = limit_backward; // do, line 189
v_7 = cursor;
lab7: do {
- // call postlude, line 188
+ // call postlude, line 189
if (!r_postlude())
{
break lab7;
diff --git a/contrib/snowball/src/java/net/sf/snowball/ext/KpStemmer.java b/contrib/snowball/src/java/org/tartarus/snowball/ext/KpStemmer.java
similarity index 99%
rename from contrib/snowball/src/java/net/sf/snowball/ext/KpStemmer.java
rename to contrib/snowball/src/java/org/tartarus/snowball/ext/KpStemmer.java
index 9a6d8414128..0ae6fc0e892 100644
--- a/contrib/snowball/src/java/net/sf/snowball/ext/KpStemmer.java
+++ b/contrib/snowball/src/java/org/tartarus/snowball/ext/KpStemmer.java
@@ -1,8 +1,8 @@
// This file was generated automatically by the Snowball to Java compiler
-package net.sf.snowball.ext;
-import net.sf.snowball.SnowballProgram;
-import net.sf.snowball.Among;
+package org.tartarus.snowball.ext;
+import org.tartarus.snowball.SnowballProgram;
+import org.tartarus.snowball.Among;
/**
* Generated class implementing code defined by a snowball script.
diff --git a/contrib/snowball/src/java/net/sf/snowball/ext/LovinsStemmer.java b/contrib/snowball/src/java/org/tartarus/snowball/ext/LovinsStemmer.java
similarity index 99%
rename from contrib/snowball/src/java/net/sf/snowball/ext/LovinsStemmer.java
rename to contrib/snowball/src/java/org/tartarus/snowball/ext/LovinsStemmer.java
index 8c4d6c73664..c64d5ef6193 100644
--- a/contrib/snowball/src/java/net/sf/snowball/ext/LovinsStemmer.java
+++ b/contrib/snowball/src/java/org/tartarus/snowball/ext/LovinsStemmer.java
@@ -1,8 +1,8 @@
// This file was generated automatically by the Snowball to Java compiler
-package net.sf.snowball.ext;
-import net.sf.snowball.SnowballProgram;
-import net.sf.snowball.Among;
+package org.tartarus.snowball.ext;
+import org.tartarus.snowball.SnowballProgram;
+import org.tartarus.snowball.Among;
/**
* Generated class implementing code defined by a snowball script.
diff --git a/contrib/snowball/src/java/net/sf/snowball/ext/NorwegianStemmer.java b/contrib/snowball/src/java/org/tartarus/snowball/ext/NorwegianStemmer.java
similarity index 72%
rename from contrib/snowball/src/java/net/sf/snowball/ext/NorwegianStemmer.java
rename to contrib/snowball/src/java/org/tartarus/snowball/ext/NorwegianStemmer.java
index 6aea5430d3b..b2a3c29f2ed 100644
--- a/contrib/snowball/src/java/net/sf/snowball/ext/NorwegianStemmer.java
+++ b/contrib/snowball/src/java/org/tartarus/snowball/ext/NorwegianStemmer.java
@@ -1,8 +1,8 @@
// This file was generated automatically by the Snowball to Java compiler
-package net.sf.snowball.ext;
-import net.sf.snowball.SnowballProgram;
-import net.sf.snowball.Among;
+package org.tartarus.snowball.ext;
+import org.tartarus.snowball.SnowballProgram;
+import org.tartarus.snowball.Among;
/**
* Generated class implementing code defined by a snowball script.
@@ -62,39 +62,57 @@ public class NorwegianStemmer extends SnowballProgram {
private static final char g_v[] = {17, 65, 16, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 48, 0, 128 };
- private static final char g_s_ending[] = {119, 127, 149, 1 };
+ private static final char g_s_ending[] = {119, 125, 149, 1 };
+ private int I_x;
private int I_p1;
private void copy_from(NorwegianStemmer other) {
+ I_x = other.I_x;
I_p1 = other.I_p1;
super.copy_from(other);
}
private boolean r_mark_regions() {
int v_1;
+ int v_2;
// (, line 26
I_p1 = limit;
- // goto, line 30
+ // test, line 30
+ v_1 = cursor;
+ // (, line 30
+ // hop, line 30
+ {
+ int c = cursor + 3;
+ if (0 > c || c > limit)
+ {
+ return false;
+ }
+ cursor = c;
+ }
+ // setmark x, line 30
+ I_x = cursor;
+ cursor = v_1;
+ // goto, line 31
golab0: while(true)
{
- v_1 = cursor;
+ v_2 = cursor;
lab1: do {
if (!(in_grouping(g_v, 97, 248)))
{
break lab1;
}
- cursor = v_1;
+ cursor = v_2;
break golab0;
} while (false);
- cursor = v_1;
+ cursor = v_2;
if (cursor >= limit)
{
return false;
}
cursor++;
}
- // gopast, line 30
+ // gopast, line 31
golab2: while(true)
{
lab3: do {
@@ -110,16 +128,16 @@ public class NorwegianStemmer extends SnowballProgram {
}
cursor++;
}
- // setmark p1, line 30
+ // setmark p1, line 31
I_p1 = cursor;
- // try, line 31
+ // try, line 32
lab4: do {
- // (, line 31
- if (!(I_p1 < 3))
+ // (, line 32
+ if (!(I_p1 < I_x))
{
break lab4;
}
- I_p1 = 3;
+ I_p1 = I_x;
} while (false);
return true;
}
@@ -128,10 +146,11 @@ public class NorwegianStemmer extends SnowballProgram {
int among_var;
int v_1;
int v_2;
- // (, line 36
- // setlimit, line 37
+ int v_3;
+ // (, line 37
+ // setlimit, line 38
v_1 = limit - cursor;
- // tomark, line 37
+ // tomark, line 38
if (cursor < I_p1)
{
return false;
@@ -140,39 +159,57 @@ public class NorwegianStemmer extends SnowballProgram {
v_2 = limit_backward;
limit_backward = cursor;
cursor = limit - v_1;
- // (, line 37
- // [, line 37
+ // (, line 38
+ // [, line 38
ket = cursor;
- // substring, line 37
+ // substring, line 38
among_var = find_among_b(a_0, 29);
if (among_var == 0)
{
limit_backward = v_2;
return false;
}
- // ], line 37
+ // ], line 38
bra = cursor;
limit_backward = v_2;
switch(among_var) {
case 0:
return false;
case 1:
- // (, line 43
- // delete, line 43
+ // (, line 44
+ // delete, line 44
slice_del();
break;
case 2:
- // (, line 45
- if (!(in_grouping_b(g_s_ending, 98, 122)))
- {
- return false;
- }
- // delete, line 45
+ // (, line 46
+ // or, line 46
+ lab0: do {
+ v_3 = limit - cursor;
+ lab1: do {
+ if (!(in_grouping_b(g_s_ending, 98, 122)))
+ {
+ break lab1;
+ }
+ break lab0;
+ } while (false);
+ cursor = limit - v_3;
+ // (, line 46
+ // literal, line 46
+ if (!(eq_s_b(1, "k")))
+ {
+ return false;
+ }
+ if (!(out_grouping_b(g_v, 97, 248)))
+ {
+ return false;
+ }
+ } while (false);
+ // delete, line 46
slice_del();
break;
case 3:
- // (, line 47
- // <-, line 47
+ // (, line 48
+ // <-, line 48
slice_from("er");
break;
}
@@ -183,13 +220,13 @@ public class NorwegianStemmer extends SnowballProgram {
int v_1;
int v_2;
int v_3;
- // (, line 51
- // test, line 52
- v_1 = limit - cursor;
// (, line 52
- // setlimit, line 53
+ // test, line 53
+ v_1 = limit - cursor;
+ // (, line 53
+ // setlimit, line 54
v_2 = limit - cursor;
- // tomark, line 53
+ // tomark, line 54
if (cursor < I_p1)
{
return false;
@@ -198,28 +235,28 @@ public class NorwegianStemmer extends SnowballProgram {
v_3 = limit_backward;
limit_backward = cursor;
cursor = limit - v_2;
- // (, line 53
- // [, line 53
+ // (, line 54
+ // [, line 54
ket = cursor;
- // substring, line 53
+ // substring, line 54
if (find_among_b(a_1, 2) == 0)
{
limit_backward = v_3;
return false;
}
- // ], line 53
+ // ], line 54
bra = cursor;
limit_backward = v_3;
cursor = limit - v_1;
- // next, line 58
+ // next, line 59
if (cursor <= limit_backward)
{
return false;
}
cursor--;
- // ], line 58
+ // ], line 59
bra = cursor;
- // delete, line 58
+ // delete, line 59
slice_del();
return true;
}
@@ -228,10 +265,10 @@ public class NorwegianStemmer extends SnowballProgram {
int among_var;
int v_1;
int v_2;
- // (, line 61
- // setlimit, line 62
+ // (, line 62
+ // setlimit, line 63
v_1 = limit - cursor;
- // tomark, line 62
+ // tomark, line 63
if (cursor < I_p1)
{
return false;
@@ -240,25 +277,25 @@ public class NorwegianStemmer extends SnowballProgram {
v_2 = limit_backward;
limit_backward = cursor;
cursor = limit - v_1;
- // (, line 62
- // [, line 62
+ // (, line 63
+ // [, line 63
ket = cursor;
- // substring, line 62
+ // substring, line 63
among_var = find_among_b(a_2, 11);
if (among_var == 0)
{
limit_backward = v_2;
return false;
}
- // ], line 62
+ // ], line 63
bra = cursor;
limit_backward = v_2;
switch(among_var) {
case 0:
return false;
case 1:
- // (, line 66
- // delete, line 66
+ // (, line 67
+ // delete, line 67
slice_del();
break;
}
@@ -270,44 +307,44 @@ public class NorwegianStemmer extends SnowballProgram {
int v_2;
int v_3;
int v_4;
- // (, line 71
- // do, line 73
+ // (, line 72
+ // do, line 74
v_1 = cursor;
lab0: do {
- // call mark_regions, line 73
+ // call mark_regions, line 74
if (!r_mark_regions())
{
break lab0;
}
} while (false);
cursor = v_1;
- // backwards, line 74
+ // backwards, line 75
limit_backward = cursor; cursor = limit;
- // (, line 74
- // do, line 75
+ // (, line 75
+ // do, line 76
v_2 = limit - cursor;
lab1: do {
- // call main_suffix, line 75
+ // call main_suffix, line 76
if (!r_main_suffix())
{
break lab1;
}
} while (false);
cursor = limit - v_2;
- // do, line 76
+ // do, line 77
v_3 = limit - cursor;
lab2: do {
- // call consonant_pair, line 76
+ // call consonant_pair, line 77
if (!r_consonant_pair())
{
break lab2;
}
} while (false);
cursor = limit - v_3;
- // do, line 77
+ // do, line 78
v_4 = limit - cursor;
lab3: do {
- // call other_suffix, line 77
+ // call other_suffix, line 78
if (!r_other_suffix())
{
break lab3;
diff --git a/contrib/snowball/src/java/net/sf/snowball/ext/PorterStemmer.java b/contrib/snowball/src/java/org/tartarus/snowball/ext/PorterStemmer.java
similarity index 99%
rename from contrib/snowball/src/java/net/sf/snowball/ext/PorterStemmer.java
rename to contrib/snowball/src/java/org/tartarus/snowball/ext/PorterStemmer.java
index c81750d8881..4ef1b60e0fd 100644
--- a/contrib/snowball/src/java/net/sf/snowball/ext/PorterStemmer.java
+++ b/contrib/snowball/src/java/org/tartarus/snowball/ext/PorterStemmer.java
@@ -1,8 +1,8 @@
// This file was generated automatically by the Snowball to Java compiler
-package net.sf.snowball.ext;
-import net.sf.snowball.SnowballProgram;
-import net.sf.snowball.Among;
+package org.tartarus.snowball.ext;
+import org.tartarus.snowball.SnowballProgram;
+import org.tartarus.snowball.Among;
/**
* Generated class implementing code defined by a snowball script.
diff --git a/contrib/snowball/src/java/net/sf/snowball/ext/PortugueseStemmer.java b/contrib/snowball/src/java/org/tartarus/snowball/ext/PortugueseStemmer.java
similarity index 86%
rename from contrib/snowball/src/java/net/sf/snowball/ext/PortugueseStemmer.java
rename to contrib/snowball/src/java/org/tartarus/snowball/ext/PortugueseStemmer.java
index 4bb121cdcdc..cbd20d6ac46 100644
--- a/contrib/snowball/src/java/net/sf/snowball/ext/PortugueseStemmer.java
+++ b/contrib/snowball/src/java/org/tartarus/snowball/ext/PortugueseStemmer.java
@@ -1,8 +1,8 @@
// This file was generated automatically by the Snowball to Java compiler
-package net.sf.snowball.ext;
-import net.sf.snowball.SnowballProgram;
-import net.sf.snowball.Among;
+package org.tartarus.snowball.ext;
+import org.tartarus.snowball.SnowballProgram;
+import org.tartarus.snowball.Among;
/**
* Generated class implementing code defined by a snowball script.
@@ -29,6 +29,7 @@ public class PortugueseStemmer extends SnowballProgram {
};
private Among a_3[] = {
+ new Among ( "ante", -1, 1, "", this),
new Among ( "avel", -1, 1, "", this),
new Among ( "\u00EDvel", -1, 1, "", this)
};
@@ -41,6 +42,7 @@ public class PortugueseStemmer extends SnowballProgram {
private Among a_5[] = {
new Among ( "ica", -1, 1, "", this),
+ new Among ( "\u00E2ncia", -1, 1, "", this),
new Among ( "\u00EAncia", -1, 4, "", this),
new Among ( "ira", -1, 9, "", this),
new Among ( "adora", -1, 1, "", this),
@@ -50,8 +52,9 @@ public class PortugueseStemmer extends SnowballProgram {
new Among ( "eza", -1, 1, "", this),
new Among ( "log\u00EDa", -1, 2, "", this),
new Among ( "idade", -1, 7, "", this),
+ new Among ( "ante", -1, 1, "", this),
new Among ( "mente", -1, 6, "", this),
- new Among ( "amente", 10, 5, "", this),
+ new Among ( "amente", 12, 5, "", this),
new Among ( "\u00E1vel", -1, 1, "", this),
new Among ( "\u00EDvel", -1, 1, "", this),
new Among ( "uci\u00F3n", -1, 3, "", this),
@@ -75,6 +78,7 @@ public class PortugueseStemmer extends SnowballProgram {
new Among ( "idades", -1, 7, "", this),
new Among ( "uciones", -1, 3, "", this),
new Among ( "adores", -1, 1, "", this),
+ new Among ( "antes", -1, 1, "", this),
new Among ( "a\u00E7o~es", -1, 1, "", this),
new Among ( "icos", -1, 1, "", this),
new Among ( "ismos", -1, 1, "", this),
@@ -574,7 +578,7 @@ public class PortugueseStemmer extends SnowballProgram {
// [, line 77
ket = cursor;
// substring, line 77
- among_var = find_among_b(a_5, 42);
+ among_var = find_among_b(a_5, 45);
if (among_var == 0)
{
return false;
@@ -585,235 +589,235 @@ public class PortugueseStemmer extends SnowballProgram {
case 0:
return false;
case 1:
- // (, line 91
- // call R2, line 92
+ // (, line 92
+ // call R2, line 93
if (!r_R2())
{
return false;
}
- // delete, line 92
+ // delete, line 93
slice_del();
break;
case 2:
- // (, line 96
- // call R2, line 97
+ // (, line 97
+ // call R2, line 98
if (!r_R2())
{
return false;
}
- // <-, line 97
+ // <-, line 98
slice_from("log");
break;
case 3:
- // (, line 100
- // call R2, line 101
+ // (, line 101
+ // call R2, line 102
if (!r_R2())
{
return false;
}
- // <-, line 101
+ // <-, line 102
slice_from("u");
break;
case 4:
- // (, line 104
- // call R2, line 105
+ // (, line 105
+ // call R2, line 106
if (!r_R2())
{
return false;
}
- // <-, line 105
+ // <-, line 106
slice_from("ente");
break;
case 5:
- // (, line 108
- // call R1, line 109
+ // (, line 109
+ // call R1, line 110
if (!r_R1())
{
return false;
}
- // delete, line 109
+ // delete, line 110
slice_del();
- // try, line 110
+ // try, line 111
v_1 = limit - cursor;
lab0: do {
- // (, line 110
- // [, line 111
+ // (, line 111
+ // [, line 112
ket = cursor;
- // substring, line 111
+ // substring, line 112
among_var = find_among_b(a_2, 4);
if (among_var == 0)
{
cursor = limit - v_1;
break lab0;
}
- // ], line 111
+ // ], line 112
bra = cursor;
- // call R2, line 111
+ // call R2, line 112
if (!r_R2())
{
cursor = limit - v_1;
break lab0;
}
- // delete, line 111
+ // delete, line 112
slice_del();
switch(among_var) {
case 0:
cursor = limit - v_1;
break lab0;
case 1:
- // (, line 112
- // [, line 112
+ // (, line 113
+ // [, line 113
ket = cursor;
- // literal, line 112
+ // literal, line 113
if (!(eq_s_b(2, "at")))
{
cursor = limit - v_1;
break lab0;
}
- // ], line 112
+ // ], line 113
bra = cursor;
- // call R2, line 112
+ // call R2, line 113
if (!r_R2())
{
cursor = limit - v_1;
break lab0;
}
- // delete, line 112
+ // delete, line 113
slice_del();
break;
}
} while (false);
break;
case 6:
- // (, line 120
- // call R2, line 121
+ // (, line 121
+ // call R2, line 122
if (!r_R2())
{
return false;
}
- // delete, line 121
+ // delete, line 122
slice_del();
- // try, line 122
+ // try, line 123
v_2 = limit - cursor;
lab1: do {
- // (, line 122
- // [, line 123
+ // (, line 123
+ // [, line 124
ket = cursor;
- // substring, line 123
- among_var = find_among_b(a_3, 2);
+ // substring, line 124
+ among_var = find_among_b(a_3, 3);
if (among_var == 0)
{
cursor = limit - v_2;
break lab1;
}
- // ], line 123
+ // ], line 124
bra = cursor;
switch(among_var) {
case 0:
cursor = limit - v_2;
break lab1;
case 1:
- // (, line 125
- // call R2, line 125
+ // (, line 127
+ // call R2, line 127
if (!r_R2())
{
cursor = limit - v_2;
break lab1;
}
- // delete, line 125
+ // delete, line 127
slice_del();
break;
}
} while (false);
break;
case 7:
- // (, line 131
- // call R2, line 132
+ // (, line 133
+ // call R2, line 134
if (!r_R2())
{
return false;
}
- // delete, line 132
+ // delete, line 134
slice_del();
- // try, line 133
+ // try, line 135
v_3 = limit - cursor;
lab2: do {
- // (, line 133
- // [, line 134
+ // (, line 135
+ // [, line 136
ket = cursor;
- // substring, line 134
+ // substring, line 136
among_var = find_among_b(a_4, 3);
if (among_var == 0)
{
cursor = limit - v_3;
break lab2;
}
- // ], line 134
+ // ], line 136
bra = cursor;
switch(among_var) {
case 0:
cursor = limit - v_3;
break lab2;
case 1:
- // (, line 137
- // call R2, line 137
+ // (, line 139
+ // call R2, line 139
if (!r_R2())
{
cursor = limit - v_3;
break lab2;
}
- // delete, line 137
+ // delete, line 139
slice_del();
break;
}
} while (false);
break;
case 8:
- // (, line 143
- // call R2, line 144
+ // (, line 145
+ // call R2, line 146
if (!r_R2())
{
return false;
}
- // delete, line 144
+ // delete, line 146
slice_del();
- // try, line 145
+ // try, line 147
v_4 = limit - cursor;
lab3: do {
- // (, line 145
- // [, line 146
+ // (, line 147
+ // [, line 148
ket = cursor;
- // literal, line 146
+ // literal, line 148
if (!(eq_s_b(2, "at")))
{
cursor = limit - v_4;
break lab3;
}
- // ], line 146
+ // ], line 148
bra = cursor;
- // call R2, line 146
+ // call R2, line 148
if (!r_R2())
{
cursor = limit - v_4;
break lab3;
}
- // delete, line 146
+ // delete, line 148
slice_del();
} while (false);
break;
case 9:
- // (, line 150
- // call RV, line 151
+ // (, line 152
+ // call RV, line 153
if (!r_RV())
{
return false;
}
- // literal, line 151
+ // literal, line 153
if (!(eq_s_b(1, "e")))
{
return false;
}
- // <-, line 152
+ // <-, line 154
slice_from("ir");
break;
}
@@ -824,9 +828,9 @@ public class PortugueseStemmer extends SnowballProgram {
int among_var;
int v_1;
int v_2;
- // setlimit, line 157
+ // setlimit, line 159
v_1 = limit - cursor;
- // tomark, line 157
+ // tomark, line 159
if (cursor < I_pV)
{
return false;
@@ -835,25 +839,25 @@ public class PortugueseStemmer extends SnowballProgram {
v_2 = limit_backward;
limit_backward = cursor;
cursor = limit - v_1;
- // (, line 157
- // [, line 158
+ // (, line 159
+ // [, line 160
ket = cursor;
- // substring, line 158
+ // substring, line 160
among_var = find_among_b(a_6, 120);
if (among_var == 0)
{
limit_backward = v_2;
return false;
}
- // ], line 158
+ // ], line 160
bra = cursor;
switch(among_var) {
case 0:
limit_backward = v_2;
return false;
case 1:
- // (, line 177
- // delete, line 177
+ // (, line 179
+ // delete, line 179
slice_del();
break;
}
@@ -863,28 +867,28 @@ public class PortugueseStemmer extends SnowballProgram {
private boolean r_residual_suffix() {
int among_var;
- // (, line 181
- // [, line 182
+ // (, line 183
+ // [, line 184
ket = cursor;
- // substring, line 182
+ // substring, line 184
among_var = find_among_b(a_7, 7);
if (among_var == 0)
{
return false;
}
- // ], line 182
+ // ], line 184
bra = cursor;
switch(among_var) {
case 0:
return false;
case 1:
- // (, line 185
- // call RV, line 185
+ // (, line 187
+ // call RV, line 187
if (!r_RV())
{
return false;
}
- // delete, line 185
+ // delete, line 187
slice_del();
break;
}
@@ -896,46 +900,46 @@ public class PortugueseStemmer extends SnowballProgram {
int v_1;
int v_2;
int v_3;
- // (, line 189
- // [, line 190
+ // (, line 191
+ // [, line 192
ket = cursor;
- // substring, line 190
+ // substring, line 192
among_var = find_among_b(a_8, 4);
if (among_var == 0)
{
return false;
}
- // ], line 190
+ // ], line 192
bra = cursor;
switch(among_var) {
case 0:
return false;
case 1:
- // (, line 192
- // call RV, line 192
+ // (, line 194
+ // call RV, line 194
if (!r_RV())
{
return false;
}
- // delete, line 192
+ // delete, line 194
slice_del();
- // [, line 192
+ // [, line 194
ket = cursor;
- // or, line 192
+ // or, line 194
lab0: do {
v_1 = limit - cursor;
lab1: do {
- // (, line 192
- // literal, line 192
+ // (, line 194
+ // literal, line 194
if (!(eq_s_b(1, "u")))
{
break lab1;
}
- // ], line 192
+ // ], line 194
bra = cursor;
- // test, line 192
+ // test, line 194
v_2 = limit - cursor;
- // literal, line 192
+ // literal, line 194
if (!(eq_s_b(1, "g")))
{
break lab1;
@@ -944,34 +948,34 @@ public class PortugueseStemmer extends SnowballProgram {
break lab0;
} while (false);
cursor = limit - v_1;
- // (, line 193
- // literal, line 193
+ // (, line 195
+ // literal, line 195
if (!(eq_s_b(1, "i")))
{
return false;
}
- // ], line 193
+ // ], line 195
bra = cursor;
- // test, line 193
+ // test, line 195
v_3 = limit - cursor;
- // literal, line 193
+ // literal, line 195
if (!(eq_s_b(1, "c")))
{
return false;
}
cursor = limit - v_3;
} while (false);
- // call RV, line 193
+ // call RV, line 195
if (!r_RV())
{
return false;
}
- // delete, line 193
+ // delete, line 195
slice_del();
break;
case 2:
- // (, line 194
- // <-, line 194
+ // (, line 196
+ // <-, line 196
slice_from("c");
break;
}
@@ -989,47 +993,47 @@ public class PortugueseStemmer extends SnowballProgram {
int v_8;
int v_9;
int v_10;
- // (, line 199
- // do, line 200
+ // (, line 201
+ // do, line 202
v_1 = cursor;
lab0: do {
- // call prelude, line 200
+ // call prelude, line 202
if (!r_prelude())
{
break lab0;
}
} while (false);
cursor = v_1;
- // do, line 201
+ // do, line 203
v_2 = cursor;
lab1: do {
- // call mark_regions, line 201
+ // call mark_regions, line 203
if (!r_mark_regions())
{
break lab1;
}
} while (false);
cursor = v_2;
- // backwards, line 202
+ // backwards, line 204
limit_backward = cursor; cursor = limit;
- // (, line 202
- // do, line 203
+ // (, line 204
+ // do, line 205
v_3 = limit - cursor;
lab2: do {
- // (, line 203
- // or, line 207
+ // (, line 205
+ // or, line 209
lab3: do {
v_4 = limit - cursor;
lab4: do {
- // (, line 204
- // and, line 205
+ // (, line 206
+ // and, line 207
v_5 = limit - cursor;
- // (, line 204
- // or, line 204
+ // (, line 206
+ // or, line 206
lab5: do {
v_6 = limit - cursor;
lab6: do {
- // call standard_suffix, line 204
+ // call standard_suffix, line 206
if (!r_standard_suffix())
{
break lab6;
@@ -1037,47 +1041,47 @@ public class PortugueseStemmer extends SnowballProgram {
break lab5;
} while (false);
cursor = limit - v_6;
- // call verb_suffix, line 204
+ // call verb_suffix, line 206
if (!r_verb_suffix())
{
break lab4;
}
} while (false);
cursor = limit - v_5;
- // do, line 205
+ // do, line 207
v_7 = limit - cursor;
lab7: do {
- // (, line 205
- // [, line 205
+ // (, line 207
+ // [, line 207
ket = cursor;
- // literal, line 205
+ // literal, line 207
if (!(eq_s_b(1, "i")))
{
break lab7;
}
- // ], line 205
+ // ], line 207
bra = cursor;
- // test, line 205
+ // test, line 207
v_8 = limit - cursor;
- // literal, line 205
+ // literal, line 207
if (!(eq_s_b(1, "c")))
{
break lab7;
}
cursor = limit - v_8;
- // call RV, line 205
+ // call RV, line 207
if (!r_RV())
{
break lab7;
}
- // delete, line 205
+ // delete, line 207
slice_del();
} while (false);
cursor = limit - v_7;
break lab3;
} while (false);
cursor = limit - v_4;
- // call residual_suffix, line 207
+ // call residual_suffix, line 209
if (!r_residual_suffix())
{
break lab2;
@@ -1085,20 +1089,20 @@ public class PortugueseStemmer extends SnowballProgram {
} while (false);
} while (false);
cursor = limit - v_3;
- // do, line 209
+ // do, line 211
v_9 = limit - cursor;
lab8: do {
- // call residual_form, line 209
+ // call residual_form, line 211
if (!r_residual_form())
{
break lab8;
}
} while (false);
cursor = limit - v_9;
- cursor = limit_backward; // do, line 211
+ cursor = limit_backward; // do, line 213
v_10 = cursor;
lab9: do {
- // call postlude, line 211
+ // call postlude, line 213
if (!r_postlude())
{
break lab9;
diff --git a/contrib/snowball/src/java/org/tartarus/snowball/ext/RomanianStemmer.java b/contrib/snowball/src/java/org/tartarus/snowball/ext/RomanianStemmer.java
new file mode 100644
index 00000000000..b26a7f062b1
--- /dev/null
+++ b/contrib/snowball/src/java/org/tartarus/snowball/ext/RomanianStemmer.java
@@ -0,0 +1,1024 @@
+// This file was generated automatically by the Snowball to Java compiler
+
+package org.tartarus.snowball.ext;
+import org.tartarus.snowball.SnowballProgram;
+import org.tartarus.snowball.Among;
+
+/**
+ * Generated class implementing code defined by a snowball script.
+ */
+public class RomanianStemmer extends SnowballProgram {
+
+ private Among a_0[] = {
+ new Among ( "", -1, 3, "", this),
+ new Among ( "I", 0, 1, "", this),
+ new Among ( "U", 0, 2, "", this)
+ };
+
+ private Among a_1[] = {
+ new Among ( "ea", -1, 3, "", this),
+ new Among ( "a\u0163ia", -1, 7, "", this),
+ new Among ( "aua", -1, 2, "", this),
+ new Among ( "iua", -1, 4, "", this),
+ new Among ( "a\u0163ie", -1, 7, "", this),
+ new Among ( "ele", -1, 3, "", this),
+ new Among ( "ile", -1, 5, "", this),
+ new Among ( "iile", 6, 4, "", this),
+ new Among ( "iei", -1, 4, "", this),
+ new Among ( "atei", -1, 6, "", this),
+ new Among ( "ii", -1, 4, "", this),
+ new Among ( "ului", -1, 1, "", this),
+ new Among ( "ul", -1, 1, "", this),
+ new Among ( "elor", -1, 3, "", this),
+ new Among ( "ilor", -1, 4, "", this),
+ new Among ( "iilor", 14, 4, "", this)
+ };
+
+ private Among a_2[] = {
+ new Among ( "icala", -1, 4, "", this),
+ new Among ( "iciva", -1, 4, "", this),
+ new Among ( "ativa", -1, 5, "", this),
+ new Among ( "itiva", -1, 6, "", this),
+ new Among ( "icale", -1, 4, "", this),
+ new Among ( "a\u0163iune", -1, 5, "", this),
+ new Among ( "i\u0163iune", -1, 6, "", this),
+ new Among ( "atoare", -1, 5, "", this),
+ new Among ( "itoare", -1, 6, "", this),
+ new Among ( "\u0103toare", -1, 5, "", this),
+ new Among ( "icitate", -1, 4, "", this),
+ new Among ( "abilitate", -1, 1, "", this),
+ new Among ( "ibilitate", -1, 2, "", this),
+ new Among ( "ivitate", -1, 3, "", this),
+ new Among ( "icive", -1, 4, "", this),
+ new Among ( "ative", -1, 5, "", this),
+ new Among ( "itive", -1, 6, "", this),
+ new Among ( "icali", -1, 4, "", this),
+ new Among ( "atori", -1, 5, "", this),
+ new Among ( "icatori", 18, 4, "", this),
+ new Among ( "itori", -1, 6, "", this),
+ new Among ( "\u0103tori", -1, 5, "", this),
+ new Among ( "icitati", -1, 4, "", this),
+ new Among ( "abilitati", -1, 1, "", this),
+ new Among ( "ivitati", -1, 3, "", this),
+ new Among ( "icivi", -1, 4, "", this),
+ new Among ( "ativi", -1, 5, "", this),
+ new Among ( "itivi", -1, 6, "", this),
+ new Among ( "icit\u0103i", -1, 4, "", this),
+ new Among ( "abilit\u0103i", -1, 1, "", this),
+ new Among ( "ivit\u0103i", -1, 3, "", this),
+ new Among ( "icit\u0103\u0163i", -1, 4, "", this),
+ new Among ( "abilit\u0103\u0163i", -1, 1, "", this),
+ new Among ( "ivit\u0103\u0163i", -1, 3, "", this),
+ new Among ( "ical", -1, 4, "", this),
+ new Among ( "ator", -1, 5, "", this),
+ new Among ( "icator", 35, 4, "", this),
+ new Among ( "itor", -1, 6, "", this),
+ new Among ( "\u0103tor", -1, 5, "", this),
+ new Among ( "iciv", -1, 4, "", this),
+ new Among ( "ativ", -1, 5, "", this),
+ new Among ( "itiv", -1, 6, "", this),
+ new Among ( "ical\u0103", -1, 4, "", this),
+ new Among ( "iciv\u0103", -1, 4, "", this),
+ new Among ( "ativ\u0103", -1, 5, "", this),
+ new Among ( "itiv\u0103", -1, 6, "", this)
+ };
+
+ private Among a_3[] = {
+ new Among ( "ica", -1, 1, "", this),
+ new Among ( "abila", -1, 1, "", this),
+ new Among ( "ibila", -1, 1, "", this),
+ new Among ( "oasa", -1, 1, "", this),
+ new Among ( "ata", -1, 1, "", this),
+ new Among ( "ita", -1, 1, "", this),
+ new Among ( "anta", -1, 1, "", this),
+ new Among ( "ista", -1, 3, "", this),
+ new Among ( "uta", -1, 1, "", this),
+ new Among ( "iva", -1, 1, "", this),
+ new Among ( "ic", -1, 1, "", this),
+ new Among ( "ice", -1, 1, "", this),
+ new Among ( "abile", -1, 1, "", this),
+ new Among ( "ibile", -1, 1, "", this),
+ new Among ( "isme", -1, 3, "", this),
+ new Among ( "iune", -1, 2, "", this),
+ new Among ( "oase", -1, 1, "", this),
+ new Among ( "ate", -1, 1, "", this),
+ new Among ( "itate", 17, 1, "", this),
+ new Among ( "ite", -1, 1, "", this),
+ new Among ( "ante", -1, 1, "", this),
+ new Among ( "iste", -1, 3, "", this),
+ new Among ( "ute", -1, 1, "", this),
+ new Among ( "ive", -1, 1, "", this),
+ new Among ( "ici", -1, 1, "", this),
+ new Among ( "abili", -1, 1, "", this),
+ new Among ( "ibili", -1, 1, "", this),
+ new Among ( "iuni", -1, 2, "", this),
+ new Among ( "atori", -1, 1, "", this),
+ new Among ( "osi", -1, 1, "", this),
+ new Among ( "ati", -1, 1, "", this),
+ new Among ( "itati", 30, 1, "", this),
+ new Among ( "iti", -1, 1, "", this),
+ new Among ( "anti", -1, 1, "", this),
+ new Among ( "isti", -1, 3, "", this),
+ new Among ( "uti", -1, 1, "", this),
+ new Among ( "i\u015Fti", -1, 3, "", this),
+ new Among ( "ivi", -1, 1, "", this),
+ new Among ( "it\u0103i", -1, 1, "", this),
+ new Among ( "o\u015Fi", -1, 1, "", this),
+ new Among ( "it\u0103\u0163i", -1, 1, "", this),
+ new Among ( "abil", -1, 1, "", this),
+ new Among ( "ibil", -1, 1, "", this),
+ new Among ( "ism", -1, 3, "", this),
+ new Among ( "ator", -1, 1, "", this),
+ new Among ( "os", -1, 1, "", this),
+ new Among ( "at", -1, 1, "", this),
+ new Among ( "it", -1, 1, "", this),
+ new Among ( "ant", -1, 1, "", this),
+ new Among ( "ist", -1, 3, "", this),
+ new Among ( "ut", -1, 1, "", this),
+ new Among ( "iv", -1, 1, "", this),
+ new Among ( "ic\u0103", -1, 1, "", this),
+ new Among ( "abil\u0103", -1, 1, "", this),
+ new Among ( "ibil\u0103", -1, 1, "", this),
+ new Among ( "oas\u0103", -1, 1, "", this),
+ new Among ( "at\u0103", -1, 1, "", this),
+ new Among ( "it\u0103", -1, 1, "", this),
+ new Among ( "ant\u0103", -1, 1, "", this),
+ new Among ( "ist\u0103", -1, 3, "", this),
+ new Among ( "ut\u0103", -1, 1, "", this),
+ new Among ( "iv\u0103", -1, 1, "", this)
+ };
+
+ private Among a_4[] = {
+ new Among ( "ea", -1, 1, "", this),
+ new Among ( "ia", -1, 1, "", this),
+ new Among ( "esc", -1, 1, "", this),
+ new Among ( "\u0103sc", -1, 1, "", this),
+ new Among ( "ind", -1, 1, "", this),
+ new Among ( "\u00E2nd", -1, 1, "", this),
+ new Among ( "are", -1, 1, "", this),
+ new Among ( "ere", -1, 1, "", this),
+ new Among ( "ire", -1, 1, "", this),
+ new Among ( "\u00E2re", -1, 1, "", this),
+ new Among ( "se", -1, 2, "", this),
+ new Among ( "ase", 10, 1, "", this),
+ new Among ( "sese", 10, 2, "", this),
+ new Among ( "ise", 10, 1, "", this),
+ new Among ( "use", 10, 1, "", this),
+ new Among ( "\u00E2se", 10, 1, "", this),
+ new Among ( "e\u015Fte", -1, 1, "", this),
+ new Among ( "\u0103\u015Fte", -1, 1, "", this),
+ new Among ( "eze", -1, 1, "", this),
+ new Among ( "ai", -1, 1, "", this),
+ new Among ( "eai", 19, 1, "", this),
+ new Among ( "iai", 19, 1, "", this),
+ new Among ( "sei", -1, 2, "", this),
+ new Among ( "e\u015Fti", -1, 1, "", this),
+ new Among ( "\u0103\u015Fti", -1, 1, "", this),
+ new Among ( "ui", -1, 1, "", this),
+ new Among ( "ezi", -1, 1, "", this),
+ new Among ( "\u00E2i", -1, 1, "", this),
+ new Among ( "a\u015Fi", -1, 1, "", this),
+ new Among ( "se\u015Fi", -1, 2, "", this),
+ new Among ( "ase\u015Fi", 29, 1, "", this),
+ new Among ( "sese\u015Fi", 29, 2, "", this),
+ new Among ( "ise\u015Fi", 29, 1, "", this),
+ new Among ( "use\u015Fi", 29, 1, "", this),
+ new Among ( "\u00E2se\u015Fi", 29, 1, "", this),
+ new Among ( "i\u015Fi", -1, 1, "", this),
+ new Among ( "u\u015Fi", -1, 1, "", this),
+ new Among ( "\u00E2\u015Fi", -1, 1, "", this),
+ new Among ( "a\u0163i", -1, 2, "", this),
+ new Among ( "ea\u0163i", 38, 1, "", this),
+ new Among ( "ia\u0163i", 38, 1, "", this),
+ new Among ( "e\u0163i", -1, 2, "", this),
+ new Among ( "i\u0163i", -1, 2, "", this),
+ new Among ( "\u00E2\u0163i", -1, 2, "", this),
+ new Among ( "ar\u0103\u0163i", -1, 1, "", this),
+ new Among ( "ser\u0103\u0163i", -1, 2, "", this),
+ new Among ( "aser\u0103\u0163i", 45, 1, "", this),
+ new Among ( "seser\u0103\u0163i", 45, 2, "", this),
+ new Among ( "iser\u0103\u0163i", 45, 1, "", this),
+ new Among ( "user\u0103\u0163i", 45, 1, "", this),
+ new Among ( "\u00E2ser\u0103\u0163i", 45, 1, "", this),
+ new Among ( "ir\u0103\u0163i", -1, 1, "", this),
+ new Among ( "ur\u0103\u0163i", -1, 1, "", this),
+ new Among ( "\u00E2r\u0103\u0163i", -1, 1, "", this),
+ new Among ( "am", -1, 1, "", this),
+ new Among ( "eam", 54, 1, "", this),
+ new Among ( "iam", 54, 1, "", this),
+ new Among ( "em", -1, 2, "", this),
+ new Among ( "asem", 57, 1, "", this),
+ new Among ( "sesem", 57, 2, "", this),
+ new Among ( "isem", 57, 1, "", this),
+ new Among ( "usem", 57, 1, "", this),
+ new Among ( "\u00E2sem", 57, 1, "", this),
+ new Among ( "im", -1, 2, "", this),
+ new Among ( "\u00E2m", -1, 2, "", this),
+ new Among ( "\u0103m", -1, 2, "", this),
+ new Among ( "ar\u0103m", 65, 1, "", this),
+ new Among ( "ser\u0103m", 65, 2, "", this),
+ new Among ( "aser\u0103m", 67, 1, "", this),
+ new Among ( "seser\u0103m", 67, 2, "", this),
+ new Among ( "iser\u0103m", 67, 1, "", this),
+ new Among ( "user\u0103m", 67, 1, "", this),
+ new Among ( "\u00E2ser\u0103m", 67, 1, "", this),
+ new Among ( "ir\u0103m", 65, 1, "", this),
+ new Among ( "ur\u0103m", 65, 1, "", this),
+ new Among ( "\u00E2r\u0103m", 65, 1, "", this),
+ new Among ( "au", -1, 1, "", this),
+ new Among ( "eau", 76, 1, "", this),
+ new Among ( "iau", 76, 1, "", this),
+ new Among ( "indu", -1, 1, "", this),
+ new Among ( "\u00E2ndu", -1, 1, "", this),
+ new Among ( "ez", -1, 1, "", this),
+ new Among ( "easc\u0103", -1, 1, "", this),
+ new Among ( "ar\u0103", -1, 1, "", this),
+ new Among ( "ser\u0103", -1, 2, "", this),
+ new Among ( "aser\u0103", 84, 1, "", this),
+ new Among ( "seser\u0103", 84, 2, "", this),
+ new Among ( "iser\u0103", 84, 1, "", this),
+ new Among ( "user\u0103", 84, 1, "", this),
+ new Among ( "\u00E2ser\u0103", 84, 1, "", this),
+ new Among ( "ir\u0103", -1, 1, "", this),
+ new Among ( "ur\u0103", -1, 1, "", this),
+ new Among ( "\u00E2r\u0103", -1, 1, "", this),
+ new Among ( "eaz\u0103", -1, 1, "", this)
+ };
+
+ private Among a_5[] = {
+ new Among ( "a", -1, 1, "", this),
+ new Among ( "e", -1, 1, "", this),
+ new Among ( "ie", 1, 1, "", this),
+ new Among ( "i", -1, 1, "", this),
+ new Among ( "\u0103", -1, 1, "", this)
+ };
+
+ 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 };
+
+ private boolean B_standard_suffix_removed;
+ private int I_p2;
+ private int I_p1;
+ private int I_pV;
+
+ private void copy_from(RomanianStemmer other) {
+ B_standard_suffix_removed = other.B_standard_suffix_removed;
+ I_p2 = other.I_p2;
+ I_p1 = other.I_p1;
+ I_pV = other.I_pV;
+ super.copy_from(other);
+ }
+
+ private boolean r_prelude() {
+ int v_1;
+ int v_2;
+ int v_3;
+ // (, line 31
+ // repeat, line 32
+ replab0: while(true)
+ {
+ v_1 = cursor;
+ lab1: do {
+ // goto, line 32
+ golab2: while(true)
+ {
+ v_2 = cursor;
+ lab3: do {
+ // (, line 32
+ if (!(in_grouping(g_v, 97, 259)))
+ {
+ break lab3;
+ }
+ // [, line 33
+ bra = cursor;
+ // or, line 33
+ lab4: do {
+ v_3 = cursor;
+ lab5: do {
+ // (, line 33
+ // literal, line 33
+ if (!(eq_s(1, "u")))
+ {
+ break lab5;
+ }
+ // ], line 33
+ ket = cursor;
+ if (!(in_grouping(g_v, 97, 259)))
+ {
+ break lab5;
+ }
+ // <-, line 33
+ slice_from("U");
+ break lab4;
+ } while (false);
+ cursor = v_3;
+ // (, line 34
+ // literal, line 34
+ if (!(eq_s(1, "i")))
+ {
+ break lab3;
+ }
+ // ], line 34
+ ket = cursor;
+ if (!(in_grouping(g_v, 97, 259)))
+ {
+ break lab3;
+ }
+ // <-, line 34
+ slice_from("I");
+ } while (false);
+ cursor = v_2;
+ break golab2;
+ } while (false);
+ cursor = v_2;
+ if (cursor >= limit)
+ {
+ break lab1;
+ }
+ cursor++;
+ }
+ continue replab0;
+ } while (false);
+ cursor = v_1;
+ break replab0;
+ }
+ return true;
+ }
+
+ private boolean r_mark_regions() {
+ int v_1;
+ int v_2;
+ int v_3;
+ int v_6;
+ int v_8;
+ // (, line 38
+ I_pV = limit;
+ I_p1 = limit;
+ I_p2 = limit;
+ // do, line 44
+ v_1 = cursor;
+ lab0: do {
+ // (, line 44
+ // or, line 46
+ lab1: do {
+ v_2 = cursor;
+ lab2: do {
+ // (, line 45
+ if (!(in_grouping(g_v, 97, 259)))
+ {
+ break lab2;
+ }
+ // or, line 45
+ lab3: do {
+ v_3 = cursor;
+ lab4: do {
+ // (, line 45
+ if (!(out_grouping(g_v, 97, 259)))
+ {
+ break lab4;
+ }
+ // gopast, line 45
+ golab5: while(true)
+ {
+ lab6: do {
+ if (!(in_grouping(g_v, 97, 259)))
+ {
+ break lab6;
+ }
+ break golab5;
+ } while (false);
+ if (cursor >= limit)
+ {
+ break lab4;
+ }
+ cursor++;
+ }
+ break lab3;
+ } while (false);
+ cursor = v_3;
+ // (, line 45
+ if (!(in_grouping(g_v, 97, 259)))
+ {
+ break lab2;
+ }
+ // gopast, line 45
+ golab7: while(true)
+ {
+ lab8: do {
+ if (!(out_grouping(g_v, 97, 259)))
+ {
+ break lab8;
+ }
+ break golab7;
+ } while (false);
+ if (cursor >= limit)
+ {
+ break lab2;
+ }
+ cursor++;
+ }
+ } while (false);
+ break lab1;
+ } while (false);
+ cursor = v_2;
+ // (, line 47
+ if (!(out_grouping(g_v, 97, 259)))
+ {
+ break lab0;
+ }
+ // or, line 47
+ lab9: do {
+ v_6 = cursor;
+ lab10: do {
+ // (, line 47
+ if (!(out_grouping(g_v, 97, 259)))
+ {
+ break lab10;
+ }
+ // gopast, line 47
+ golab11: while(true)
+ {
+ lab12: do {
+ if (!(in_grouping(g_v, 97, 259)))
+ {
+ break lab12;
+ }
+ break golab11;
+ } while (false);
+ if (cursor >= limit)
+ {
+ break lab10;
+ }
+ cursor++;
+ }
+ break lab9;
+ } while (false);
+ cursor = v_6;
+ // (, line 47
+ if (!(in_grouping(g_v, 97, 259)))
+ {
+ break lab0;
+ }
+ // next, line 47
+ if (cursor >= limit)
+ {
+ break lab0;
+ }
+ cursor++;
+ } while (false);
+ } while (false);
+ // setmark pV, line 48
+ I_pV = cursor;
+ } while (false);
+ cursor = v_1;
+ // do, line 50
+ v_8 = cursor;
+ lab13: do {
+ // (, line 50
+ // gopast, line 51
+ golab14: while(true)
+ {
+ lab15: do {
+ if (!(in_grouping(g_v, 97, 259)))
+ {
+ break lab15;
+ }
+ break golab14;
+ } while (false);
+ if (cursor >= limit)
+ {
+ break lab13;
+ }
+ cursor++;
+ }
+ // gopast, line 51
+ golab16: while(true)
+ {
+ lab17: do {
+ if (!(out_grouping(g_v, 97, 259)))
+ {
+ break lab17;
+ }
+ break golab16;
+ } while (false);
+ if (cursor >= limit)
+ {
+ break lab13;
+ }
+ cursor++;
+ }
+ // setmark p1, line 51
+ I_p1 = cursor;
+ // gopast, line 52
+ golab18: while(true)
+ {
+ lab19: do {
+ if (!(in_grouping(g_v, 97, 259)))
+ {
+ break lab19;
+ }
+ break golab18;
+ } while (false);
+ if (cursor >= limit)
+ {
+ break lab13;
+ }
+ cursor++;
+ }
+ // gopast, line 52
+ golab20: while(true)
+ {
+ lab21: do {
+ if (!(out_grouping(g_v, 97, 259)))
+ {
+ break lab21;
+ }
+ break golab20;
+ } while (false);
+ if (cursor >= limit)
+ {
+ break lab13;
+ }
+ cursor++;
+ }
+ // setmark p2, line 52
+ I_p2 = cursor;
+ } while (false);
+ cursor = v_8;
+ return true;
+ }
+
+ private boolean r_postlude() {
+ int among_var;
+ int v_1;
+ // repeat, line 56
+ replab0: while(true)
+ {
+ v_1 = cursor;
+ lab1: do {
+ // (, line 56
+ // [, line 58
+ bra = cursor;
+ // substring, line 58
+ among_var = find_among(a_0, 3);
+ if (among_var == 0)
+ {
+ break lab1;
+ }
+ // ], line 58
+ ket = cursor;
+ switch(among_var) {
+ case 0:
+ break lab1;
+ case 1:
+ // (, line 59
+ // <-, line 59
+ slice_from("i");
+ break;
+ case 2:
+ // (, line 60
+ // <-, line 60
+ slice_from("u");
+ break;
+ case 3:
+ // (, line 61
+ // next, line 61
+ if (cursor >= limit)
+ {
+ break lab1;
+ }
+ cursor++;
+ break;
+ }
+ continue replab0;
+ } while (false);
+ cursor = v_1;
+ break replab0;
+ }
+ return true;
+ }
+
+ private boolean r_RV() {
+ if (!(I_pV <= cursor))
+ {
+ return false;
+ }
+ return true;
+ }
+
+ private boolean r_R1() {
+ if (!(I_p1 <= cursor))
+ {
+ return false;
+ }
+ return true;
+ }
+
+ private boolean r_R2() {
+ if (!(I_p2 <= cursor))
+ {
+ return false;
+ }
+ return true;
+ }
+
+ private boolean r_step_0() {
+ int among_var;
+ int v_1;
+ // (, line 72
+ // [, line 73
+ ket = cursor;
+ // substring, line 73
+ among_var = find_among_b(a_1, 16);
+ if (among_var == 0)
+ {
+ return false;
+ }
+ // ], line 73
+ bra = cursor;
+ // call R1, line 73
+ if (!r_R1())
+ {
+ return false;
+ }
+ switch(among_var) {
+ case 0:
+ return false;
+ case 1:
+ // (, line 75
+ // delete, line 75
+ slice_del();
+ break;
+ case 2:
+ // (, line 77
+ // <-, line 77
+ slice_from("a");
+ break;
+ case 3:
+ // (, line 79
+ // <-, line 79
+ slice_from("e");
+ break;
+ case 4:
+ // (, line 81
+ // <-, line 81
+ slice_from("i");
+ break;
+ case 5:
+ // (, line 83
+ // not, line 83
+ {
+ v_1 = limit - cursor;
+ lab0: do {
+ // literal, line 83
+ if (!(eq_s_b(2, "ab")))
+ {
+ break lab0;
+ }
+ return false;
+ } while (false);
+ cursor = limit - v_1;
+ }
+ // <-, line 83
+ slice_from("i");
+ break;
+ case 6:
+ // (, line 85
+ // <-, line 85
+ slice_from("at");
+ break;
+ case 7:
+ // (, line 87
+ // <-, line 87
+ slice_from("a\u0163i");
+ break;
+ }
+ return true;
+ }
+
+ private boolean r_combo_suffix() {
+ int among_var;
+ int v_1;
+ // test, line 91
+ v_1 = limit - cursor;
+ // (, line 91
+ // [, line 92
+ ket = cursor;
+ // substring, line 92
+ among_var = find_among_b(a_2, 46);
+ if (among_var == 0)
+ {
+ return false;
+ }
+ // ], line 92
+ bra = cursor;
+ // call R1, line 92
+ if (!r_R1())
+ {
+ return false;
+ }
+ // (, line 92
+ switch(among_var) {
+ case 0:
+ return false;
+ case 1:
+ // (, line 100
+ // <-, line 101
+ slice_from("abil");
+ break;
+ case 2:
+ // (, line 103
+ // <-, line 104
+ slice_from("ibil");
+ break;
+ case 3:
+ // (, line 106
+ // <-, line 107
+ slice_from("iv");
+ break;
+ case 4:
+ // (, line 112
+ // <-, line 113
+ slice_from("ic");
+ break;
+ case 5:
+ // (, line 117
+ // <-, line 118
+ slice_from("at");
+ break;
+ case 6:
+ // (, line 121
+ // <-, line 122
+ slice_from("it");
+ break;
+ }
+ // set standard_suffix_removed, line 125
+ B_standard_suffix_removed = true;
+ cursor = limit - v_1;
+ return true;
+ }
+
+ private boolean r_standard_suffix() {
+ int among_var;
+ int v_1;
+ // (, line 129
+ // unset standard_suffix_removed, line 130
+ B_standard_suffix_removed = false;
+ // repeat, line 131
+ replab0: while(true)
+ {
+ v_1 = limit - cursor;
+ lab1: do {
+ // call combo_suffix, line 131
+ if (!r_combo_suffix())
+ {
+ break lab1;
+ }
+ continue replab0;
+ } while (false);
+ cursor = limit - v_1;
+ break replab0;
+ }
+ // [, line 132
+ ket = cursor;
+ // substring, line 132
+ among_var = find_among_b(a_3, 62);
+ if (among_var == 0)
+ {
+ return false;
+ }
+ // ], line 132
+ bra = cursor;
+ // call R2, line 132
+ if (!r_R2())
+ {
+ return false;
+ }
+ // (, line 132
+ switch(among_var) {
+ case 0:
+ return false;
+ case 1:
+ // (, line 148
+ // delete, line 149
+ slice_del();
+ break;
+ case 2:
+ // (, line 151
+ // literal, line 152
+ if (!(eq_s_b(1, "\u0163")))
+ {
+ return false;
+ }
+ // ], line 152
+ bra = cursor;
+ // <-, line 152
+ slice_from("t");
+ break;
+ case 3:
+ // (, line 155
+ // <-, line 156
+ slice_from("ist");
+ break;
+ }
+ // set standard_suffix_removed, line 160
+ B_standard_suffix_removed = true;
+ return true;
+ }
+
+ private boolean r_verb_suffix() {
+ int among_var;
+ int v_1;
+ int v_2;
+ int v_3;
+ // setlimit, line 164
+ v_1 = limit - cursor;
+ // tomark, line 164
+ if (cursor < I_pV)
+ {
+ return false;
+ }
+ cursor = I_pV;
+ v_2 = limit_backward;
+ limit_backward = cursor;
+ cursor = limit - v_1;
+ // (, line 164
+ // [, line 165
+ ket = cursor;
+ // substring, line 165
+ among_var = find_among_b(a_4, 94);
+ if (among_var == 0)
+ {
+ limit_backward = v_2;
+ return false;
+ }
+ // ], line 165
+ bra = cursor;
+ switch(among_var) {
+ case 0:
+ limit_backward = v_2;
+ return false;
+ case 1:
+ // (, line 200
+ // or, line 200
+ lab0: do {
+ v_3 = limit - cursor;
+ lab1: do {
+ if (!(out_grouping_b(g_v, 97, 259)))
+ {
+ break lab1;
+ }
+ break lab0;
+ } while (false);
+ cursor = limit - v_3;
+ // literal, line 200
+ if (!(eq_s_b(1, "u")))
+ {
+ limit_backward = v_2;
+ return false;
+ }
+ } while (false);
+ // delete, line 200
+ slice_del();
+ break;
+ case 2:
+ // (, line 214
+ // delete, line 214
+ slice_del();
+ break;
+ }
+ limit_backward = v_2;
+ return true;
+ }
+
+ private boolean r_vowel_suffix() {
+ int among_var;
+ // (, line 218
+ // [, line 219
+ ket = cursor;
+ // substring, line 219
+ among_var = find_among_b(a_5, 5);
+ if (among_var == 0)
+ {
+ return false;
+ }
+ // ], line 219
+ bra = cursor;
+ // call RV, line 219
+ if (!r_RV())
+ {
+ return false;
+ }
+ switch(among_var) {
+ case 0:
+ return false;
+ case 1:
+ // (, line 220
+ // delete, line 220
+ slice_del();
+ break;
+ }
+ return true;
+ }
+
+ public boolean stem() {
+ int v_1;
+ int v_2;
+ int v_3;
+ int v_4;
+ int v_5;
+ int v_6;
+ int v_7;
+ int v_8;
+ // (, line 225
+ // do, line 226
+ v_1 = cursor;
+ lab0: do {
+ // call prelude, line 226
+ if (!r_prelude())
+ {
+ break lab0;
+ }
+ } while (false);
+ cursor = v_1;
+ // do, line 227
+ v_2 = cursor;
+ lab1: do {
+ // call mark_regions, line 227
+ if (!r_mark_regions())
+ {
+ break lab1;
+ }
+ } while (false);
+ cursor = v_2;
+ // backwards, line 228
+ limit_backward = cursor; cursor = limit;
+ // (, line 228
+ // do, line 229
+ v_3 = limit - cursor;
+ lab2: do {
+ // call step_0, line 229
+ if (!r_step_0())
+ {
+ break lab2;
+ }
+ } while (false);
+ cursor = limit - v_3;
+ // do, line 230
+ v_4 = limit - cursor;
+ lab3: do {
+ // call standard_suffix, line 230
+ if (!r_standard_suffix())
+ {
+ break lab3;
+ }
+ } while (false);
+ cursor = limit - v_4;
+ // do, line 231
+ v_5 = limit - cursor;
+ lab4: do {
+ // (, line 231
+ // or, line 231
+ lab5: do {
+ v_6 = limit - cursor;
+ lab6: do {
+ // Boolean test standard_suffix_removed, line 231
+ if (!(B_standard_suffix_removed))
+ {
+ break lab6;
+ }
+ break lab5;
+ } while (false);
+ cursor = limit - v_6;
+ // call verb_suffix, line 231
+ if (!r_verb_suffix())
+ {
+ break lab4;
+ }
+ } while (false);
+ } while (false);
+ cursor = limit - v_5;
+ // do, line 232
+ v_7 = limit - cursor;
+ lab7: do {
+ // call vowel_suffix, line 232
+ if (!r_vowel_suffix())
+ {
+ break lab7;
+ }
+ } while (false);
+ cursor = limit - v_7;
+ cursor = limit_backward; // do, line 234
+ v_8 = cursor;
+ lab8: do {
+ // call postlude, line 234
+ if (!r_postlude())
+ {
+ break lab8;
+ }
+ } while (false);
+ cursor = v_8;
+ return true;
+ }
+
+}
+
diff --git a/contrib/snowball/src/java/net/sf/snowball/ext/RussianStemmer.java b/contrib/snowball/src/java/org/tartarus/snowball/ext/RussianStemmer.java
similarity index 50%
rename from contrib/snowball/src/java/net/sf/snowball/ext/RussianStemmer.java
rename to contrib/snowball/src/java/org/tartarus/snowball/ext/RussianStemmer.java
index d71a4eb63af..fad1835cda6 100644
--- a/contrib/snowball/src/java/net/sf/snowball/ext/RussianStemmer.java
+++ b/contrib/snowball/src/java/org/tartarus/snowball/ext/RussianStemmer.java
@@ -1,8 +1,8 @@
// This file was generated automatically by the Snowball to Java compiler
-package net.sf.snowball.ext;
-import net.sf.snowball.SnowballProgram;
-import net.sf.snowball.Among;
+package org.tartarus.snowball.ext;
+import org.tartarus.snowball.SnowballProgram;
+import org.tartarus.snowball.Among;
/**
* Generated class implementing code defined by a snowball script.
@@ -10,163 +10,163 @@ import net.sf.snowball.Among;
public class RussianStemmer extends SnowballProgram {
private Among a_0[] = {
- new Among ( "\u00D7\u00DB\u00C9", -1, 1, "", this),
- new Among ( "\u00C9\u00D7\u00DB\u00C9", 0, 2, "", this),
- new Among ( "\u00D9\u00D7\u00DB\u00C9", 0, 2, "", this),
- new Among ( "\u00D7", -1, 1, "", this),
- new Among ( "\u00C9\u00D7", 3, 2, "", this),
- new Among ( "\u00D9\u00D7", 3, 2, "", this),
- new Among ( "\u00D7\u00DB\u00C9\u00D3\u00D8", -1, 1, "", this),
- new Among ( "\u00C9\u00D7\u00DB\u00C9\u00D3\u00D8", 6, 2, "", this),
- new Among ( "\u00D9\u00D7\u00DB\u00C9\u00D3\u00D8", 6, 2, "", this)
+ new Among ( "\u0432", -1, 1, "", this),
+ new Among ( "\u0438\u0432", 0, 2, "", this),
+ new Among ( "\u044B\u0432", 0, 2, "", this),
+ new Among ( "\u0432\u0448\u0438", -1, 1, "", this),
+ new Among ( "\u0438\u0432\u0448\u0438", 3, 2, "", this),
+ new Among ( "\u044B\u0432\u0448\u0438", 3, 2, "", this),
+ new Among ( "\u0432\u0448\u0438\u0441\u044C", -1, 1, "", this),
+ new Among ( "\u0438\u0432\u0448\u0438\u0441\u044C", 6, 2, "", this),
+ new Among ( "\u044B\u0432\u0448\u0438\u0441\u044C", 6, 2, "", this)
};
private Among a_1[] = {
- new Among ( "\u00C0\u00C0", -1, 1, "", this),
- new Among ( "\u00C5\u00C0", -1, 1, "", this),
- new Among ( "\u00CF\u00C0", -1, 1, "", this),
- new Among ( "\u00D5\u00C0", -1, 1, "", this),
- new Among ( "\u00C5\u00C5", -1, 1, "", this),
- new Among ( "\u00C9\u00C5", -1, 1, "", this),
- new Among ( "\u00CF\u00C5", -1, 1, "", this),
- new Among ( "\u00D9\u00C5", -1, 1, "", this),
- new Among ( "\u00C9\u00C8", -1, 1, "", this),
- new Among ( "\u00D9\u00C8", -1, 1, "", this),
- new Among ( "\u00C9\u00CD\u00C9", -1, 1, "", this),
- new Among ( "\u00D9\u00CD\u00C9", -1, 1, "", this),
- new Among ( "\u00C5\u00CA", -1, 1, "", this),
- new Among ( "\u00C9\u00CA", -1, 1, "", this),
- new Among ( "\u00CF\u00CA", -1, 1, "", this),
- new Among ( "\u00D9\u00CA", -1, 1, "", this),
- new Among ( "\u00C5\u00CD", -1, 1, "", this),
- new Among ( "\u00C9\u00CD", -1, 1, "", this),
- new Among ( "\u00CF\u00CD", -1, 1, "", this),
- new Among ( "\u00D9\u00CD", -1, 1, "", this),
- new Among ( "\u00C5\u00C7\u00CF", -1, 1, "", this),
- new Among ( "\u00CF\u00C7\u00CF", -1, 1, "", this),
- new Among ( "\u00C1\u00D1", -1, 1, "", this),
- new Among ( "\u00D1\u00D1", -1, 1, "", this),
- new Among ( "\u00C5\u00CD\u00D5", -1, 1, "", this),
- new Among ( "\u00CF\u00CD\u00D5", -1, 1, "", this)
+ new Among ( "\u0435\u0435", -1, 1, "", this),
+ new Among ( "\u0438\u0435", -1, 1, "", this),
+ new Among ( "\u043E\u0435", -1, 1, "", this),
+ new Among ( "\u044B\u0435", -1, 1, "", this),
+ new Among ( "\u0438\u043C\u0438", -1, 1, "", this),
+ new Among ( "\u044B\u043C\u0438", -1, 1, "", this),
+ new Among ( "\u0435\u0439", -1, 1, "", this),
+ new Among ( "\u0438\u0439", -1, 1, "", this),
+ new Among ( "\u043E\u0439", -1, 1, "", this),
+ new Among ( "\u044B\u0439", -1, 1, "", this),
+ new Among ( "\u0435\u043C", -1, 1, "", this),
+ new Among ( "\u0438\u043C", -1, 1, "", this),
+ new Among ( "\u043E\u043C", -1, 1, "", this),
+ new Among ( "\u044B\u043C", -1, 1, "", this),
+ new Among ( "\u0435\u0433\u043E", -1, 1, "", this),
+ new Among ( "\u043E\u0433\u043E", -1, 1, "", this),
+ new Among ( "\u0435\u043C\u0443", -1, 1, "", this),
+ new Among ( "\u043E\u043C\u0443", -1, 1, "", this),
+ new Among ( "\u0438\u0445", -1, 1, "", this),
+ new Among ( "\u044B\u0445", -1, 1, "", this),
+ new Among ( "\u0435\u044E", -1, 1, "", this),
+ new Among ( "\u043E\u044E", -1, 1, "", this),
+ new Among ( "\u0443\u044E", -1, 1, "", this),
+ new Among ( "\u044E\u044E", -1, 1, "", this),
+ new Among ( "\u0430\u044F", -1, 1, "", this),
+ new Among ( "\u044F\u044F", -1, 1, "", this)
};
private Among a_2[] = {
- new Among ( "\u00C5\u00CD", -1, 1, "", this),
- new Among ( "\u00CE\u00CE", -1, 1, "", this),
- new Among ( "\u00D7\u00DB", -1, 1, "", this),
- new Among ( "\u00C9\u00D7\u00DB", 2, 2, "", this),
- new Among ( "\u00D9\u00D7\u00DB", 2, 2, "", this),
- new Among ( "\u00DD", -1, 1, "", this),
- new Among ( "\u00C0\u00DD", 5, 1, "", this),
- new Among ( "\u00D5\u00C0\u00DD", 6, 2, "", this)
+ new Among ( "\u0435\u043C", -1, 1, "", this),
+ new Among ( "\u043D\u043D", -1, 1, "", this),
+ new Among ( "\u0432\u0448", -1, 1, "", this),
+ new Among ( "\u0438\u0432\u0448", 2, 2, "", this),
+ new Among ( "\u044B\u0432\u0448", 2, 2, "", this),
+ new Among ( "\u0449", -1, 1, "", this),
+ new Among ( "\u044E\u0449", 5, 1, "", this),
+ new Among ( "\u0443\u044E\u0449", 6, 2, "", this)
};
private Among a_3[] = {
- new Among ( "\u00D3\u00D1", -1, 1, "", this),
- new Among ( "\u00D3\u00D8", -1, 1, "", this)
+ new Among ( "\u0441\u044C", -1, 1, "", this),
+ new Among ( "\u0441\u044F", -1, 1, "", this)
};
private Among a_4[] = {
- new Among ( "\u00C0", -1, 2, "", this),
- new Among ( "\u00D5\u00C0", 0, 2, "", this),
- new Among ( "\u00CC\u00C1", -1, 1, "", this),
- new Among ( "\u00C9\u00CC\u00C1", 2, 2, "", this),
- new Among ( "\u00D9\u00CC\u00C1", 2, 2, "", this),
- new Among ( "\u00CE\u00C1", -1, 1, "", this),
- new Among ( "\u00C5\u00CE\u00C1", 5, 2, "", this),
- new Among ( "\u00C5\u00D4\u00C5", -1, 1, "", this),
- new Among ( "\u00C9\u00D4\u00C5", -1, 2, "", this),
- new Among ( "\u00CA\u00D4\u00C5", -1, 1, "", this),
- new Among ( "\u00C5\u00CA\u00D4\u00C5", 9, 2, "", this),
- new Among ( "\u00D5\u00CA\u00D4\u00C5", 9, 2, "", this),
- new Among ( "\u00CC\u00C9", -1, 1, "", this),
- new Among ( "\u00C9\u00CC\u00C9", 12, 2, "", this),
- new Among ( "\u00D9\u00CC\u00C9", 12, 2, "", this),
- new Among ( "\u00CA", -1, 1, "", this),
- new Among ( "\u00C5\u00CA", 15, 2, "", this),
- new Among ( "\u00D5\u00CA", 15, 2, "", this),
- new Among ( "\u00CC", -1, 1, "", this),
- new Among ( "\u00C9\u00CC", 18, 2, "", this),
- new Among ( "\u00D9\u00CC", 18, 2, "", this),
- new Among ( "\u00C5\u00CD", -1, 1, "", this),
- new Among ( "\u00C9\u00CD", -1, 2, "", this),
- new Among ( "\u00D9\u00CD", -1, 2, "", this),
- new Among ( "\u00CE", -1, 1, "", this),
- new Among ( "\u00C5\u00CE", 24, 2, "", this),
- new Among ( "\u00CC\u00CF", -1, 1, "", this),
- new Among ( "\u00C9\u00CC\u00CF", 26, 2, "", this),
- new Among ( "\u00D9\u00CC\u00CF", 26, 2, "", this),
- new Among ( "\u00CE\u00CF", -1, 1, "", this),
- new Among ( "\u00C5\u00CE\u00CF", 29, 2, "", this),
- new Among ( "\u00CE\u00CE\u00CF", 29, 1, "", this),
- new Among ( "\u00C0\u00D4", -1, 1, "", this),
- new Among ( "\u00D5\u00C0\u00D4", 32, 2, "", this),
- new Among ( "\u00C5\u00D4", -1, 1, "", this),
- new Among ( "\u00D5\u00C5\u00D4", 34, 2, "", this),
- new Among ( "\u00C9\u00D4", -1, 2, "", this),
- new Among ( "\u00D1\u00D4", -1, 2, "", this),
- new Among ( "\u00D9\u00D4", -1, 2, "", this),
- new Among ( "\u00D4\u00D8", -1, 1, "", this),
- new Among ( "\u00C9\u00D4\u00D8", 39, 2, "", this),
- new Among ( "\u00D9\u00D4\u00D8", 39, 2, "", this),
- new Among ( "\u00C5\u00DB\u00D8", -1, 1, "", this),
- new Among ( "\u00C9\u00DB\u00D8", -1, 2, "", this),
- new Among ( "\u00CE\u00D9", -1, 1, "", this),
- new Among ( "\u00C5\u00CE\u00D9", 44, 2, "", this)
+ new Among ( "\u043B\u0430", -1, 1, "", this),
+ new Among ( "\u0438\u043B\u0430", 0, 2, "", this),
+ new Among ( "\u044B\u043B\u0430", 0, 2, "", this),
+ new Among ( "\u043D\u0430", -1, 1, "", this),
+ new Among ( "\u0435\u043D\u0430", 3, 2, "", this),
+ new Among ( "\u0435\u0442\u0435", -1, 1, "", this),
+ new Among ( "\u0438\u0442\u0435", -1, 2, "", this),
+ new Among ( "\u0439\u0442\u0435", -1, 1, "", this),
+ new Among ( "\u0435\u0439\u0442\u0435", 7, 2, "", this),
+ new Among ( "\u0443\u0439\u0442\u0435", 7, 2, "", this),
+ new Among ( "\u043B\u0438", -1, 1, "", this),
+ new Among ( "\u0438\u043B\u0438", 10, 2, "", this),
+ new Among ( "\u044B\u043B\u0438", 10, 2, "", this),
+ new Among ( "\u0439", -1, 1, "", this),
+ new Among ( "\u0435\u0439", 13, 2, "", this),
+ new Among ( "\u0443\u0439", 13, 2, "", this),
+ new Among ( "\u043B", -1, 1, "", this),
+ new Among ( "\u0438\u043B", 16, 2, "", this),
+ new Among ( "\u044B\u043B", 16, 2, "", this),
+ new Among ( "\u0435\u043C", -1, 1, "", this),
+ new Among ( "\u0438\u043C", -1, 2, "", this),
+ new Among ( "\u044B\u043C", -1, 2, "", this),
+ new Among ( "\u043D", -1, 1, "", this),
+ new Among ( "\u0435\u043D", 22, 2, "", this),
+ new Among ( "\u043B\u043E", -1, 1, "", this),
+ new Among ( "\u0438\u043B\u043E", 24, 2, "", this),
+ new Among ( "\u044B\u043B\u043E", 24, 2, "", this),
+ new Among ( "\u043D\u043E", -1, 1, "", this),
+ new Among ( "\u0435\u043D\u043E", 27, 2, "", this),
+ new Among ( "\u043D\u043D\u043E", 27, 1, "", this),
+ new Among ( "\u0435\u0442", -1, 1, "", this),
+ new Among ( "\u0443\u0435\u0442", 30, 2, "", this),
+ new Among ( "\u0438\u0442", -1, 2, "", this),
+ new Among ( "\u044B\u0442", -1, 2, "", this),
+ new Among ( "\u044E\u0442", -1, 1, "", this),
+ new Among ( "\u0443\u044E\u0442", 34, 2, "", this),
+ new Among ( "\u044F\u0442", -1, 2, "", this),
+ new Among ( "\u043D\u044B", -1, 1, "", this),
+ new Among ( "\u0435\u043D\u044B", 37, 2, "", this),
+ new Among ( "\u0442\u044C", -1, 1, "", this),
+ new Among ( "\u0438\u0442\u044C", 39, 2, "", this),
+ new Among ( "\u044B\u0442\u044C", 39, 2, "", this),
+ new Among ( "\u0435\u0448\u044C", -1, 1, "", this),
+ new Among ( "\u0438\u0448\u044C", -1, 2, "", this),
+ new Among ( "\u044E", -1, 2, "", this),
+ new Among ( "\u0443\u044E", 44, 2, "", this)
};
private Among a_5[] = {
- new Among ( "\u00C0", -1, 1, "", this),
- new Among ( "\u00C9\u00C0", 0, 1, "", this),
- new Among ( "\u00D8\u00C0", 0, 1, "", this),
- new Among ( "\u00C1", -1, 1, "", this),
- new Among ( "\u00C5", -1, 1, "", this),
- new Among ( "\u00C9\u00C5", 4, 1, "", this),
- new Among ( "\u00D8\u00C5", 4, 1, "", this),
- new Among ( "\u00C1\u00C8", -1, 1, "", this),
- new Among ( "\u00D1\u00C8", -1, 1, "", this),
- new Among ( "\u00C9\u00D1\u00C8", 8, 1, "", this),
- new Among ( "\u00C9", -1, 1, "", this),
- new Among ( "\u00C5\u00C9", 10, 1, "", this),
- new Among ( "\u00C9\u00C9", 10, 1, "", this),
- new Among ( "\u00C1\u00CD\u00C9", 10, 1, "", this),
- new Among ( "\u00D1\u00CD\u00C9", 10, 1, "", this),
- new Among ( "\u00C9\u00D1\u00CD\u00C9", 14, 1, "", this),
- new Among ( "\u00CA", -1, 1, "", this),
- new Among ( "\u00C5\u00CA", 16, 1, "", this),
- new Among ( "\u00C9\u00C5\u00CA", 17, 1, "", this),
- new Among ( "\u00C9\u00CA", 16, 1, "", this),
- new Among ( "\u00CF\u00CA", 16, 1, "", this),
- new Among ( "\u00C1\u00CD", -1, 1, "", this),
- new Among ( "\u00C5\u00CD", -1, 1, "", this),
- new Among ( "\u00C9\u00C5\u00CD", 22, 1, "", this),
- new Among ( "\u00CF\u00CD", -1, 1, "", this),
- new Among ( "\u00D1\u00CD", -1, 1, "", this),
- new Among ( "\u00C9\u00D1\u00CD", 25, 1, "", this),
- new Among ( "\u00CF", -1, 1, "", this),
- new Among ( "\u00D1", -1, 1, "", this),
- new Among ( "\u00C9\u00D1", 28, 1, "", this),
- new Among ( "\u00D8\u00D1", 28, 1, "", this),
- new Among ( "\u00D5", -1, 1, "", this),
- new Among ( "\u00C5\u00D7", -1, 1, "", this),
- new Among ( "\u00CF\u00D7", -1, 1, "", this),
- new Among ( "\u00D8", -1, 1, "", this),
- new Among ( "\u00D9", -1, 1, "", this)
+ new Among ( "\u0430", -1, 1, "", this),
+ new Among ( "\u0435\u0432", -1, 1, "", this),
+ new Among ( "\u043E\u0432", -1, 1, "", this),
+ new Among ( "\u0435", -1, 1, "", this),
+ new Among ( "\u0438\u0435", 3, 1, "", this),
+ new Among ( "\u044C\u0435", 3, 1, "", this),
+ new Among ( "\u0438", -1, 1, "", this),
+ new Among ( "\u0435\u0438", 6, 1, "", this),
+ new Among ( "\u0438\u0438", 6, 1, "", this),
+ new Among ( "\u0430\u043C\u0438", 6, 1, "", this),
+ new Among ( "\u044F\u043C\u0438", 6, 1, "", this),
+ new Among ( "\u0438\u044F\u043C\u0438", 10, 1, "", this),
+ new Among ( "\u0439", -1, 1, "", this),
+ new Among ( "\u0435\u0439", 12, 1, "", this),
+ new Among ( "\u0438\u0435\u0439", 13, 1, "", this),
+ new Among ( "\u0438\u0439", 12, 1, "", this),
+ new Among ( "\u043E\u0439", 12, 1, "", this),
+ new Among ( "\u0430\u043C", -1, 1, "", this),
+ new Among ( "\u0435\u043C", -1, 1, "", this),
+ new Among ( "\u0438\u0435\u043C", 18, 1, "", this),
+ new Among ( "\u043E\u043C", -1, 1, "", this),
+ new Among ( "\u044F\u043C", -1, 1, "", this),
+ new Among ( "\u0438\u044F\u043C", 21, 1, "", this),
+ new Among ( "\u043E", -1, 1, "", this),
+ new Among ( "\u0443", -1, 1, "", this),
+ new Among ( "\u0430\u0445", -1, 1, "", this),
+ new Among ( "\u044F\u0445", -1, 1, "", this),
+ new Among ( "\u0438\u044F\u0445", 26, 1, "", this),
+ new Among ( "\u044B", -1, 1, "", this),
+ new Among ( "\u044C", -1, 1, "", this),
+ new Among ( "\u044E", -1, 1, "", this),
+ new Among ( "\u0438\u044E", 30, 1, "", this),
+ new Among ( "\u044C\u044E", 30, 1, "", this),
+ new Among ( "\u044F", -1, 1, "", this),
+ new Among ( "\u0438\u044F", 33, 1, "", this),
+ new Among ( "\u044C\u044F", 33, 1, "", this)
};
private Among a_6[] = {
- new Among ( "\u00CF\u00D3\u00D4", -1, 1, "", this),
- new Among ( "\u00CF\u00D3\u00D4\u00D8", -1, 1, "", this)
+ new Among ( "\u043E\u0441\u0442", -1, 1, "", this),
+ new Among ( "\u043E\u0441\u0442\u044C", -1, 1, "", this)
};
private Among a_7[] = {
- new Among ( "\u00C5\u00CA\u00DB\u00C5", -1, 1, "", this),
- new Among ( "\u00CE", -1, 2, "", this),
- new Among ( "\u00D8", -1, 3, "", this),
- new Among ( "\u00C5\u00CA\u00DB", -1, 1, "", this)
+ new Among ( "\u0435\u0439\u0448\u0435", -1, 1, "", this),
+ new Among ( "\u043D", -1, 2, "", this),
+ new Among ( "\u0435\u0439\u0448", -1, 1, "", this),
+ new Among ( "\u044C", -1, 3, "", this)
};
- private static final char g_v[] = {35, 130, 34, 18 };
+ private static final char g_v[] = {33, 65, 8, 232 };
private int I_p2;
private int I_pV;
@@ -179,18 +179,18 @@ public class RussianStemmer extends SnowballProgram {
private boolean r_mark_regions() {
int v_1;
- // (, line 96
+ // (, line 57
I_pV = limit;
I_p2 = limit;
- // do, line 100
+ // do, line 61
v_1 = cursor;
lab0: do {
- // (, line 100
- // gopast, line 101
+ // (, line 61
+ // gopast, line 62
golab1: while(true)
{
lab2: do {
- if (!(in_grouping(g_v, 192, 220)))
+ if (!(in_grouping(g_v, 1072, 1103)))
{
break lab2;
}
@@ -202,13 +202,13 @@ public class RussianStemmer extends SnowballProgram {
}
cursor++;
}
- // setmark pV, line 101
+ // setmark pV, line 62
I_pV = cursor;
- // gopast, line 101
+ // gopast, line 62
golab3: while(true)
{
lab4: do {
- if (!(out_grouping(g_v, 192, 220)))
+ if (!(out_grouping(g_v, 1072, 1103)))
{
break lab4;
}
@@ -220,11 +220,11 @@ public class RussianStemmer extends SnowballProgram {
}
cursor++;
}
- // gopast, line 102
+ // gopast, line 63
golab5: while(true)
{
lab6: do {
- if (!(in_grouping(g_v, 192, 220)))
+ if (!(in_grouping(g_v, 1072, 1103)))
{
break lab6;
}
@@ -236,11 +236,11 @@ public class RussianStemmer extends SnowballProgram {
}
cursor++;
}
- // gopast, line 102
+ // gopast, line 63
golab7: while(true)
{
lab8: do {
- if (!(out_grouping(g_v, 192, 220)))
+ if (!(out_grouping(g_v, 1072, 1103)))
{
break lab8;
}
@@ -252,7 +252,7 @@ public class RussianStemmer extends SnowballProgram {
}
cursor++;
}
- // setmark p2, line 102
+ // setmark p2, line 63
I_p2 = cursor;
} while (false);
cursor = v_1;
@@ -270,46 +270,46 @@ public class RussianStemmer extends SnowballProgram {
private boolean r_perfective_gerund() {
int among_var;
int v_1;
- // (, line 110
- // [, line 111
+ // (, line 71
+ // [, line 72
ket = cursor;
- // substring, line 111
+ // substring, line 72
among_var = find_among_b(a_0, 9);
if (among_var == 0)
{
return false;
}
- // ], line 111
+ // ], line 72
bra = cursor;
switch(among_var) {
case 0:
return false;
case 1:
- // (, line 115
- // or, line 115
+ // (, line 76
+ // or, line 76
lab0: do {
v_1 = limit - cursor;
lab1: do {
- // literal, line 115
- if (!(eq_s_b(1, "\u00C1")))
+ // literal, line 76
+ if (!(eq_s_b(1, "\u0430")))
{
break lab1;
}
break lab0;
} while (false);
cursor = limit - v_1;
- // literal, line 115
- if (!(eq_s_b(1, "\u00D1")))
+ // literal, line 76
+ if (!(eq_s_b(1, "\u044F")))
{
return false;
}
} while (false);
- // delete, line 115
+ // delete, line 76
slice_del();
break;
case 2:
- // (, line 122
- // delete, line 122
+ // (, line 83
+ // delete, line 83
slice_del();
break;
}
@@ -318,23 +318,23 @@ public class RussianStemmer extends SnowballProgram {
private boolean r_adjective() {
int among_var;
- // (, line 126
- // [, line 127
+ // (, line 87
+ // [, line 88
ket = cursor;
- // substring, line 127
+ // substring, line 88
among_var = find_among_b(a_1, 26);
if (among_var == 0)
{
return false;
}
- // ], line 127
+ // ], line 88
bra = cursor;
switch(among_var) {
case 0:
return false;
case 1:
- // (, line 136
- // delete, line 136
+ // (, line 97
+ // delete, line 97
slice_del();
break;
}
@@ -345,58 +345,58 @@ public class RussianStemmer extends SnowballProgram {
int among_var;
int v_1;
int v_2;
- // (, line 140
- // call adjective, line 141
+ // (, line 101
+ // call adjective, line 102
if (!r_adjective())
{
return false;
}
- // try, line 148
+ // try, line 109
v_1 = limit - cursor;
lab0: do {
- // (, line 148
- // [, line 149
+ // (, line 109
+ // [, line 110
ket = cursor;
- // substring, line 149
+ // substring, line 110
among_var = find_among_b(a_2, 8);
if (among_var == 0)
{
cursor = limit - v_1;
break lab0;
}
- // ], line 149
+ // ], line 110
bra = cursor;
switch(among_var) {
case 0:
cursor = limit - v_1;
break lab0;
case 1:
- // (, line 154
- // or, line 154
+ // (, line 115
+ // or, line 115
lab1: do {
v_2 = limit - cursor;
lab2: do {
- // literal, line 154
- if (!(eq_s_b(1, "\u00C1")))
+ // literal, line 115
+ if (!(eq_s_b(1, "\u0430")))
{
break lab2;
}
break lab1;
} while (false);
cursor = limit - v_2;
- // literal, line 154
- if (!(eq_s_b(1, "\u00D1")))
+ // literal, line 115
+ if (!(eq_s_b(1, "\u044F")))
{
cursor = limit - v_1;
break lab0;
}
} while (false);
- // delete, line 154
+ // delete, line 115
slice_del();
break;
case 2:
- // (, line 161
- // delete, line 161
+ // (, line 122
+ // delete, line 122
slice_del();
break;
}
@@ -406,23 +406,23 @@ public class RussianStemmer extends SnowballProgram {
private boolean r_reflexive() {
int among_var;
- // (, line 167
- // [, line 168
+ // (, line 128
+ // [, line 129
ket = cursor;
- // substring, line 168
+ // substring, line 129
among_var = find_among_b(a_3, 2);
if (among_var == 0)
{
return false;
}
- // ], line 168
+ // ], line 129
bra = cursor;
switch(among_var) {
case 0:
return false;
case 1:
- // (, line 171
- // delete, line 171
+ // (, line 132
+ // delete, line 132
slice_del();
break;
}
@@ -432,46 +432,46 @@ public class RussianStemmer extends SnowballProgram {
private boolean r_verb() {
int among_var;
int v_1;
- // (, line 175
- // [, line 176
+ // (, line 136
+ // [, line 137
ket = cursor;
- // substring, line 176
+ // substring, line 137
among_var = find_among_b(a_4, 46);
if (among_var == 0)
{
return false;
}
- // ], line 176
+ // ], line 137
bra = cursor;
switch(among_var) {
case 0:
return false;
case 1:
- // (, line 182
- // or, line 182
+ // (, line 143
+ // or, line 143
lab0: do {
v_1 = limit - cursor;
lab1: do {
- // literal, line 182
- if (!(eq_s_b(1, "\u00C1")))
+ // literal, line 143
+ if (!(eq_s_b(1, "\u0430")))
{
break lab1;
}
break lab0;
} while (false);
cursor = limit - v_1;
- // literal, line 182
- if (!(eq_s_b(1, "\u00D1")))
+ // literal, line 143
+ if (!(eq_s_b(1, "\u044F")))
{
return false;
}
} while (false);
- // delete, line 182
+ // delete, line 143
slice_del();
break;
case 2:
- // (, line 190
- // delete, line 190
+ // (, line 151
+ // delete, line 151
slice_del();
break;
}
@@ -480,23 +480,23 @@ public class RussianStemmer extends SnowballProgram {
private boolean r_noun() {
int among_var;
- // (, line 198
- // [, line 199
+ // (, line 159
+ // [, line 160
ket = cursor;
- // substring, line 199
+ // substring, line 160
among_var = find_among_b(a_5, 36);
if (among_var == 0)
{
return false;
}
- // ], line 199
+ // ], line 160
bra = cursor;
switch(among_var) {
case 0:
return false;
case 1:
- // (, line 206
- // delete, line 206
+ // (, line 167
+ // delete, line 167
slice_del();
break;
}
@@ -505,18 +505,18 @@ public class RussianStemmer extends SnowballProgram {
private boolean r_derivational() {
int among_var;
- // (, line 214
- // [, line 215
+ // (, line 175
+ // [, line 176
ket = cursor;
- // substring, line 215
+ // substring, line 176
among_var = find_among_b(a_6, 2);
if (among_var == 0)
{
return false;
}
- // ], line 215
+ // ], line 176
bra = cursor;
- // call R2, line 215
+ // call R2, line 176
if (!r_R2())
{
return false;
@@ -525,8 +525,8 @@ public class RussianStemmer extends SnowballProgram {
case 0:
return false;
case 1:
- // (, line 218
- // delete, line 218
+ // (, line 179
+ // delete, line 179
slice_del();
break;
}
@@ -535,54 +535,54 @@ public class RussianStemmer extends SnowballProgram {
private boolean r_tidy_up() {
int among_var;
- // (, line 222
- // [, line 223
+ // (, line 183
+ // [, line 184
ket = cursor;
- // substring, line 223
+ // substring, line 184
among_var = find_among_b(a_7, 4);
if (among_var == 0)
{
return false;
}
- // ], line 223
+ // ], line 184
bra = cursor;
switch(among_var) {
case 0:
return false;
case 1:
- // (, line 227
- // delete, line 227
+ // (, line 188
+ // delete, line 188
slice_del();
- // [, line 228
+ // [, line 189
ket = cursor;
- // literal, line 228
- if (!(eq_s_b(1, "\u00CE")))
+ // literal, line 189
+ if (!(eq_s_b(1, "\u043D")))
{
return false;
}
- // ], line 228
+ // ], line 189
bra = cursor;
- // literal, line 228
- if (!(eq_s_b(1, "\u00CE")))
+ // literal, line 189
+ if (!(eq_s_b(1, "\u043D")))
{
return false;
}
- // delete, line 228
+ // delete, line 189
slice_del();
break;
case 2:
- // (, line 231
- // literal, line 231
- if (!(eq_s_b(1, "\u00CE")))
+ // (, line 192
+ // literal, line 192
+ if (!(eq_s_b(1, "\u043D")))
{
return false;
}
- // delete, line 231
+ // delete, line 192
slice_del();
break;
case 3:
- // (, line 233
- // delete, line 233
+ // (, line 194
+ // delete, line 194
slice_del();
break;
}
@@ -600,22 +600,22 @@ public class RussianStemmer extends SnowballProgram {
int v_8;
int v_9;
int v_10;
- // (, line 238
- // do, line 240
+ // (, line 199
+ // do, line 201
v_1 = cursor;
lab0: do {
- // call mark_regions, line 240
+ // call mark_regions, line 201
if (!r_mark_regions())
{
break lab0;
}
} while (false);
cursor = v_1;
- // backwards, line 241
+ // backwards, line 202
limit_backward = cursor; cursor = limit;
- // setlimit, line 241
+ // setlimit, line 202
v_2 = limit - cursor;
- // tomark, line 241
+ // tomark, line 202
if (cursor < I_pV)
{
return false;
@@ -624,16 +624,16 @@ public class RussianStemmer extends SnowballProgram {
v_3 = limit_backward;
limit_backward = cursor;
cursor = limit - v_2;
- // (, line 241
- // do, line 242
+ // (, line 202
+ // do, line 203
v_4 = limit - cursor;
lab1: do {
- // (, line 242
- // or, line 243
+ // (, line 203
+ // or, line 204
lab2: do {
v_5 = limit - cursor;
lab3: do {
- // call perfective_gerund, line 243
+ // call perfective_gerund, line 204
if (!r_perfective_gerund())
{
break lab3;
@@ -641,22 +641,22 @@ public class RussianStemmer extends SnowballProgram {
break lab2;
} while (false);
cursor = limit - v_5;
- // (, line 244
- // try, line 244
+ // (, line 205
+ // try, line 205
v_6 = limit - cursor;
lab4: do {
- // call reflexive, line 244
+ // call reflexive, line 205
if (!r_reflexive())
{
cursor = limit - v_6;
break lab4;
}
} while (false);
- // or, line 245
+ // or, line 206
lab5: do {
v_7 = limit - cursor;
lab6: do {
- // call adjectival, line 245
+ // call adjectival, line 206
if (!r_adjectival())
{
break lab6;
@@ -665,7 +665,7 @@ public class RussianStemmer extends SnowballProgram {
} while (false);
cursor = limit - v_7;
lab7: do {
- // call verb, line 245
+ // call verb, line 206
if (!r_verb())
{
break lab7;
@@ -673,7 +673,7 @@ public class RussianStemmer extends SnowballProgram {
break lab5;
} while (false);
cursor = limit - v_7;
- // call noun, line 245
+ // call noun, line 206
if (!r_noun())
{
break lab1;
@@ -682,37 +682,37 @@ public class RussianStemmer extends SnowballProgram {
} while (false);
} while (false);
cursor = limit - v_4;
- // try, line 248
+ // try, line 209
v_8 = limit - cursor;
lab8: do {
- // (, line 248
- // [, line 248
+ // (, line 209
+ // [, line 209
ket = cursor;
- // literal, line 248
- if (!(eq_s_b(1, "\u00C9")))
+ // literal, line 209
+ if (!(eq_s_b(1, "\u0438")))
{
cursor = limit - v_8;
break lab8;
}
- // ], line 248
+ // ], line 209
bra = cursor;
- // delete, line 248
+ // delete, line 209
slice_del();
} while (false);
- // do, line 251
+ // do, line 212
v_9 = limit - cursor;
lab9: do {
- // call derivational, line 251
+ // call derivational, line 212
if (!r_derivational())
{
break lab9;
}
} while (false);
cursor = limit - v_9;
- // do, line 252
+ // do, line 213
v_10 = limit - cursor;
lab10: do {
- // call tidy_up, line 252
+ // call tidy_up, line 213
if (!r_tidy_up())
{
break lab10;
diff --git a/contrib/snowball/src/java/net/sf/snowball/ext/SpanishStemmer.java b/contrib/snowball/src/java/org/tartarus/snowball/ext/SpanishStemmer.java
similarity index 87%
rename from contrib/snowball/src/java/net/sf/snowball/ext/SpanishStemmer.java
rename to contrib/snowball/src/java/org/tartarus/snowball/ext/SpanishStemmer.java
index 462c403d880..acca4c41570 100644
--- a/contrib/snowball/src/java/net/sf/snowball/ext/SpanishStemmer.java
+++ b/contrib/snowball/src/java/org/tartarus/snowball/ext/SpanishStemmer.java
@@ -1,8 +1,8 @@
// This file was generated automatically by the Snowball to Java compiler
-package net.sf.snowball.ext;
-import net.sf.snowball.SnowballProgram;
-import net.sf.snowball.Among;
+package org.tartarus.snowball.ext;
+import org.tartarus.snowball.SnowballProgram;
+import org.tartarus.snowball.Among;
/**
* Generated class implementing code defined by a snowball script.
@@ -57,7 +57,8 @@ public class SpanishStemmer extends SnowballProgram {
private Among a_4[] = {
new Among ( "able", -1, 1, "", this),
- new Among ( "ible", -1, 1, "", this)
+ new Among ( "ible", -1, 1, "", this),
+ new Among ( "ante", -1, 1, "", this)
};
private Among a_5[] = {
@@ -68,6 +69,7 @@ public class SpanishStemmer extends SnowballProgram {
private Among a_6[] = {
new Among ( "ica", -1, 1, "", this),
+ new Among ( "ancia", -1, 2, "", this),
new Among ( "encia", -1, 5, "", this),
new Among ( "adora", -1, 2, "", this),
new Among ( "osa", -1, 1, "", this),
@@ -78,8 +80,9 @@ public class SpanishStemmer extends SnowballProgram {
new Among ( "idad", -1, 8, "", this),
new Among ( "able", -1, 1, "", this),
new Among ( "ible", -1, 1, "", this),
+ new Among ( "ante", -1, 2, "", this),
new Among ( "mente", -1, 7, "", this),
- new Among ( "amente", 11, 6, "", this),
+ new Among ( "amente", 13, 6, "", this),
new Among ( "aci\u00F3n", -1, 2, "", this),
new Among ( "uci\u00F3n", -1, 4, "", this),
new Among ( "ico", -1, 1, "", this),
@@ -90,6 +93,7 @@ public class SpanishStemmer extends SnowballProgram {
new Among ( "ivo", -1, 9, "", this),
new Among ( "ador", -1, 2, "", this),
new Among ( "icas", -1, 1, "", this),
+ new Among ( "ancias", -1, 2, "", this),
new Among ( "encias", -1, 5, "", this),
new Among ( "adoras", -1, 2, "", this),
new Among ( "osas", -1, 1, "", this),
@@ -103,6 +107,7 @@ public class SpanishStemmer extends SnowballProgram {
new Among ( "aciones", -1, 2, "", this),
new Among ( "uciones", -1, 4, "", this),
new Among ( "adores", -1, 2, "", this),
+ new Among ( "antes", -1, 2, "", this),
new Among ( "icos", -1, 1, "", this),
new Among ( "ismos", -1, 1, "", this),
new Among ( "osos", -1, 1, "", this),
@@ -632,7 +637,7 @@ public class SpanishStemmer extends SnowballProgram {
// [, line 87
ket = cursor;
// substring, line 87
- among_var = find_among_b(a_6, 42);
+ among_var = find_among_b(a_6, 46);
if (among_var == 0)
{
return false;
@@ -653,242 +658,242 @@ public class SpanishStemmer extends SnowballProgram {
slice_del();
break;
case 2:
- // (, line 103
- // call R2, line 104
+ // (, line 104
+ // call R2, line 105
if (!r_R2())
{
return false;
}
- // delete, line 104
+ // delete, line 105
slice_del();
- // try, line 105
+ // try, line 106
v_1 = limit - cursor;
lab0: do {
- // (, line 105
- // [, line 105
+ // (, line 106
+ // [, line 106
ket = cursor;
- // literal, line 105
+ // literal, line 106
if (!(eq_s_b(2, "ic")))
{
cursor = limit - v_1;
break lab0;
}
- // ], line 105
+ // ], line 106
bra = cursor;
- // call R2, line 105
+ // call R2, line 106
if (!r_R2())
{
cursor = limit - v_1;
break lab0;
}
- // delete, line 105
+ // delete, line 106
slice_del();
} while (false);
break;
case 3:
- // (, line 109
- // call R2, line 110
+ // (, line 110
+ // call R2, line 111
if (!r_R2())
{
return false;
}
- // <-, line 110
+ // <-, line 111
slice_from("log");
break;
case 4:
- // (, line 113
- // call R2, line 114
+ // (, line 114
+ // call R2, line 115
if (!r_R2())
{
return false;
}
- // <-, line 114
+ // <-, line 115
slice_from("u");
break;
case 5:
- // (, line 117
- // call R2, line 118
+ // (, line 118
+ // call R2, line 119
if (!r_R2())
{
return false;
}
- // <-, line 118
+ // <-, line 119
slice_from("ente");
break;
case 6:
- // (, line 121
- // call R1, line 122
+ // (, line 122
+ // call R1, line 123
if (!r_R1())
{
return false;
}
- // delete, line 122
+ // delete, line 123
slice_del();
- // try, line 123
+ // try, line 124
v_2 = limit - cursor;
lab1: do {
- // (, line 123
- // [, line 124
+ // (, line 124
+ // [, line 125
ket = cursor;
- // substring, line 124
+ // substring, line 125
among_var = find_among_b(a_3, 4);
if (among_var == 0)
{
cursor = limit - v_2;
break lab1;
}
- // ], line 124
+ // ], line 125
bra = cursor;
- // call R2, line 124
+ // call R2, line 125
if (!r_R2())
{
cursor = limit - v_2;
break lab1;
}
- // delete, line 124
+ // delete, line 125
slice_del();
switch(among_var) {
case 0:
cursor = limit - v_2;
break lab1;
case 1:
- // (, line 125
- // [, line 125
+ // (, line 126
+ // [, line 126
ket = cursor;
- // literal, line 125
+ // literal, line 126
if (!(eq_s_b(2, "at")))
{
cursor = limit - v_2;
break lab1;
}
- // ], line 125
+ // ], line 126
bra = cursor;
- // call R2, line 125
+ // call R2, line 126
if (!r_R2())
{
cursor = limit - v_2;
break lab1;
}
- // delete, line 125
+ // delete, line 126
slice_del();
break;
}
} while (false);
break;
case 7:
- // (, line 133
- // call R2, line 134
+ // (, line 134
+ // call R2, line 135
if (!r_R2())
{
return false;
}
- // delete, line 134
+ // delete, line 135
slice_del();
- // try, line 135
+ // try, line 136
v_3 = limit - cursor;
lab2: do {
- // (, line 135
- // [, line 136
+ // (, line 136
+ // [, line 137
ket = cursor;
- // substring, line 136
- among_var = find_among_b(a_4, 2);
+ // substring, line 137
+ among_var = find_among_b(a_4, 3);
if (among_var == 0)
{
cursor = limit - v_3;
break lab2;
}
- // ], line 136
+ // ], line 137
bra = cursor;
switch(among_var) {
case 0:
cursor = limit - v_3;
break lab2;
case 1:
- // (, line 138
- // call R2, line 138
+ // (, line 140
+ // call R2, line 140
if (!r_R2())
{
cursor = limit - v_3;
break lab2;
}
- // delete, line 138
+ // delete, line 140
slice_del();
break;
}
} while (false);
break;
case 8:
- // (, line 144
- // call R2, line 145
+ // (, line 146
+ // call R2, line 147
if (!r_R2())
{
return false;
}
- // delete, line 145
+ // delete, line 147
slice_del();
- // try, line 146
+ // try, line 148
v_4 = limit - cursor;
lab3: do {
- // (, line 146
- // [, line 147
+ // (, line 148
+ // [, line 149
ket = cursor;
- // substring, line 147
+ // substring, line 149
among_var = find_among_b(a_5, 3);
if (among_var == 0)
{
cursor = limit - v_4;
break lab3;
}
- // ], line 147
+ // ], line 149
bra = cursor;
switch(among_var) {
case 0:
cursor = limit - v_4;
break lab3;
case 1:
- // (, line 150
- // call R2, line 150
+ // (, line 152
+ // call R2, line 152
if (!r_R2())
{
cursor = limit - v_4;
break lab3;
}
- // delete, line 150
+ // delete, line 152
slice_del();
break;
}
} while (false);
break;
case 9:
- // (, line 156
- // call R2, line 157
+ // (, line 158
+ // call R2, line 159
if (!r_R2())
{
return false;
}
- // delete, line 157
+ // delete, line 159
slice_del();
- // try, line 158
+ // try, line 160
v_5 = limit - cursor;
lab4: do {
- // (, line 158
- // [, line 159
+ // (, line 160
+ // [, line 161
ket = cursor;
- // literal, line 159
+ // literal, line 161
if (!(eq_s_b(2, "at")))
{
cursor = limit - v_5;
break lab4;
}
- // ], line 159
+ // ], line 161
bra = cursor;
- // call R2, line 159
+ // call R2, line 161
if (!r_R2())
{
cursor = limit - v_5;
break lab4;
}
- // delete, line 159
+ // delete, line 161
slice_del();
} while (false);
break;
@@ -900,10 +905,10 @@ public class SpanishStemmer extends SnowballProgram {
int among_var;
int v_1;
int v_2;
- // (, line 165
- // setlimit, line 166
+ // (, line 167
+ // setlimit, line 168
v_1 = limit - cursor;
- // tomark, line 166
+ // tomark, line 168
if (cursor < I_pV)
{
return false;
@@ -912,30 +917,30 @@ public class SpanishStemmer extends SnowballProgram {
v_2 = limit_backward;
limit_backward = cursor;
cursor = limit - v_1;
- // (, line 166
- // [, line 166
+ // (, line 168
+ // [, line 168
ket = cursor;
- // substring, line 166
+ // substring, line 168
among_var = find_among_b(a_7, 12);
if (among_var == 0)
{
limit_backward = v_2;
return false;
}
- // ], line 166
+ // ], line 168
bra = cursor;
limit_backward = v_2;
switch(among_var) {
case 0:
return false;
case 1:
- // (, line 169
- // literal, line 169
+ // (, line 171
+ // literal, line 171
if (!(eq_s_b(1, "u")))
{
return false;
}
- // delete, line 169
+ // delete, line 171
slice_del();
break;
}
@@ -948,10 +953,10 @@ public class SpanishStemmer extends SnowballProgram {
int v_2;
int v_3;
int v_4;
- // (, line 173
- // setlimit, line 174
+ // (, line 175
+ // setlimit, line 176
v_1 = limit - cursor;
- // tomark, line 174
+ // tomark, line 176
if (cursor < I_pV)
{
return false;
@@ -960,37 +965,37 @@ public class SpanishStemmer extends SnowballProgram {
v_2 = limit_backward;
limit_backward = cursor;
cursor = limit - v_1;
- // (, line 174
- // [, line 174
+ // (, line 176
+ // [, line 176
ket = cursor;
- // substring, line 174
+ // substring, line 176
among_var = find_among_b(a_8, 96);
if (among_var == 0)
{
limit_backward = v_2;
return false;
}
- // ], line 174
+ // ], line 176
bra = cursor;
limit_backward = v_2;
switch(among_var) {
case 0:
return false;
case 1:
- // (, line 177
- // try, line 177
+ // (, line 179
+ // try, line 179
v_3 = limit - cursor;
lab0: do {
- // (, line 177
- // literal, line 177
+ // (, line 179
+ // literal, line 179
if (!(eq_s_b(1, "u")))
{
cursor = limit - v_3;
break lab0;
}
- // test, line 177
+ // test, line 179
v_4 = limit - cursor;
- // literal, line 177
+ // literal, line 179
if (!(eq_s_b(1, "g")))
{
cursor = limit - v_3;
@@ -998,14 +1003,14 @@ public class SpanishStemmer extends SnowballProgram {
}
cursor = limit - v_4;
} while (false);
- // ], line 177
+ // ], line 179
bra = cursor;
- // delete, line 177
+ // delete, line 179
slice_del();
break;
case 2:
- // (, line 198
- // delete, line 198
+ // (, line 200
+ // delete, line 200
slice_del();
break;
}
@@ -1016,69 +1021,69 @@ public class SpanishStemmer extends SnowballProgram {
int among_var;
int v_1;
int v_2;
- // (, line 202
- // [, line 203
+ // (, line 204
+ // [, line 205
ket = cursor;
- // substring, line 203
+ // substring, line 205
among_var = find_among_b(a_9, 8);
if (among_var == 0)
{
return false;
}
- // ], line 203
+ // ], line 205
bra = cursor;
switch(among_var) {
case 0:
return false;
case 1:
- // (, line 206
- // call RV, line 206
+ // (, line 208
+ // call RV, line 208
if (!r_RV())
{
return false;
}
- // delete, line 206
+ // delete, line 208
slice_del();
break;
case 2:
- // (, line 208
- // call RV, line 208
+ // (, line 210
+ // call RV, line 210
if (!r_RV())
{
return false;
}
- // delete, line 208
+ // delete, line 210
slice_del();
- // try, line 208
+ // try, line 210
v_1 = limit - cursor;
lab0: do {
- // (, line 208
- // [, line 208
+ // (, line 210
+ // [, line 210
ket = cursor;
- // literal, line 208
+ // literal, line 210
if (!(eq_s_b(1, "u")))
{
cursor = limit - v_1;
break lab0;
}
- // ], line 208
+ // ], line 210
bra = cursor;
- // test, line 208
+ // test, line 210
v_2 = limit - cursor;
- // literal, line 208
+ // literal, line 210
if (!(eq_s_b(1, "g")))
{
cursor = limit - v_1;
break lab0;
}
cursor = limit - v_2;
- // call RV, line 208
+ // call RV, line 210
if (!r_RV())
{
cursor = limit - v_1;
break lab0;
}
- // delete, line 208
+ // delete, line 210
slice_del();
} while (false);
break;
@@ -1093,39 +1098,39 @@ public class SpanishStemmer extends SnowballProgram {
int v_4;
int v_5;
int v_6;
- // (, line 213
- // do, line 214
+ // (, line 215
+ // do, line 216
v_1 = cursor;
lab0: do {
- // call mark_regions, line 214
+ // call mark_regions, line 216
if (!r_mark_regions())
{
break lab0;
}
} while (false);
cursor = v_1;
- // backwards, line 215
+ // backwards, line 217
limit_backward = cursor; cursor = limit;
- // (, line 215
- // do, line 216
+ // (, line 217
+ // do, line 218
v_2 = limit - cursor;
lab1: do {
- // call attached_pronoun, line 216
+ // call attached_pronoun, line 218
if (!r_attached_pronoun())
{
break lab1;
}
} while (false);
cursor = limit - v_2;
- // do, line 217
+ // do, line 219
v_3 = limit - cursor;
lab2: do {
- // (, line 217
- // or, line 217
+ // (, line 219
+ // or, line 219
lab3: do {
v_4 = limit - cursor;
lab4: do {
- // call standard_suffix, line 217
+ // call standard_suffix, line 219
if (!r_standard_suffix())
{
break lab4;
@@ -1134,7 +1139,7 @@ public class SpanishStemmer extends SnowballProgram {
} while (false);
cursor = limit - v_4;
lab5: do {
- // call y_verb_suffix, line 218
+ // call y_verb_suffix, line 220
if (!r_y_verb_suffix())
{
break lab5;
@@ -1142,7 +1147,7 @@ public class SpanishStemmer extends SnowballProgram {
break lab3;
} while (false);
cursor = limit - v_4;
- // call verb_suffix, line 219
+ // call verb_suffix, line 221
if (!r_verb_suffix())
{
break lab2;
@@ -1150,20 +1155,20 @@ public class SpanishStemmer extends SnowballProgram {
} while (false);
} while (false);
cursor = limit - v_3;
- // do, line 221
+ // do, line 223
v_5 = limit - cursor;
lab6: do {
- // call residual_suffix, line 221
+ // call residual_suffix, line 223
if (!r_residual_suffix())
{
break lab6;
}
} while (false);
cursor = limit - v_5;
- cursor = limit_backward; // do, line 223
+ cursor = limit_backward; // do, line 225
v_6 = cursor;
lab7: do {
- // call postlude, line 223
+ // call postlude, line 225
if (!r_postlude())
{
break lab7;
diff --git a/contrib/snowball/src/java/net/sf/snowball/ext/SwedishStemmer.java b/contrib/snowball/src/java/org/tartarus/snowball/ext/SwedishStemmer.java
similarity index 93%
rename from contrib/snowball/src/java/net/sf/snowball/ext/SwedishStemmer.java
rename to contrib/snowball/src/java/org/tartarus/snowball/ext/SwedishStemmer.java
index 83384adbc32..d1b33ec0b5b 100644
--- a/contrib/snowball/src/java/net/sf/snowball/ext/SwedishStemmer.java
+++ b/contrib/snowball/src/java/org/tartarus/snowball/ext/SwedishStemmer.java
@@ -1,8 +1,8 @@
// This file was generated automatically by the Snowball to Java compiler
-package net.sf.snowball.ext;
-import net.sf.snowball.SnowballProgram;
-import net.sf.snowball.Among;
+package org.tartarus.snowball.ext;
+import org.tartarus.snowball.SnowballProgram;
+import org.tartarus.snowball.Among;
/**
* Generated class implementing code defined by a snowball script.
@@ -71,30 +71,48 @@ public class SwedishStemmer extends SnowballProgram {
private static final char g_s_ending[] = {119, 127, 149 };
+ private int I_x;
private int I_p1;
private void copy_from(SwedishStemmer other) {
+ I_x = other.I_x;
I_p1 = other.I_p1;
super.copy_from(other);
}
private boolean r_mark_regions() {
int v_1;
+ int v_2;
// (, line 26
I_p1 = limit;
+ // test, line 29
+ v_1 = cursor;
+ // (, line 29
+ // hop, line 29
+ {
+ int c = cursor + 3;
+ if (0 > c || c > limit)
+ {
+ return false;
+ }
+ cursor = c;
+ }
+ // setmark x, line 29
+ I_x = cursor;
+ cursor = v_1;
// goto, line 30
golab0: while(true)
{
- v_1 = cursor;
+ v_2 = cursor;
lab1: do {
if (!(in_grouping(g_v, 97, 246)))
{
break lab1;
}
- cursor = v_1;
+ cursor = v_2;
break golab0;
} while (false);
- cursor = v_1;
+ cursor = v_2;
if (cursor >= limit)
{
return false;
@@ -122,11 +140,11 @@ public class SwedishStemmer extends SnowballProgram {
// try, line 31
lab4: do {
// (, line 31
- if (!(I_p1 < 3))
+ if (!(I_p1 < I_x))
{
break lab4;
}
- I_p1 = 3;
+ I_p1 = I_x;
} while (false);
return true;
}
diff --git a/contrib/snowball/src/java/org/tartarus/snowball/ext/TurkishStemmer.java b/contrib/snowball/src/java/org/tartarus/snowball/ext/TurkishStemmer.java
new file mode 100644
index 00000000000..0e4c7b07040
--- /dev/null
+++ b/contrib/snowball/src/java/org/tartarus/snowball/ext/TurkishStemmer.java
@@ -0,0 +1,3130 @@
+// This file was generated automatically by the Snowball to Java compiler
+
+package org.tartarus.snowball.ext;
+import org.tartarus.snowball.SnowballProgram;
+import org.tartarus.snowball.Among;
+
+/**
+ * Generated class implementing code defined by a snowball script.
+ */
+public class TurkishStemmer extends SnowballProgram {
+
+ private Among a_0[] = {
+ new Among ( "m", -1, -1, "", this),
+ new Among ( "n", -1, -1, "", this),
+ new Among ( "miz", -1, -1, "", this),
+ new Among ( "niz", -1, -1, "", this),
+ new Among ( "muz", -1, -1, "", this),
+ new Among ( "nuz", -1, -1, "", this),
+ new Among ( "m\u00FCz", -1, -1, "", this),
+ new Among ( "n\u00FCz", -1, -1, "", this),
+ new Among ( "m\u0131z", -1, -1, "", this),
+ new Among ( "n\u0131z", -1, -1, "", this)
+ };
+
+ private Among a_1[] = {
+ new Among ( "leri", -1, -1, "", this),
+ new Among ( "lar\u0131", -1, -1, "", this)
+ };
+
+ private Among a_2[] = {
+ new Among ( "ni", -1, -1, "", this),
+ new Among ( "nu", -1, -1, "", this),
+ new Among ( "n\u00FC", -1, -1, "", this),
+ new Among ( "n\u0131", -1, -1, "", this)
+ };
+
+ private Among a_3[] = {
+ new Among ( "in", -1, -1, "", this),
+ new Among ( "un", -1, -1, "", this),
+ new Among ( "\u00FCn", -1, -1, "", this),
+ new Among ( "\u0131n", -1, -1, "", this)
+ };
+
+ private Among a_4[] = {
+ new Among ( "a", -1, -1, "", this),
+ new Among ( "e", -1, -1, "", this)
+ };
+
+ private Among a_5[] = {
+ new Among ( "na", -1, -1, "", this),
+ new Among ( "ne", -1, -1, "", this)
+ };
+
+ private Among a_6[] = {
+ new Among ( "da", -1, -1, "", this),
+ new Among ( "ta", -1, -1, "", this),
+ new Among ( "de", -1, -1, "", this),
+ new Among ( "te", -1, -1, "", this)
+ };
+
+ private Among a_7[] = {
+ new Among ( "nda", -1, -1, "", this),
+ new Among ( "nde", -1, -1, "", this)
+ };
+
+ private Among a_8[] = {
+ new Among ( "dan", -1, -1, "", this),
+ new Among ( "tan", -1, -1, "", this),
+ new Among ( "den", -1, -1, "", this),
+ new Among ( "ten", -1, -1, "", this)
+ };
+
+ private Among a_9[] = {
+ new Among ( "ndan", -1, -1, "", this),
+ new Among ( "nden", -1, -1, "", this)
+ };
+
+ private Among a_10[] = {
+ new Among ( "la", -1, -1, "", this),
+ new Among ( "le", -1, -1, "", this)
+ };
+
+ private Among a_11[] = {
+ new Among ( "ca", -1, -1, "", this),
+ new Among ( "ce", -1, -1, "", this)
+ };
+
+ private Among a_12[] = {
+ new Among ( "im", -1, -1, "", this),
+ new Among ( "um", -1, -1, "", this),
+ new Among ( "\u00FCm", -1, -1, "", this),
+ new Among ( "\u0131m", -1, -1, "", this)
+ };
+
+ private Among a_13[] = {
+ new Among ( "sin", -1, -1, "", this),
+ new Among ( "sun", -1, -1, "", this),
+ new Among ( "s\u00FCn", -1, -1, "", this),
+ new Among ( "s\u0131n", -1, -1, "", this)
+ };
+
+ private Among a_14[] = {
+ new Among ( "iz", -1, -1, "", this),
+ new Among ( "uz", -1, -1, "", this),
+ new Among ( "\u00FCz", -1, -1, "", this),
+ new Among ( "\u0131z", -1, -1, "", this)
+ };
+
+ private Among a_15[] = {
+ new Among ( "siniz", -1, -1, "", this),
+ new Among ( "sunuz", -1, -1, "", this),
+ new Among ( "s\u00FCn\u00FCz", -1, -1, "", this),
+ new Among ( "s\u0131n\u0131z", -1, -1, "", this)
+ };
+
+ private Among a_16[] = {
+ new Among ( "lar", -1, -1, "", this),
+ new Among ( "ler", -1, -1, "", this)
+ };
+
+ private Among a_17[] = {
+ new Among ( "niz", -1, -1, "", this),
+ new Among ( "nuz", -1, -1, "", this),
+ new Among ( "n\u00FCz", -1, -1, "", this),
+ new Among ( "n\u0131z", -1, -1, "", this)
+ };
+
+ private Among a_18[] = {
+ new Among ( "dir", -1, -1, "", this),
+ new Among ( "tir", -1, -1, "", this),
+ new Among ( "dur", -1, -1, "", this),
+ new Among ( "tur", -1, -1, "", this),
+ new Among ( "d\u00FCr", -1, -1, "", this),
+ new Among ( "t\u00FCr", -1, -1, "", this),
+ new Among ( "d\u0131r", -1, -1, "", this),
+ new Among ( "t\u0131r", -1, -1, "", this)
+ };
+
+ private Among a_19[] = {
+ new Among ( "cas\u0131na", -1, -1, "", this),
+ new Among ( "cesine", -1, -1, "", this)
+ };
+
+ private Among a_20[] = {
+ new Among ( "di", -1, -1, "", this),
+ new Among ( "ti", -1, -1, "", this),
+ new Among ( "dik", -1, -1, "", this),
+ new Among ( "tik", -1, -1, "", this),
+ new Among ( "duk", -1, -1, "", this),
+ new Among ( "tuk", -1, -1, "", this),
+ new Among ( "d\u00FCk", -1, -1, "", this),
+ new Among ( "t\u00FCk", -1, -1, "", this),
+ new Among ( "d\u0131k", -1, -1, "", this),
+ new Among ( "t\u0131k", -1, -1, "", this),
+ new Among ( "dim", -1, -1, "", this),
+ new Among ( "tim", -1, -1, "", this),
+ new Among ( "dum", -1, -1, "", this),
+ new Among ( "tum", -1, -1, "", this),
+ new Among ( "d\u00FCm", -1, -1, "", this),
+ new Among ( "t\u00FCm", -1, -1, "", this),
+ new Among ( "d\u0131m", -1, -1, "", this),
+ new Among ( "t\u0131m", -1, -1, "", this),
+ new Among ( "din", -1, -1, "", this),
+ new Among ( "tin", -1, -1, "", this),
+ new Among ( "dun", -1, -1, "", this),
+ new Among ( "tun", -1, -1, "", this),
+ new Among ( "d\u00FCn", -1, -1, "", this),
+ new Among ( "t\u00FCn", -1, -1, "", this),
+ new Among ( "d\u0131n", -1, -1, "", this),
+ new Among ( "t\u0131n", -1, -1, "", this),
+ new Among ( "du", -1, -1, "", this),
+ new Among ( "tu", -1, -1, "", this),
+ new Among ( "d\u00FC", -1, -1, "", this),
+ new Among ( "t\u00FC", -1, -1, "", this),
+ new Among ( "d\u0131", -1, -1, "", this),
+ new Among ( "t\u0131", -1, -1, "", this)
+ };
+
+ private Among a_21[] = {
+ new Among ( "sa", -1, -1, "", this),
+ new Among ( "se", -1, -1, "", this),
+ new Among ( "sak", -1, -1, "", this),
+ new Among ( "sek", -1, -1, "", this),
+ new Among ( "sam", -1, -1, "", this),
+ new Among ( "sem", -1, -1, "", this),
+ new Among ( "san", -1, -1, "", this),
+ new Among ( "sen", -1, -1, "", this)
+ };
+
+ private Among a_22[] = {
+ new Among ( "mi\u015F", -1, -1, "", this),
+ new Among ( "mu\u015F", -1, -1, "", this),
+ new Among ( "m\u00FC\u015F", -1, -1, "", this),
+ new Among ( "m\u0131\u015F", -1, -1, "", this)
+ };
+
+ private Among a_23[] = {
+ new Among ( "b", -1, 1, "", this),
+ new Among ( "c", -1, 2, "", this),
+ new Among ( "d", -1, 3, "", this),
+ new Among ( "\u011F", -1, 4, "", this)
+ };
+
+ private static final char g_vowel[] = {17, 65, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 32, 8, 0, 0, 0, 0, 0, 0, 1 };
+
+ private static final char g_U[] = {1, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 1 };
+
+ private static final char g_vowel1[] = {1, 64, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 };
+
+ private static final char g_vowel2[] = {17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 130 };
+
+ private static final char g_vowel3[] = {1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 };
+
+ private static final char g_vowel4[] = {17 };
+
+ private static final char g_vowel5[] = {65 };
+
+ private static final char g_vowel6[] = {65 };
+
+ private boolean B_continue_stemming_noun_suffixes;
+ private int I_strlen;
+
+ private void copy_from(TurkishStemmer other) {
+ B_continue_stemming_noun_suffixes = other.B_continue_stemming_noun_suffixes;
+ I_strlen = other.I_strlen;
+ super.copy_from(other);
+ }
+
+ private boolean r_check_vowel_harmony() {
+ int v_1;
+ int v_2;
+ int v_3;
+ int v_4;
+ int v_5;
+ int v_6;
+ int v_7;
+ int v_8;
+ int v_9;
+ int v_10;
+ int v_11;
+ // (, line 111
+ // test, line 112
+ v_1 = limit - cursor;
+ // (, line 113
+ // (, line 114
+ // goto, line 114
+ golab0: while(true)
+ {
+ v_2 = limit - cursor;
+ lab1: do {
+ if (!(in_grouping_b(g_vowel, 97, 305)))
+ {
+ break lab1;
+ }
+ cursor = limit - v_2;
+ break golab0;
+ } while (false);
+ cursor = limit - v_2;
+ if (cursor <= limit_backward)
+ {
+ return false;
+ }
+ cursor--;
+ }
+ // (, line 115
+ // or, line 116
+ lab2: do {
+ v_3 = limit - cursor;
+ lab3: do {
+ // (, line 116
+ // literal, line 116
+ if (!(eq_s_b(1, "a")))
+ {
+ break lab3;
+ }
+ // goto, line 116
+ golab4: while(true)
+ {
+ v_4 = limit - cursor;
+ lab5: do {
+ if (!(in_grouping_b(g_vowel1, 97, 305)))
+ {
+ break lab5;
+ }
+ cursor = limit - v_4;
+ break golab4;
+ } while (false);
+ cursor = limit - v_4;
+ if (cursor <= limit_backward)
+ {
+ break lab3;
+ }
+ cursor--;
+ }
+ break lab2;
+ } while (false);
+ cursor = limit - v_3;
+ lab6: do {
+ // (, line 117
+ // literal, line 117
+ if (!(eq_s_b(1, "e")))
+ {
+ break lab6;
+ }
+ // goto, line 117
+ golab7: while(true)
+ {
+ v_5 = limit - cursor;
+ lab8: do {
+ if (!(in_grouping_b(g_vowel2, 101, 252)))
+ {
+ break lab8;
+ }
+ cursor = limit - v_5;
+ break golab7;
+ } while (false);
+ cursor = limit - v_5;
+ if (cursor <= limit_backward)
+ {
+ break lab6;
+ }
+ cursor--;
+ }
+ break lab2;
+ } while (false);
+ cursor = limit - v_3;
+ lab9: do {
+ // (, line 118
+ // literal, line 118
+ if (!(eq_s_b(1, "\u0131")))
+ {
+ break lab9;
+ }
+ // goto, line 118
+ golab10: while(true)
+ {
+ v_6 = limit - cursor;
+ lab11: do {
+ if (!(in_grouping_b(g_vowel3, 97, 305)))
+ {
+ break lab11;
+ }
+ cursor = limit - v_6;
+ break golab10;
+ } while (false);
+ cursor = limit - v_6;
+ if (cursor <= limit_backward)
+ {
+ break lab9;
+ }
+ cursor--;
+ }
+ break lab2;
+ } while (false);
+ cursor = limit - v_3;
+ lab12: do {
+ // (, line 119
+ // literal, line 119
+ if (!(eq_s_b(1, "i")))
+ {
+ break lab12;
+ }
+ // goto, line 119
+ golab13: while(true)
+ {
+ v_7 = limit - cursor;
+ lab14: do {
+ if (!(in_grouping_b(g_vowel4, 101, 105)))
+ {
+ break lab14;
+ }
+ cursor = limit - v_7;
+ break golab13;
+ } while (false);
+ cursor = limit - v_7;
+ if (cursor <= limit_backward)
+ {
+ break lab12;
+ }
+ cursor--;
+ }
+ break lab2;
+ } while (false);
+ cursor = limit - v_3;
+ lab15: do {
+ // (, line 120
+ // literal, line 120
+ if (!(eq_s_b(1, "o")))
+ {
+ break lab15;
+ }
+ // goto, line 120
+ golab16: while(true)
+ {
+ v_8 = limit - cursor;
+ lab17: do {
+ if (!(in_grouping_b(g_vowel5, 111, 117)))
+ {
+ break lab17;
+ }
+ cursor = limit - v_8;
+ break golab16;
+ } while (false);
+ cursor = limit - v_8;
+ if (cursor <= limit_backward)
+ {
+ break lab15;
+ }
+ cursor--;
+ }
+ break lab2;
+ } while (false);
+ cursor = limit - v_3;
+ lab18: do {
+ // (, line 121
+ // literal, line 121
+ if (!(eq_s_b(1, "\u00F6")))
+ {
+ break lab18;
+ }
+ // goto, line 121
+ golab19: while(true)
+ {
+ v_9 = limit - cursor;
+ lab20: do {
+ if (!(in_grouping_b(g_vowel6, 246, 252)))
+ {
+ break lab20;
+ }
+ cursor = limit - v_9;
+ break golab19;
+ } while (false);
+ cursor = limit - v_9;
+ if (cursor <= limit_backward)
+ {
+ break lab18;
+ }
+ cursor--;
+ }
+ break lab2;
+ } while (false);
+ cursor = limit - v_3;
+ lab21: do {
+ // (, line 122
+ // literal, line 122
+ if (!(eq_s_b(1, "u")))
+ {
+ break lab21;
+ }
+ // goto, line 122
+ golab22: while(true)
+ {
+ v_10 = limit - cursor;
+ lab23: do {
+ if (!(in_grouping_b(g_vowel5, 111, 117)))
+ {
+ break lab23;
+ }
+ cursor = limit - v_10;
+ break golab22;
+ } while (false);
+ cursor = limit - v_10;
+ if (cursor <= limit_backward)
+ {
+ break lab21;
+ }
+ cursor--;
+ }
+ break lab2;
+ } while (false);
+ cursor = limit - v_3;
+ // (, line 123
+ // literal, line 123
+ if (!(eq_s_b(1, "\u00FC")))
+ {
+ return false;
+ }
+ // goto, line 123
+ golab24: while(true)
+ {
+ v_11 = limit - cursor;
+ lab25: do {
+ if (!(in_grouping_b(g_vowel6, 246, 252)))
+ {
+ break lab25;
+ }
+ cursor = limit - v_11;
+ break golab24;
+ } while (false);
+ cursor = limit - v_11;
+ if (cursor <= limit_backward)
+ {
+ return false;
+ }
+ cursor--;
+ }
+ } while (false);
+ cursor = limit - v_1;
+ return true;
+ }
+
+ private boolean r_mark_suffix_with_optional_n_consonant() {
+ int v_1;
+ int v_2;
+ int v_3;
+ int v_4;
+ int v_5;
+ int v_6;
+ int v_7;
+ // (, line 132
+ // or, line 134
+ lab0: do {
+ v_1 = limit - cursor;
+ lab1: do {
+ // (, line 133
+ // (, line 133
+ // test, line 133
+ v_2 = limit - cursor;
+ // literal, line 133
+ if (!(eq_s_b(1, "n")))
+ {
+ break lab1;
+ }
+ cursor = limit - v_2;
+ // next, line 133
+ if (cursor <= limit_backward)
+ {
+ break lab1;
+ }
+ cursor--;
+ // (, line 133
+ // test, line 133
+ v_3 = limit - cursor;
+ if (!(in_grouping_b(g_vowel, 97, 305)))
+ {
+ break lab1;
+ }
+ cursor = limit - v_3;
+ break lab0;
+ } while (false);
+ cursor = limit - v_1;
+ // (, line 135
+ // (, line 135
+ // not, line 135
+ {
+ v_4 = limit - cursor;
+ lab2: do {
+ // (, line 135
+ // test, line 135
+ v_5 = limit - cursor;
+ // literal, line 135
+ if (!(eq_s_b(1, "n")))
+ {
+ break lab2;
+ }
+ cursor = limit - v_5;
+ return false;
+ } while (false);
+ cursor = limit - v_4;
+ }
+ // test, line 135
+ v_6 = limit - cursor;
+ // (, line 135
+ // next, line 135
+ if (cursor <= limit_backward)
+ {
+ return false;
+ }
+ cursor--;
+ // (, line 135
+ // test, line 135
+ v_7 = limit - cursor;
+ if (!(in_grouping_b(g_vowel, 97, 305)))
+ {
+ return false;
+ }
+ cursor = limit - v_7;
+ cursor = limit - v_6;
+ } while (false);
+ return true;
+ }
+
+ private boolean r_mark_suffix_with_optional_s_consonant() {
+ int v_1;
+ int v_2;
+ int v_3;
+ int v_4;
+ int v_5;
+ int v_6;
+ int v_7;
+ // (, line 143
+ // or, line 145
+ lab0: do {
+ v_1 = limit - cursor;
+ lab1: do {
+ // (, line 144
+ // (, line 144
+ // test, line 144
+ v_2 = limit - cursor;
+ // literal, line 144
+ if (!(eq_s_b(1, "s")))
+ {
+ break lab1;
+ }
+ cursor = limit - v_2;
+ // next, line 144
+ if (cursor <= limit_backward)
+ {
+ break lab1;
+ }
+ cursor--;
+ // (, line 144
+ // test, line 144
+ v_3 = limit - cursor;
+ if (!(in_grouping_b(g_vowel, 97, 305)))
+ {
+ break lab1;
+ }
+ cursor = limit - v_3;
+ break lab0;
+ } while (false);
+ cursor = limit - v_1;
+ // (, line 146
+ // (, line 146
+ // not, line 146
+ {
+ v_4 = limit - cursor;
+ lab2: do {
+ // (, line 146
+ // test, line 146
+ v_5 = limit - cursor;
+ // literal, line 146
+ if (!(eq_s_b(1, "s")))
+ {
+ break lab2;
+ }
+ cursor = limit - v_5;
+ return false;
+ } while (false);
+ cursor = limit - v_4;
+ }
+ // test, line 146
+ v_6 = limit - cursor;
+ // (, line 146
+ // next, line 146
+ if (cursor <= limit_backward)
+ {
+ return false;
+ }
+ cursor--;
+ // (, line 146
+ // test, line 146
+ v_7 = limit - cursor;
+ if (!(in_grouping_b(g_vowel, 97, 305)))
+ {
+ return false;
+ }
+ cursor = limit - v_7;
+ cursor = limit - v_6;
+ } while (false);
+ return true;
+ }
+
+ private boolean r_mark_suffix_with_optional_y_consonant() {
+ int v_1;
+ int v_2;
+ int v_3;
+ int v_4;
+ int v_5;
+ int v_6;
+ int v_7;
+ // (, line 153
+ // or, line 155
+ lab0: do {
+ v_1 = limit - cursor;
+ lab1: do {
+ // (, line 154
+ // (, line 154
+ // test, line 154
+ v_2 = limit - cursor;
+ // literal, line 154
+ if (!(eq_s_b(1, "y")))
+ {
+ break lab1;
+ }
+ cursor = limit - v_2;
+ // next, line 154
+ if (cursor <= limit_backward)
+ {
+ break lab1;
+ }
+ cursor--;
+ // (, line 154
+ // test, line 154
+ v_3 = limit - cursor;
+ if (!(in_grouping_b(g_vowel, 97, 305)))
+ {
+ break lab1;
+ }
+ cursor = limit - v_3;
+ break lab0;
+ } while (false);
+ cursor = limit - v_1;
+ // (, line 156
+ // (, line 156
+ // not, line 156
+ {
+ v_4 = limit - cursor;
+ lab2: do {
+ // (, line 156
+ // test, line 156
+ v_5 = limit - cursor;
+ // literal, line 156
+ if (!(eq_s_b(1, "y")))
+ {
+ break lab2;
+ }
+ cursor = limit - v_5;
+ return false;
+ } while (false);
+ cursor = limit - v_4;
+ }
+ // test, line 156
+ v_6 = limit - cursor;
+ // (, line 156
+ // next, line 156
+ if (cursor <= limit_backward)
+ {
+ return false;
+ }
+ cursor--;
+ // (, line 156
+ // test, line 156
+ v_7 = limit - cursor;
+ if (!(in_grouping_b(g_vowel, 97, 305)))
+ {
+ return false;
+ }
+ cursor = limit - v_7;
+ cursor = limit - v_6;
+ } while (false);
+ return true;
+ }
+
+ private boolean r_mark_suffix_with_optional_U_vowel() {
+ int v_1;
+ int v_2;
+ int v_3;
+ int v_4;
+ int v_5;
+ int v_6;
+ int v_7;
+ // (, line 159
+ // or, line 161
+ lab0: do {
+ v_1 = limit - cursor;
+ lab1: do {
+ // (, line 160
+ // (, line 160
+ // test, line 160
+ v_2 = limit - cursor;
+ if (!(in_grouping_b(g_U, 105, 305)))
+ {
+ break lab1;
+ }
+ cursor = limit - v_2;
+ // next, line 160
+ if (cursor <= limit_backward)
+ {
+ break lab1;
+ }
+ cursor--;
+ // (, line 160
+ // test, line 160
+ v_3 = limit - cursor;
+ if (!(out_grouping_b(g_vowel, 97, 305)))
+ {
+ break lab1;
+ }
+ cursor = limit - v_3;
+ break lab0;
+ } while (false);
+ cursor = limit - v_1;
+ // (, line 162
+ // (, line 162
+ // not, line 162
+ {
+ v_4 = limit - cursor;
+ lab2: do {
+ // (, line 162
+ // test, line 162
+ v_5 = limit - cursor;
+ if (!(in_grouping_b(g_U, 105, 305)))
+ {
+ break lab2;
+ }
+ cursor = limit - v_5;
+ return false;
+ } while (false);
+ cursor = limit - v_4;
+ }
+ // test, line 162
+ v_6 = limit - cursor;
+ // (, line 162
+ // next, line 162
+ if (cursor <= limit_backward)
+ {
+ return false;
+ }
+ cursor--;
+ // (, line 162
+ // test, line 162
+ v_7 = limit - cursor;
+ if (!(out_grouping_b(g_vowel, 97, 305)))
+ {
+ return false;
+ }
+ cursor = limit - v_7;
+ cursor = limit - v_6;
+ } while (false);
+ return true;
+ }
+
+ private boolean r_mark_possessives() {
+ // (, line 166
+ // among, line 167
+ if (find_among_b(a_0, 10) == 0)
+ {
+ return false;
+ }
+ // (, line 169
+ // call mark_suffix_with_optional_U_vowel, line 169
+ if (!r_mark_suffix_with_optional_U_vowel())
+ {
+ return false;
+ }
+ return true;
+ }
+
+ private boolean r_mark_sU() {
+ // (, line 172
+ // call check_vowel_harmony, line 173
+ if (!r_check_vowel_harmony())
+ {
+ return false;
+ }
+ if (!(in_grouping_b(g_U, 105, 305)))
+ {
+ return false;
+ }
+ // (, line 175
+ // call mark_suffix_with_optional_s_consonant, line 175
+ if (!r_mark_suffix_with_optional_s_consonant())
+ {
+ return false;
+ }
+ return true;
+ }
+
+ private boolean r_mark_lArI() {
+ // (, line 178
+ // among, line 179
+ if (find_among_b(a_1, 2) == 0)
+ {
+ return false;
+ }
+ return true;
+ }
+
+ private boolean r_mark_yU() {
+ // (, line 182
+ // call check_vowel_harmony, line 183
+ if (!r_check_vowel_harmony())
+ {
+ return false;
+ }
+ if (!(in_grouping_b(g_U, 105, 305)))
+ {
+ return false;
+ }
+ // (, line 185
+ // call mark_suffix_with_optional_y_consonant, line 185
+ if (!r_mark_suffix_with_optional_y_consonant())
+ {
+ return false;
+ }
+ return true;
+ }
+
+ private boolean r_mark_nU() {
+ // (, line 188
+ // call check_vowel_harmony, line 189
+ if (!r_check_vowel_harmony())
+ {
+ return false;
+ }
+ // among, line 190
+ if (find_among_b(a_2, 4) == 0)
+ {
+ return false;
+ }
+ return true;
+ }
+
+ private boolean r_mark_nUn() {
+ // (, line 193
+ // call check_vowel_harmony, line 194
+ if (!r_check_vowel_harmony())
+ {
+ return false;
+ }
+ // among, line 195
+ if (find_among_b(a_3, 4) == 0)
+ {
+ return false;
+ }
+ // (, line 196
+ // call mark_suffix_with_optional_n_consonant, line 196
+ if (!r_mark_suffix_with_optional_n_consonant())
+ {
+ return false;
+ }
+ return true;
+ }
+
+ private boolean r_mark_yA() {
+ // (, line 199
+ // call check_vowel_harmony, line 200
+ if (!r_check_vowel_harmony())
+ {
+ return false;
+ }
+ // among, line 201
+ if (find_among_b(a_4, 2) == 0)
+ {
+ return false;
+ }
+ // (, line 202
+ // call mark_suffix_with_optional_y_consonant, line 202
+ if (!r_mark_suffix_with_optional_y_consonant())
+ {
+ return false;
+ }
+ return true;
+ }
+
+ private boolean r_mark_nA() {
+ // (, line 205
+ // call check_vowel_harmony, line 206
+ if (!r_check_vowel_harmony())
+ {
+ return false;
+ }
+ // among, line 207
+ if (find_among_b(a_5, 2) == 0)
+ {
+ return false;
+ }
+ return true;
+ }
+
+ private boolean r_mark_DA() {
+ // (, line 210
+ // call check_vowel_harmony, line 211
+ if (!r_check_vowel_harmony())
+ {
+ return false;
+ }
+ // among, line 212
+ if (find_among_b(a_6, 4) == 0)
+ {
+ return false;
+ }
+ return true;
+ }
+
+ private boolean r_mark_ndA() {
+ // (, line 215
+ // call check_vowel_harmony, line 216
+ if (!r_check_vowel_harmony())
+ {
+ return false;
+ }
+ // among, line 217
+ if (find_among_b(a_7, 2) == 0)
+ {
+ return false;
+ }
+ return true;
+ }
+
+ private boolean r_mark_DAn() {
+ // (, line 220
+ // call check_vowel_harmony, line 221
+ if (!r_check_vowel_harmony())
+ {
+ return false;
+ }
+ // among, line 222
+ if (find_among_b(a_8, 4) == 0)
+ {
+ return false;
+ }
+ return true;
+ }
+
+ private boolean r_mark_ndAn() {
+ // (, line 225
+ // call check_vowel_harmony, line 226
+ if (!r_check_vowel_harmony())
+ {
+ return false;
+ }
+ // among, line 227
+ if (find_among_b(a_9, 2) == 0)
+ {
+ return false;
+ }
+ return true;
+ }
+
+ private boolean r_mark_ylA() {
+ // (, line 230
+ // call check_vowel_harmony, line 231
+ if (!r_check_vowel_harmony())
+ {
+ return false;
+ }
+ // among, line 232
+ if (find_among_b(a_10, 2) == 0)
+ {
+ return false;
+ }
+ // (, line 233
+ // call mark_suffix_with_optional_y_consonant, line 233
+ if (!r_mark_suffix_with_optional_y_consonant())
+ {
+ return false;
+ }
+ return true;
+ }
+
+ private boolean r_mark_ki() {
+ // (, line 236
+ // literal, line 237
+ if (!(eq_s_b(2, "ki")))
+ {
+ return false;
+ }
+ return true;
+ }
+
+ private boolean r_mark_ncA() {
+ // (, line 240
+ // call check_vowel_harmony, line 241
+ if (!r_check_vowel_harmony())
+ {
+ return false;
+ }
+ // among, line 242
+ if (find_among_b(a_11, 2) == 0)
+ {
+ return false;
+ }
+ // (, line 243
+ // call mark_suffix_with_optional_n_consonant, line 243
+ if (!r_mark_suffix_with_optional_n_consonant())
+ {
+ return false;
+ }
+ return true;
+ }
+
+ private boolean r_mark_yUm() {
+ // (, line 246
+ // call check_vowel_harmony, line 247
+ if (!r_check_vowel_harmony())
+ {
+ return false;
+ }
+ // among, line 248
+ if (find_among_b(a_12, 4) == 0)
+ {
+ return false;
+ }
+ // (, line 249
+ // call mark_suffix_with_optional_y_consonant, line 249
+ if (!r_mark_suffix_with_optional_y_consonant())
+ {
+ return false;
+ }
+ return true;
+ }
+
+ private boolean r_mark_sUn() {
+ // (, line 252
+ // call check_vowel_harmony, line 253
+ if (!r_check_vowel_harmony())
+ {
+ return false;
+ }
+ // among, line 254
+ if (find_among_b(a_13, 4) == 0)
+ {
+ return false;
+ }
+ return true;
+ }
+
+ private boolean r_mark_yUz() {
+ // (, line 257
+ // call check_vowel_harmony, line 258
+ if (!r_check_vowel_harmony())
+ {
+ return false;
+ }
+ // among, line 259
+ if (find_among_b(a_14, 4) == 0)
+ {
+ return false;
+ }
+ // (, line 260
+ // call mark_suffix_with_optional_y_consonant, line 260
+ if (!r_mark_suffix_with_optional_y_consonant())
+ {
+ return false;
+ }
+ return true;
+ }
+
+ private boolean r_mark_sUnUz() {
+ // (, line 263
+ // among, line 264
+ if (find_among_b(a_15, 4) == 0)
+ {
+ return false;
+ }
+ return true;
+ }
+
+ private boolean r_mark_lAr() {
+ // (, line 267
+ // call check_vowel_harmony, line 268
+ if (!r_check_vowel_harmony())
+ {
+ return false;
+ }
+ // among, line 269
+ if (find_among_b(a_16, 2) == 0)
+ {
+ return false;
+ }
+ return true;
+ }
+
+ private boolean r_mark_nUz() {
+ // (, line 272
+ // call check_vowel_harmony, line 273
+ if (!r_check_vowel_harmony())
+ {
+ return false;
+ }
+ // among, line 274
+ if (find_among_b(a_17, 4) == 0)
+ {
+ return false;
+ }
+ return true;
+ }
+
+ private boolean r_mark_DUr() {
+ // (, line 277
+ // call check_vowel_harmony, line 278
+ if (!r_check_vowel_harmony())
+ {
+ return false;
+ }
+ // among, line 279
+ if (find_among_b(a_18, 8) == 0)
+ {
+ return false;
+ }
+ return true;
+ }
+
+ private boolean r_mark_cAsInA() {
+ // (, line 282
+ // among, line 283
+ if (find_among_b(a_19, 2) == 0)
+ {
+ return false;
+ }
+ return true;
+ }
+
+ private boolean r_mark_yDU() {
+ // (, line 286
+ // call check_vowel_harmony, line 287
+ if (!r_check_vowel_harmony())
+ {
+ return false;
+ }
+ // among, line 288
+ if (find_among_b(a_20, 32) == 0)
+ {
+ return false;
+ }
+ // (, line 292
+ // call mark_suffix_with_optional_y_consonant, line 292
+ if (!r_mark_suffix_with_optional_y_consonant())
+ {
+ return false;
+ }
+ return true;
+ }
+
+ private boolean r_mark_ysA() {
+ // (, line 296
+ // among, line 297
+ if (find_among_b(a_21, 8) == 0)
+ {
+ return false;
+ }
+ // (, line 298
+ // call mark_suffix_with_optional_y_consonant, line 298
+ if (!r_mark_suffix_with_optional_y_consonant())
+ {
+ return false;
+ }
+ return true;
+ }
+
+ private boolean r_mark_ymUs_() {
+ // (, line 301
+ // call check_vowel_harmony, line 302
+ if (!r_check_vowel_harmony())
+ {
+ return false;
+ }
+ // among, line 303
+ if (find_among_b(a_22, 4) == 0)
+ {
+ return false;
+ }
+ // (, line 304
+ // call mark_suffix_with_optional_y_consonant, line 304
+ if (!r_mark_suffix_with_optional_y_consonant())
+ {
+ return false;
+ }
+ return true;
+ }
+
+ private boolean r_mark_yken() {
+ // (, line 307
+ // literal, line 308
+ if (!(eq_s_b(3, "ken")))
+ {
+ return false;
+ }
+ // (, line 308
+ // call mark_suffix_with_optional_y_consonant, line 308
+ if (!r_mark_suffix_with_optional_y_consonant())
+ {
+ return false;
+ }
+ return true;
+ }
+
+ private boolean r_stem_nominal_verb_suffixes() {
+ int v_1;
+ int v_2;
+ int v_3;
+ int v_4;
+ int v_5;
+ int v_6;
+ int v_7;
+ int v_8;
+ int v_9;
+ int v_10;
+ // (, line 311
+ // [, line 312
+ ket = cursor;
+ // set continue_stemming_noun_suffixes, line 313
+ B_continue_stemming_noun_suffixes = true;
+ // or, line 315
+ lab0: do {
+ v_1 = limit - cursor;
+ lab1: do {
+ // (, line 314
+ // or, line 314
+ lab2: do {
+ v_2 = limit - cursor;
+ lab3: do {
+ // call mark_ymUs_, line 314
+ if (!r_mark_ymUs_())
+ {
+ break lab3;
+ }
+ break lab2;
+ } while (false);
+ cursor = limit - v_2;
+ lab4: do {
+ // call mark_yDU, line 314
+ if (!r_mark_yDU())
+ {
+ break lab4;
+ }
+ break lab2;
+ } while (false);
+ cursor = limit - v_2;
+ lab5: do {
+ // call mark_ysA, line 314
+ if (!r_mark_ysA())
+ {
+ break lab5;
+ }
+ break lab2;
+ } while (false);
+ cursor = limit - v_2;
+ // call mark_yken, line 314
+ if (!r_mark_yken())
+ {
+ break lab1;
+ }
+ } while (false);
+ break lab0;
+ } while (false);
+ cursor = limit - v_1;
+ lab6: do {
+ // (, line 316
+ // call mark_cAsInA, line 316
+ if (!r_mark_cAsInA())
+ {
+ break lab6;
+ }
+ // (, line 316
+ // or, line 316
+ lab7: do {
+ v_3 = limit - cursor;
+ lab8: do {
+ // call mark_sUnUz, line 316
+ if (!r_mark_sUnUz())
+ {
+ break lab8;
+ }
+ break lab7;
+ } while (false);
+ cursor = limit - v_3;
+ lab9: do {
+ // call mark_lAr, line 316
+ if (!r_mark_lAr())
+ {
+ break lab9;
+ }
+ break lab7;
+ } while (false);
+ cursor = limit - v_3;
+ lab10: do {
+ // call mark_yUm, line 316
+ if (!r_mark_yUm())
+ {
+ break lab10;
+ }
+ break lab7;
+ } while (false);
+ cursor = limit - v_3;
+ lab11: do {
+ // call mark_sUn, line 316
+ if (!r_mark_sUn())
+ {
+ break lab11;
+ }
+ break lab7;
+ } while (false);
+ cursor = limit - v_3;
+ lab12: do {
+ // call mark_yUz, line 316
+ if (!r_mark_yUz())
+ {
+ break lab12;
+ }
+ break lab7;
+ } while (false);
+ cursor = limit - v_3;
+ } while (false);
+ // call mark_ymUs_, line 316
+ if (!r_mark_ymUs_())
+ {
+ break lab6;
+ }
+ break lab0;
+ } while (false);
+ cursor = limit - v_1;
+ lab13: do {
+ // (, line 318
+ // call mark_lAr, line 319
+ if (!r_mark_lAr())
+ {
+ break lab13;
+ }
+ // ], line 319
+ bra = cursor;
+ // delete, line 319
+ slice_del();
+ // try, line 319
+ v_4 = limit - cursor;
+ lab14: do {
+ // (, line 319
+ // [, line 319
+ ket = cursor;
+ // (, line 319
+ // or, line 319
+ lab15: do {
+ v_5 = limit - cursor;
+ lab16: do {
+ // call mark_DUr, line 319
+ if (!r_mark_DUr())
+ {
+ break lab16;
+ }
+ break lab15;
+ } while (false);
+ cursor = limit - v_5;
+ lab17: do {
+ // call mark_yDU, line 319
+ if (!r_mark_yDU())
+ {
+ break lab17;
+ }
+ break lab15;
+ } while (false);
+ cursor = limit - v_5;
+ lab18: do {
+ // call mark_ysA, line 319
+ if (!r_mark_ysA())
+ {
+ break lab18;
+ }
+ break lab15;
+ } while (false);
+ cursor = limit - v_5;
+ // call mark_ymUs_, line 319
+ if (!r_mark_ymUs_())
+ {
+ cursor = limit - v_4;
+ break lab14;
+ }
+ } while (false);
+ } while (false);
+ // unset continue_stemming_noun_suffixes, line 320
+ B_continue_stemming_noun_suffixes = false;
+ break lab0;
+ } while (false);
+ cursor = limit - v_1;
+ lab19: do {
+ // (, line 323
+ // call mark_nUz, line 323
+ if (!r_mark_nUz())
+ {
+ break lab19;
+ }
+ // (, line 323
+ // or, line 323
+ lab20: do {
+ v_6 = limit - cursor;
+ lab21: do {
+ // call mark_yDU, line 323
+ if (!r_mark_yDU())
+ {
+ break lab21;
+ }
+ break lab20;
+ } while (false);
+ cursor = limit - v_6;
+ // call mark_ysA, line 323
+ if (!r_mark_ysA())
+ {
+ break lab19;
+ }
+ } while (false);
+ break lab0;
+ } while (false);
+ cursor = limit - v_1;
+ lab22: do {
+ // (, line 325
+ // (, line 325
+ // or, line 325
+ lab23: do {
+ v_7 = limit - cursor;
+ lab24: do {
+ // call mark_sUnUz, line 325
+ if (!r_mark_sUnUz())
+ {
+ break lab24;
+ }
+ break lab23;
+ } while (false);
+ cursor = limit - v_7;
+ lab25: do {
+ // call mark_yUz, line 325
+ if (!r_mark_yUz())
+ {
+ break lab25;
+ }
+ break lab23;
+ } while (false);
+ cursor = limit - v_7;
+ lab26: do {
+ // call mark_sUn, line 325
+ if (!r_mark_sUn())
+ {
+ break lab26;
+ }
+ break lab23;
+ } while (false);
+ cursor = limit - v_7;
+ // call mark_yUm, line 325
+ if (!r_mark_yUm())
+ {
+ break lab22;
+ }
+ } while (false);
+ // ], line 325
+ bra = cursor;
+ // delete, line 325
+ slice_del();
+ // try, line 325
+ v_8 = limit - cursor;
+ lab27: do {
+ // (, line 325
+ // [, line 325
+ ket = cursor;
+ // call mark_ymUs_, line 325
+ if (!r_mark_ymUs_())
+ {
+ cursor = limit - v_8;
+ break lab27;
+ }
+ } while (false);
+ break lab0;
+ } while (false);
+ cursor = limit - v_1;
+ // (, line 327
+ // call mark_DUr, line 327
+ if (!r_mark_DUr())
+ {
+ return false;
+ }
+ // ], line 327
+ bra = cursor;
+ // delete, line 327
+ slice_del();
+ // try, line 327
+ v_9 = limit - cursor;
+ lab28: do {
+ // (, line 327
+ // [, line 327
+ ket = cursor;
+ // (, line 327
+ // or, line 327
+ lab29: do {
+ v_10 = limit - cursor;
+ lab30: do {
+ // call mark_sUnUz, line 327
+ if (!r_mark_sUnUz())
+ {
+ break lab30;
+ }
+ break lab29;
+ } while (false);
+ cursor = limit - v_10;
+ lab31: do {
+ // call mark_lAr, line 327
+ if (!r_mark_lAr())
+ {
+ break lab31;
+ }
+ break lab29;
+ } while (false);
+ cursor = limit - v_10;
+ lab32: do {
+ // call mark_yUm, line 327
+ if (!r_mark_yUm())
+ {
+ break lab32;
+ }
+ break lab29;
+ } while (false);
+ cursor = limit - v_10;
+ lab33: do {
+ // call mark_sUn, line 327
+ if (!r_mark_sUn())
+ {
+ break lab33;
+ }
+ break lab29;
+ } while (false);
+ cursor = limit - v_10;
+ lab34: do {
+ // call mark_yUz, line 327
+ if (!r_mark_yUz())
+ {
+ break lab34;
+ }
+ break lab29;
+ } while (false);
+ cursor = limit - v_10;
+ } while (false);
+ // call mark_ymUs_, line 327
+ if (!r_mark_ymUs_())
+ {
+ cursor = limit - v_9;
+ break lab28;
+ }
+ } while (false);
+ } while (false);
+ // ], line 328
+ bra = cursor;
+ // delete, line 328
+ slice_del();
+ return true;
+ }
+
+ private boolean r_stem_suffix_chain_before_ki() {
+ int v_1;
+ int v_2;
+ int v_3;
+ int v_4;
+ int v_5;
+ int v_6;
+ int v_7;
+ int v_8;
+ int v_9;
+ int v_10;
+ int v_11;
+ // (, line 332
+ // [, line 333
+ ket = cursor;
+ // call mark_ki, line 334
+ if (!r_mark_ki())
+ {
+ return false;
+ }
+ // (, line 335
+ // or, line 342
+ lab0: do {
+ v_1 = limit - cursor;
+ lab1: do {
+ // (, line 336
+ // call mark_DA, line 336
+ if (!r_mark_DA())
+ {
+ break lab1;
+ }
+ // ], line 336
+ bra = cursor;
+ // delete, line 336
+ slice_del();
+ // try, line 336
+ v_2 = limit - cursor;
+ lab2: do {
+ // (, line 336
+ // [, line 336
+ ket = cursor;
+ // or, line 338
+ lab3: do {
+ v_3 = limit - cursor;
+ lab4: do {
+ // (, line 337
+ // call mark_lAr, line 337
+ if (!r_mark_lAr())
+ {
+ break lab4;
+ }
+ // ], line 337
+ bra = cursor;
+ // delete, line 337
+ slice_del();
+ // try, line 337
+ v_4 = limit - cursor;
+ lab5: do {
+ // (, line 337
+ // call stem_suffix_chain_before_ki, line 337
+ if (!r_stem_suffix_chain_before_ki())
+ {
+ cursor = limit - v_4;
+ break lab5;
+ }
+ } while (false);
+ break lab3;
+ } while (false);
+ cursor = limit - v_3;
+ // (, line 339
+ // call mark_possessives, line 339
+ if (!r_mark_possessives())
+ {
+ cursor = limit - v_2;
+ break lab2;
+ }
+ // ], line 339
+ bra = cursor;
+ // delete, line 339
+ slice_del();
+ // try, line 339
+ v_5 = limit - cursor;
+ lab6: do {
+ // (, line 339
+ // [, line 339
+ ket = cursor;
+ // call mark_lAr, line 339
+ if (!r_mark_lAr())
+ {
+ cursor = limit - v_5;
+ break lab6;
+ }
+ // ], line 339
+ bra = cursor;
+ // delete, line 339
+ slice_del();
+ // call stem_suffix_chain_before_ki, line 339
+ if (!r_stem_suffix_chain_before_ki())
+ {
+ cursor = limit - v_5;
+ break lab6;
+ }
+ } while (false);
+ } while (false);
+ } while (false);
+ break lab0;
+ } while (false);
+ cursor = limit - v_1;
+ lab7: do {
+ // (, line 343
+ // call mark_nUn, line 343
+ if (!r_mark_nUn())
+ {
+ break lab7;
+ }
+ // ], line 343
+ bra = cursor;
+ // delete, line 343
+ slice_del();
+ // try, line 343
+ v_6 = limit - cursor;
+ lab8: do {
+ // (, line 343
+ // [, line 343
+ ket = cursor;
+ // or, line 345
+ lab9: do {
+ v_7 = limit - cursor;
+ lab10: do {
+ // (, line 344
+ // call mark_lArI, line 344
+ if (!r_mark_lArI())
+ {
+ break lab10;
+ }
+ // ], line 344
+ bra = cursor;
+ // delete, line 344
+ slice_del();
+ break lab9;
+ } while (false);
+ cursor = limit - v_7;
+ lab11: do {
+ // (, line 346
+ // [, line 346
+ ket = cursor;
+ // or, line 346
+ lab12: do {
+ v_8 = limit - cursor;
+ lab13: do {
+ // call mark_possessives, line 346
+ if (!r_mark_possessives())
+ {
+ break lab13;
+ }
+ break lab12;
+ } while (false);
+ cursor = limit - v_8;
+ // call mark_sU, line 346
+ if (!r_mark_sU())
+ {
+ break lab11;
+ }
+ } while (false);
+ // ], line 346
+ bra = cursor;
+ // delete, line 346
+ slice_del();
+ // try, line 346
+ v_9 = limit - cursor;
+ lab14: do {
+ // (, line 346
+ // [, line 346
+ ket = cursor;
+ // call mark_lAr, line 346
+ if (!r_mark_lAr())
+ {
+ cursor = limit - v_9;
+ break lab14;
+ }
+ // ], line 346
+ bra = cursor;
+ // delete, line 346
+ slice_del();
+ // call stem_suffix_chain_before_ki, line 346
+ if (!r_stem_suffix_chain_before_ki())
+ {
+ cursor = limit - v_9;
+ break lab14;
+ }
+ } while (false);
+ break lab9;
+ } while (false);
+ cursor = limit - v_7;
+ // (, line 348
+ // call stem_suffix_chain_before_ki, line 348
+ if (!r_stem_suffix_chain_before_ki())
+ {
+ cursor = limit - v_6;
+ break lab8;
+ }
+ } while (false);
+ } while (false);
+ break lab0;
+ } while (false);
+ cursor = limit - v_1;
+ // (, line 351
+ // call mark_ndA, line 351
+ if (!r_mark_ndA())
+ {
+ return false;
+ }
+ // (, line 351
+ // or, line 353
+ lab15: do {
+ v_10 = limit - cursor;
+ lab16: do {
+ // (, line 352
+ // call mark_lArI, line 352
+ if (!r_mark_lArI())
+ {
+ break lab16;
+ }
+ // ], line 352
+ bra = cursor;
+ // delete, line 352
+ slice_del();
+ break lab15;
+ } while (false);
+ cursor = limit - v_10;
+ lab17: do {
+ // (, line 354
+ // (, line 354
+ // call mark_sU, line 354
+ if (!r_mark_sU())
+ {
+ break lab17;
+ }
+ // ], line 354
+ bra = cursor;
+ // delete, line 354
+ slice_del();
+ // try, line 354
+ v_11 = limit - cursor;
+ lab18: do {
+ // (, line 354
+ // [, line 354
+ ket = cursor;
+ // call mark_lAr, line 354
+ if (!r_mark_lAr())
+ {
+ cursor = limit - v_11;
+ break lab18;
+ }
+ // ], line 354
+ bra = cursor;
+ // delete, line 354
+ slice_del();
+ // call stem_suffix_chain_before_ki, line 354
+ if (!r_stem_suffix_chain_before_ki())
+ {
+ cursor = limit - v_11;
+ break lab18;
+ }
+ } while (false);
+ break lab15;
+ } while (false);
+ cursor = limit - v_10;
+ // (, line 356
+ // call stem_suffix_chain_before_ki, line 356
+ if (!r_stem_suffix_chain_before_ki())
+ {
+ return false;
+ }
+ } while (false);
+ } while (false);
+ return true;
+ }
+
+ private boolean r_stem_noun_suffixes() {
+ int v_1;
+ int v_2;
+ int v_3;
+ int v_4;
+ int v_5;
+ int v_6;
+ int v_7;
+ int v_8;
+ int v_9;
+ int v_10;
+ int v_11;
+ int v_12;
+ int v_13;
+ int v_14;
+ int v_15;
+ int v_16;
+ int v_17;
+ int v_18;
+ int v_19;
+ int v_20;
+ int v_21;
+ int v_22;
+ int v_23;
+ int v_24;
+ int v_25;
+ int v_26;
+ int v_27;
+ // (, line 361
+ // or, line 363
+ lab0: do {
+ v_1 = limit - cursor;
+ lab1: do {
+ // (, line 362
+ // [, line 362
+ ket = cursor;
+ // call mark_lAr, line 362
+ if (!r_mark_lAr())
+ {
+ break lab1;
+ }
+ // ], line 362
+ bra = cursor;
+ // delete, line 362
+ slice_del();
+ // try, line 362
+ v_2 = limit - cursor;
+ lab2: do {
+ // (, line 362
+ // call stem_suffix_chain_before_ki, line 362
+ if (!r_stem_suffix_chain_before_ki())
+ {
+ cursor = limit - v_2;
+ break lab2;
+ }
+ } while (false);
+ break lab0;
+ } while (false);
+ cursor = limit - v_1;
+ lab3: do {
+ // (, line 364
+ // [, line 364
+ ket = cursor;
+ // call mark_ncA, line 364
+ if (!r_mark_ncA())
+ {
+ break lab3;
+ }
+ // ], line 364
+ bra = cursor;
+ // delete, line 364
+ slice_del();
+ // try, line 365
+ v_3 = limit - cursor;
+ lab4: do {
+ // (, line 365
+ // or, line 367
+ lab5: do {
+ v_4 = limit - cursor;
+ lab6: do {
+ // (, line 366
+ // [, line 366
+ ket = cursor;
+ // call mark_lArI, line 366
+ if (!r_mark_lArI())
+ {
+ break lab6;
+ }
+ // ], line 366
+ bra = cursor;
+ // delete, line 366
+ slice_del();
+ break lab5;
+ } while (false);
+ cursor = limit - v_4;
+ lab7: do {
+ // (, line 368
+ // [, line 368
+ ket = cursor;
+ // or, line 368
+ lab8: do {
+ v_5 = limit - cursor;
+ lab9: do {
+ // call mark_possessives, line 368
+ if (!r_mark_possessives())
+ {
+ break lab9;
+ }
+ break lab8;
+ } while (false);
+ cursor = limit - v_5;
+ // call mark_sU, line 368
+ if (!r_mark_sU())
+ {
+ break lab7;
+ }
+ } while (false);
+ // ], line 368
+ bra = cursor;
+ // delete, line 368
+ slice_del();
+ // try, line 368
+ v_6 = limit - cursor;
+ lab10: do {
+ // (, line 368
+ // [, line 368
+ ket = cursor;
+ // call mark_lAr, line 368
+ if (!r_mark_lAr())
+ {
+ cursor = limit - v_6;
+ break lab10;
+ }
+ // ], line 368
+ bra = cursor;
+ // delete, line 368
+ slice_del();
+ // call stem_suffix_chain_before_ki, line 368
+ if (!r_stem_suffix_chain_before_ki())
+ {
+ cursor = limit - v_6;
+ break lab10;
+ }
+ } while (false);
+ break lab5;
+ } while (false);
+ cursor = limit - v_4;
+ // (, line 370
+ // [, line 370
+ ket = cursor;
+ // call mark_lAr, line 370
+ if (!r_mark_lAr())
+ {
+ cursor = limit - v_3;
+ break lab4;
+ }
+ // ], line 370
+ bra = cursor;
+ // delete, line 370
+ slice_del();
+ // call stem_suffix_chain_before_ki, line 370
+ if (!r_stem_suffix_chain_before_ki())
+ {
+ cursor = limit - v_3;
+ break lab4;
+ }
+ } while (false);
+ } while (false);
+ break lab0;
+ } while (false);
+ cursor = limit - v_1;
+ lab11: do {
+ // (, line 374
+ // [, line 374
+ ket = cursor;
+ // (, line 374
+ // or, line 374
+ lab12: do {
+ v_7 = limit - cursor;
+ lab13: do {
+ // call mark_ndA, line 374
+ if (!r_mark_ndA())
+ {
+ break lab13;
+ }
+ break lab12;
+ } while (false);
+ cursor = limit - v_7;
+ // call mark_nA, line 374
+ if (!r_mark_nA())
+ {
+ break lab11;
+ }
+ } while (false);
+ // (, line 375
+ // or, line 377
+ lab14: do {
+ v_8 = limit - cursor;
+ lab15: do {
+ // (, line 376
+ // call mark_lArI, line 376
+ if (!r_mark_lArI())
+ {
+ break lab15;
+ }
+ // ], line 376
+ bra = cursor;
+ // delete, line 376
+ slice_del();
+ break lab14;
+ } while (false);
+ cursor = limit - v_8;
+ lab16: do {
+ // (, line 378
+ // call mark_sU, line 378
+ if (!r_mark_sU())
+ {
+ break lab16;
+ }
+ // ], line 378
+ bra = cursor;
+ // delete, line 378
+ slice_del();
+ // try, line 378
+ v_9 = limit - cursor;
+ lab17: do {
+ // (, line 378
+ // [, line 378
+ ket = cursor;
+ // call mark_lAr, line 378
+ if (!r_mark_lAr())
+ {
+ cursor = limit - v_9;
+ break lab17;
+ }
+ // ], line 378
+ bra = cursor;
+ // delete, line 378
+ slice_del();
+ // call stem_suffix_chain_before_ki, line 378
+ if (!r_stem_suffix_chain_before_ki())
+ {
+ cursor = limit - v_9;
+ break lab17;
+ }
+ } while (false);
+ break lab14;
+ } while (false);
+ cursor = limit - v_8;
+ // (, line 380
+ // call stem_suffix_chain_before_ki, line 380
+ if (!r_stem_suffix_chain_before_ki())
+ {
+ break lab11;
+ }
+ } while (false);
+ break lab0;
+ } while (false);
+ cursor = limit - v_1;
+ lab18: do {
+ // (, line 384
+ // [, line 384
+ ket = cursor;
+ // (, line 384
+ // or, line 384
+ lab19: do {
+ v_10 = limit - cursor;
+ lab20: do {
+ // call mark_ndAn, line 384
+ if (!r_mark_ndAn())
+ {
+ break lab20;
+ }
+ break lab19;
+ } while (false);
+ cursor = limit - v_10;
+ // call mark_nU, line 384
+ if (!r_mark_nU())
+ {
+ break lab18;
+ }
+ } while (false);
+ // (, line 384
+ // or, line 384
+ lab21: do {
+ v_11 = limit - cursor;
+ lab22: do {
+ // (, line 384
+ // call mark_sU, line 384
+ if (!r_mark_sU())
+ {
+ break lab22;
+ }
+ // ], line 384
+ bra = cursor;
+ // delete, line 384
+ slice_del();
+ // try, line 384
+ v_12 = limit - cursor;
+ lab23: do {
+ // (, line 384
+ // [, line 384
+ ket = cursor;
+ // call mark_lAr, line 384
+ if (!r_mark_lAr())
+ {
+ cursor = limit - v_12;
+ break lab23;
+ }
+ // ], line 384
+ bra = cursor;
+ // delete, line 384
+ slice_del();
+ // call stem_suffix_chain_before_ki, line 384
+ if (!r_stem_suffix_chain_before_ki())
+ {
+ cursor = limit - v_12;
+ break lab23;
+ }
+ } while (false);
+ break lab21;
+ } while (false);
+ cursor = limit - v_11;
+ // (, line 384
+ // call mark_lArI, line 384
+ if (!r_mark_lArI())
+ {
+ break lab18;
+ }
+ } while (false);
+ break lab0;
+ } while (false);
+ cursor = limit - v_1;
+ lab24: do {
+ // (, line 386
+ // [, line 386
+ ket = cursor;
+ // call mark_DAn, line 386
+ if (!r_mark_DAn())
+ {
+ break lab24;
+ }
+ // ], line 386
+ bra = cursor;
+ // delete, line 386
+ slice_del();
+ // try, line 386
+ v_13 = limit - cursor;
+ lab25: do {
+ // (, line 386
+ // [, line 386
+ ket = cursor;
+ // (, line 387
+ // or, line 389
+ lab26: do {
+ v_14 = limit - cursor;
+ lab27: do {
+ // (, line 388
+ // call mark_possessives, line 388
+ if (!r_mark_possessives())
+ {
+ break lab27;
+ }
+ // ], line 388
+ bra = cursor;
+ // delete, line 388
+ slice_del();
+ // try, line 388
+ v_15 = limit - cursor;
+ lab28: do {
+ // (, line 388
+ // [, line 388
+ ket = cursor;
+ // call mark_lAr, line 388
+ if (!r_mark_lAr())
+ {
+ cursor = limit - v_15;
+ break lab28;
+ }
+ // ], line 388
+ bra = cursor;
+ // delete, line 388
+ slice_del();
+ // call stem_suffix_chain_before_ki, line 388
+ if (!r_stem_suffix_chain_before_ki())
+ {
+ cursor = limit - v_15;
+ break lab28;
+ }
+ } while (false);
+ break lab26;
+ } while (false);
+ cursor = limit - v_14;
+ lab29: do {
+ // (, line 390
+ // call mark_lAr, line 390
+ if (!r_mark_lAr())
+ {
+ break lab29;
+ }
+ // ], line 390
+ bra = cursor;
+ // delete, line 390
+ slice_del();
+ // try, line 390
+ v_16 = limit - cursor;
+ lab30: do {
+ // (, line 390
+ // call stem_suffix_chain_before_ki, line 390
+ if (!r_stem_suffix_chain_before_ki())
+ {
+ cursor = limit - v_16;
+ break lab30;
+ }
+ } while (false);
+ break lab26;
+ } while (false);
+ cursor = limit - v_14;
+ // (, line 392
+ // call stem_suffix_chain_before_ki, line 392
+ if (!r_stem_suffix_chain_before_ki())
+ {
+ cursor = limit - v_13;
+ break lab25;
+ }
+ } while (false);
+ } while (false);
+ break lab0;
+ } while (false);
+ cursor = limit - v_1;
+ lab31: do {
+ // (, line 396
+ // [, line 396
+ ket = cursor;
+ // or, line 396
+ lab32: do {
+ v_17 = limit - cursor;
+ lab33: do {
+ // call mark_nUn, line 396
+ if (!r_mark_nUn())
+ {
+ break lab33;
+ }
+ break lab32;
+ } while (false);
+ cursor = limit - v_17;
+ // call mark_ylA, line 396
+ if (!r_mark_ylA())
+ {
+ break lab31;
+ }
+ } while (false);
+ // ], line 396
+ bra = cursor;
+ // delete, line 396
+ slice_del();
+ // try, line 397
+ v_18 = limit - cursor;
+ lab34: do {
+ // (, line 397
+ // or, line 399
+ lab35: do {
+ v_19 = limit - cursor;
+ lab36: do {
+ // (, line 398
+ // [, line 398
+ ket = cursor;
+ // call mark_lAr, line 398
+ if (!r_mark_lAr())
+ {
+ break lab36;
+ }
+ // ], line 398
+ bra = cursor;
+ // delete, line 398
+ slice_del();
+ // call stem_suffix_chain_before_ki, line 398
+ if (!r_stem_suffix_chain_before_ki())
+ {
+ break lab36;
+ }
+ break lab35;
+ } while (false);
+ cursor = limit - v_19;
+ lab37: do {
+ // (, line 400
+ // [, line 400
+ ket = cursor;
+ // or, line 400
+ lab38: do {
+ v_20 = limit - cursor;
+ lab39: do {
+ // call mark_possessives, line 400
+ if (!r_mark_possessives())
+ {
+ break lab39;
+ }
+ break lab38;
+ } while (false);
+ cursor = limit - v_20;
+ // call mark_sU, line 400
+ if (!r_mark_sU())
+ {
+ break lab37;
+ }
+ } while (false);
+ // ], line 400
+ bra = cursor;
+ // delete, line 400
+ slice_del();
+ // try, line 400
+ v_21 = limit - cursor;
+ lab40: do {
+ // (, line 400
+ // [, line 400
+ ket = cursor;
+ // call mark_lAr, line 400
+ if (!r_mark_lAr())
+ {
+ cursor = limit - v_21;
+ break lab40;
+ }
+ // ], line 400
+ bra = cursor;
+ // delete, line 400
+ slice_del();
+ // call stem_suffix_chain_before_ki, line 400
+ if (!r_stem_suffix_chain_before_ki())
+ {
+ cursor = limit - v_21;
+ break lab40;
+ }
+ } while (false);
+ break lab35;
+ } while (false);
+ cursor = limit - v_19;
+ // call stem_suffix_chain_before_ki, line 402
+ if (!r_stem_suffix_chain_before_ki())
+ {
+ cursor = limit - v_18;
+ break lab34;
+ }
+ } while (false);
+ } while (false);
+ break lab0;
+ } while (false);
+ cursor = limit - v_1;
+ lab41: do {
+ // (, line 406
+ // [, line 406
+ ket = cursor;
+ // call mark_lArI, line 406
+ if (!r_mark_lArI())
+ {
+ break lab41;
+ }
+ // ], line 406
+ bra = cursor;
+ // delete, line 406
+ slice_del();
+ break lab0;
+ } while (false);
+ cursor = limit - v_1;
+ lab42: do {
+ // (, line 408
+ // call stem_suffix_chain_before_ki, line 408
+ if (!r_stem_suffix_chain_before_ki())
+ {
+ break lab42;
+ }
+ break lab0;
+ } while (false);
+ cursor = limit - v_1;
+ lab43: do {
+ // (, line 410
+ // [, line 410
+ ket = cursor;
+ // or, line 410
+ lab44: do {
+ v_22 = limit - cursor;
+ lab45: do {
+ // call mark_DA, line 410
+ if (!r_mark_DA())
+ {
+ break lab45;
+ }
+ break lab44;
+ } while (false);
+ cursor = limit - v_22;
+ lab46: do {
+ // call mark_yU, line 410
+ if (!r_mark_yU())
+ {
+ break lab46;
+ }
+ break lab44;
+ } while (false);
+ cursor = limit - v_22;
+ // call mark_yA, line 410
+ if (!r_mark_yA())
+ {
+ break lab43;
+ }
+ } while (false);
+ // ], line 410
+ bra = cursor;
+ // delete, line 410
+ slice_del();
+ // try, line 410
+ v_23 = limit - cursor;
+ lab47: do {
+ // (, line 410
+ // [, line 410
+ ket = cursor;
+ // (, line 410
+ // or, line 410
+ lab48: do {
+ v_24 = limit - cursor;
+ lab49: do {
+ // (, line 410
+ // call mark_possessives, line 410
+ if (!r_mark_possessives())
+ {
+ break lab49;
+ }
+ // ], line 410
+ bra = cursor;
+ // delete, line 410
+ slice_del();
+ // try, line 410
+ v_25 = limit - cursor;
+ lab50: do {
+ // (, line 410
+ // [, line 410
+ ket = cursor;
+ // call mark_lAr, line 410
+ if (!r_mark_lAr())
+ {
+ cursor = limit - v_25;
+ break lab50;
+ }
+ } while (false);
+ break lab48;
+ } while (false);
+ cursor = limit - v_24;
+ // call mark_lAr, line 410
+ if (!r_mark_lAr())
+ {
+ cursor = limit - v_23;
+ break lab47;
+ }
+ } while (false);
+ // ], line 410
+ bra = cursor;
+ // delete, line 410
+ slice_del();
+ // [, line 410
+ ket = cursor;
+ // call stem_suffix_chain_before_ki, line 410
+ if (!r_stem_suffix_chain_before_ki())
+ {
+ cursor = limit - v_23;
+ break lab47;
+ }
+ } while (false);
+ break lab0;
+ } while (false);
+ cursor = limit - v_1;
+ // (, line 412
+ // [, line 412
+ ket = cursor;
+ // or, line 412
+ lab51: do {
+ v_26 = limit - cursor;
+ lab52: do {
+ // call mark_possessives, line 412
+ if (!r_mark_possessives())
+ {
+ break lab52;
+ }
+ break lab51;
+ } while (false);
+ cursor = limit - v_26;
+ // call mark_sU, line 412
+ if (!r_mark_sU())
+ {
+ return false;
+ }
+ } while (false);
+ // ], line 412
+ bra = cursor;
+ // delete, line 412
+ slice_del();
+ // try, line 412
+ v_27 = limit - cursor;
+ lab53: do {
+ // (, line 412
+ // [, line 412
+ ket = cursor;
+ // call mark_lAr, line 412
+ if (!r_mark_lAr())
+ {
+ cursor = limit - v_27;
+ break lab53;
+ }
+ // ], line 412
+ bra = cursor;
+ // delete, line 412
+ slice_del();
+ // call stem_suffix_chain_before_ki, line 412
+ if (!r_stem_suffix_chain_before_ki())
+ {
+ cursor = limit - v_27;
+ break lab53;
+ }
+ } while (false);
+ } while (false);
+ return true;
+ }
+
+ private boolean r_post_process_last_consonants() {
+ int among_var;
+ // (, line 415
+ // [, line 416
+ ket = cursor;
+ // substring, line 416
+ among_var = find_among_b(a_23, 4);
+ if (among_var == 0)
+ {
+ return false;
+ }
+ // ], line 416
+ bra = cursor;
+ switch(among_var) {
+ case 0:
+ return false;
+ case 1:
+ // (, line 417
+ // <-, line 417
+ slice_from("p");
+ break;
+ case 2:
+ // (, line 418
+ // <-, line 418
+ slice_from("\u00E7");
+ break;
+ case 3:
+ // (, line 419
+ // <-, line 419
+ slice_from("t");
+ break;
+ case 4:
+ // (, line 420
+ // <-, line 420
+ slice_from("k");
+ break;
+ }
+ return true;
+ }
+
+ private boolean r_append_U_to_stems_ending_with_d_or_g() {
+ int v_1;
+ int v_2;
+ int v_3;
+ int v_4;
+ int v_5;
+ int v_6;
+ int v_7;
+ int v_8;
+ int v_9;
+ int v_10;
+ int v_11;
+ int v_12;
+ int v_13;
+ int v_14;
+ int v_15;
+ // (, line 430
+ // test, line 431
+ v_1 = limit - cursor;
+ // (, line 431
+ // or, line 431
+ lab0: do {
+ v_2 = limit - cursor;
+ lab1: do {
+ // literal, line 431
+ if (!(eq_s_b(1, "d")))
+ {
+ break lab1;
+ }
+ break lab0;
+ } while (false);
+ cursor = limit - v_2;
+ // literal, line 431
+ if (!(eq_s_b(1, "g")))
+ {
+ return false;
+ }
+ } while (false);
+ cursor = limit - v_1;
+ // or, line 433
+ lab2: do {
+ v_3 = limit - cursor;
+ lab3: do {
+ // (, line 432
+ // test, line 432
+ v_4 = limit - cursor;
+ // (, line 432
+ // (, line 432
+ // goto, line 432
+ golab4: while(true)
+ {
+ v_5 = limit - cursor;
+ lab5: do {
+ if (!(in_grouping_b(g_vowel, 97, 305)))
+ {
+ break lab5;
+ }
+ cursor = limit - v_5;
+ break golab4;
+ } while (false);
+ cursor = limit - v_5;
+ if (cursor <= limit_backward)
+ {
+ break lab3;
+ }
+ cursor--;
+ }
+ // or, line 432
+ lab6: do {
+ v_6 = limit - cursor;
+ lab7: do {
+ // literal, line 432
+ if (!(eq_s_b(1, "a")))
+ {
+ break lab7;
+ }
+ break lab6;
+ } while (false);
+ cursor = limit - v_6;
+ // literal, line 432
+ if (!(eq_s_b(1, "\u0131")))
+ {
+ break lab3;
+ }
+ } while (false);
+ cursor = limit - v_4;
+ // <+, line 432
+ {
+ int c = cursor;
+ insert(cursor, cursor, "\u0131");
+ cursor = c;
+ }
+ break lab2;
+ } while (false);
+ cursor = limit - v_3;
+ lab8: do {
+ // (, line 434
+ // test, line 434
+ v_7 = limit - cursor;
+ // (, line 434
+ // (, line 434
+ // goto, line 434
+ golab9: while(true)
+ {
+ v_8 = limit - cursor;
+ lab10: do {
+ if (!(in_grouping_b(g_vowel, 97, 305)))
+ {
+ break lab10;
+ }
+ cursor = limit - v_8;
+ break golab9;
+ } while (false);
+ cursor = limit - v_8;
+ if (cursor <= limit_backward)
+ {
+ break lab8;
+ }
+ cursor--;
+ }
+ // or, line 434
+ lab11: do {
+ v_9 = limit - cursor;
+ lab12: do {
+ // literal, line 434
+ if (!(eq_s_b(1, "e")))
+ {
+ break lab12;
+ }
+ break lab11;
+ } while (false);
+ cursor = limit - v_9;
+ // literal, line 434
+ if (!(eq_s_b(1, "i")))
+ {
+ break lab8;
+ }
+ } while (false);
+ cursor = limit - v_7;
+ // <+, line 434
+ {
+ int c = cursor;
+ insert(cursor, cursor, "i");
+ cursor = c;
+ }
+ break lab2;
+ } while (false);
+ cursor = limit - v_3;
+ lab13: do {
+ // (, line 436
+ // test, line 436
+ v_10 = limit - cursor;
+ // (, line 436
+ // (, line 436
+ // goto, line 436
+ golab14: while(true)
+ {
+ v_11 = limit - cursor;
+ lab15: do {
+ if (!(in_grouping_b(g_vowel, 97, 305)))
+ {
+ break lab15;
+ }
+ cursor = limit - v_11;
+ break golab14;
+ } while (false);
+ cursor = limit - v_11;
+ if (cursor <= limit_backward)
+ {
+ break lab13;
+ }
+ cursor--;
+ }
+ // or, line 436
+ lab16: do {
+ v_12 = limit - cursor;
+ lab17: do {
+ // literal, line 436
+ if (!(eq_s_b(1, "o")))
+ {
+ break lab17;
+ }
+ break lab16;
+ } while (false);
+ cursor = limit - v_12;
+ // literal, line 436
+ if (!(eq_s_b(1, "u")))
+ {
+ break lab13;
+ }
+ } while (false);
+ cursor = limit - v_10;
+ // <+, line 436
+ {
+ int c = cursor;
+ insert(cursor, cursor, "u");
+ cursor = c;
+ }
+ break lab2;
+ } while (false);
+ cursor = limit - v_3;
+ // (, line 438
+ // test, line 438
+ v_13 = limit - cursor;
+ // (, line 438
+ // (, line 438
+ // goto, line 438
+ golab18: while(true)
+ {
+ v_14 = limit - cursor;
+ lab19: do {
+ if (!(in_grouping_b(g_vowel, 97, 305)))
+ {
+ break lab19;
+ }
+ cursor = limit - v_14;
+ break golab18;
+ } while (false);
+ cursor = limit - v_14;
+ if (cursor <= limit_backward)
+ {
+ return false;
+ }
+ cursor--;
+ }
+ // or, line 438
+ lab20: do {
+ v_15 = limit - cursor;
+ lab21: do {
+ // literal, line 438
+ if (!(eq_s_b(1, "\u00F6")))
+ {
+ break lab21;
+ }
+ break lab20;
+ } while (false);
+ cursor = limit - v_15;
+ // literal, line 438
+ if (!(eq_s_b(1, "\u00FC")))
+ {
+ return false;
+ }
+ } while (false);
+ cursor = limit - v_13;
+ // <+, line 438
+ {
+ int c = cursor;
+ insert(cursor, cursor, "\u00FC");
+ cursor = c;
+ }
+ } while (false);
+ return true;
+ }
+
+ private boolean r_more_than_one_syllable_word() {
+ int v_1;
+ int v_3;
+ // (, line 445
+ // test, line 446
+ v_1 = cursor;
+ // (, line 446
+ // atleast, line 446
+ {
+ int v_2 = 2;
+ // atleast, line 446
+ replab0: while(true)
+ {
+ v_3 = cursor;
+ lab1: do {
+ // (, line 446
+ // gopast, line 446
+ golab2: while(true)
+ {
+ lab3: do {
+ if (!(in_grouping(g_vowel, 97, 305)))
+ {
+ break lab3;
+ }
+ break golab2;
+ } while (false);
+ if (cursor >= limit)
+ {
+ break lab1;
+ }
+ cursor++;
+ }
+ v_2--;
+ continue replab0;
+ } while (false);
+ cursor = v_3;
+ break replab0;
+ }
+ if (v_2 > 0)
+ {
+ return false;
+ }
+ }
+ cursor = v_1;
+ return true;
+ }
+
+ private boolean r_is_reserved_word() {
+ int v_1;
+ int v_2;
+ int v_4;
+ // (, line 449
+ // or, line 451
+ lab0: do {
+ v_1 = cursor;
+ lab1: do {
+ // test, line 450
+ v_2 = cursor;
+ // (, line 450
+ // gopast, line 450
+ golab2: while(true)
+ {
+ lab3: do {
+ // literal, line 450
+ if (!(eq_s(2, "ad")))
+ {
+ break lab3;
+ }
+ break golab2;
+ } while (false);
+ if (cursor >= limit)
+ {
+ break lab1;
+ }
+ cursor++;
+ }
+ // (, line 450
+ I_strlen = 2;
+ // (, line 450
+ if (!(I_strlen == limit))
+ {
+ break lab1;
+ }
+ cursor = v_2;
+ break lab0;
+ } while (false);
+ cursor = v_1;
+ // test, line 452
+ v_4 = cursor;
+ // (, line 452
+ // gopast, line 452
+ golab4: while(true)
+ {
+ lab5: do {
+ // literal, line 452
+ if (!(eq_s(5, "soyad")))
+ {
+ break lab5;
+ }
+ break golab4;
+ } while (false);
+ if (cursor >= limit)
+ {
+ return false;
+ }
+ cursor++;
+ }
+ // (, line 452
+ I_strlen = 5;
+ // (, line 452
+ if (!(I_strlen == limit))
+ {
+ return false;
+ }
+ cursor = v_4;
+ } while (false);
+ return true;
+ }
+
+ private boolean r_postlude() {
+ int v_1;
+ int v_2;
+ int v_3;
+ // (, line 455
+ // not, line 456
+ {
+ v_1 = cursor;
+ lab0: do {
+ // (, line 456
+ // call is_reserved_word, line 456
+ if (!r_is_reserved_word())
+ {
+ break lab0;
+ }
+ return false;
+ } while (false);
+ cursor = v_1;
+ }
+ // backwards, line 457
+ limit_backward = cursor; cursor = limit;
+ // (, line 457
+ // do, line 458
+ v_2 = limit - cursor;
+ lab1: do {
+ // call append_U_to_stems_ending_with_d_or_g, line 458
+ if (!r_append_U_to_stems_ending_with_d_or_g())
+ {
+ break lab1;
+ }
+ } while (false);
+ cursor = limit - v_2;
+ // do, line 459
+ v_3 = limit - cursor;
+ lab2: do {
+ // call post_process_last_consonants, line 459
+ if (!r_post_process_last_consonants())
+ {
+ break lab2;
+ }
+ } while (false);
+ cursor = limit - v_3;
+ cursor = limit_backward; return true;
+ }
+
+ public boolean stem() {
+ int v_1;
+ int v_2;
+ // (, line 464
+ // (, line 465
+ // call more_than_one_syllable_word, line 465
+ if (!r_more_than_one_syllable_word())
+ {
+ return false;
+ }
+ // (, line 466
+ // backwards, line 467
+ limit_backward = cursor; cursor = limit;
+ // (, line 467
+ // do, line 468
+ v_1 = limit - cursor;
+ lab0: do {
+ // call stem_nominal_verb_suffixes, line 468
+ if (!r_stem_nominal_verb_suffixes())
+ {
+ break lab0;
+ }
+ } while (false);
+ cursor = limit - v_1;
+ // Boolean test continue_stemming_noun_suffixes, line 469
+ if (!(B_continue_stemming_noun_suffixes))
+ {
+ return false;
+ }
+ // do, line 470
+ v_2 = limit - cursor;
+ lab1: do {
+ // call stem_noun_suffixes, line 470
+ if (!r_stem_noun_suffixes())
+ {
+ break lab1;
+ }
+ } while (false);
+ cursor = limit - v_2;
+ cursor = limit_backward; // call postlude, line 473
+ if (!r_postlude())
+ {
+ return false;
+ }
+ return true;
+ }
+
+}
+
diff --git a/contrib/snowball/src/java/overview.html b/contrib/snowball/src/java/overview.html
index 6b77cca0419..7f393b0dbc1 100644
--- a/contrib/snowball/src/java/overview.html
+++ b/contrib/snowball/src/java/overview.html
@@ -1,5 +1,29 @@
<html>
<body>
-Snowball stemmers for Lucene
+<p>
+Lucene Snowball README file
+</p>
+
+<p>
+This project provides pre-compiled version of the Snowball stemmers
+based on revision 500 of the Tartarus Snowball repository,
+together with classes integrating them with the Lucene search engine.
+</p>
+<p>
+See the Snowball <a href ="http://snowball.tartarus.org/">home page</a> for more information about the algorithms.
+</p>
+
+<p>
+<b>IMPORTANT NOTICE ON BACKWARDS COMPATIBILITY!</b>
+</p>
+<p>
+An index created using the Snowball module in Lucene 2.3.2 and below
+might not be compatible with the Snowball module in Lucene 2.4 or greater.
+</p>
+<p>
+For more information about this issue see:
+https://issues.apache.org/jira/browse/LUCENE-1142
+</p>
+
</body>
</html>
diff --git a/contrib/snowball/xdocs/index.xml b/contrib/snowball/xdocs/index.xml
index e72ffe49331..42bede1a92a 100644
--- a/contrib/snowball/xdocs/index.xml
+++ b/contrib/snowball/xdocs/index.xml
@@ -1,7 +1,6 @@
<?xml version="1.0"?>
<document>
<properties>
-<author email="[email protected]">Doug Cutting</author>
<title>Overview - Snowball Stemmers for Lucene</title>
</properties>
<body>
@@ -13,14 +12,6 @@ together with classes integrating them with the Lucene search engine.
</p>
</section>
-<section name="Download">
-<p>
-Releases of the stemmers are available
-<a href="http://jakarta.apache.org/builds/jakarta-lucene-sandbox/snowball/">
-here</a>
-</p>
-</section>
-
</body>
</document>