Apache Lucene open-source search software
Added recently released stemmers, updated license & build.
Doug Cutting22c2c5b90952
diff --git a/sandbox/contributions/snowball/Attic/lib/lucene-1.2.jar b/sandbox/contributions/snowball/Attic/lib/lucene-1.2.jardeleted file mode 100644index ab9c261bc40..00000000000--- a/sandbox/contributions/snowball/Attic/lib/lucene-1.2.jar+++ /dev/null@@ -1,2 +0,0 @@-AnyObjectId[ff9b90061b65c32122fcdde27bfe7f1e61fbd7bd] was removed in git history.-Apache SVN contains full history.\ No newline at end of filediff --git a/sandbox/contributions/snowball/LICENSE.txt b/sandbox/contributions/snowball/LICENSE.txtindex 388a2f05ac9..aac7fca4910 100644--- a/sandbox/contributions/snowball/LICENSE.txt+++ b/sandbox/contributions/snowball/LICENSE.txt@@ -1,53 +1,15 @@-/* ====================================================================- * The Apache Software License, Version 1.1+/**+ * Copyright 2004 The Apache Software Foundation*- * Copyright (c) 2001 The Apache Software Foundation. All rights- * reserved.+ * Licensed 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*- * Redistribution and use in source and binary forms, with or without- * modification, are permitted provided that the following conditions- * are met:+ * http://www.apache.org/licenses/LICENSE-2.0*- * 1. Redistributions of source code must retain the above copyright- * notice, this list of conditions and the following disclaimer.- *- * 2. Redistributions in binary form must reproduce the above copyright- * notice, this list of conditions and the following disclaimer in- * the documentation and/or other materials provided with the- * distribution.- *- * 3. The end-user documentation included with the redistribution,- * if any, must include the following acknowledgment:- * "This product includes software developed by the- * Apache Software Foundation (http://www.apache.org/)."- * Alternately, this acknowledgment may appear in the software itself,- * if and wherever such third-party acknowledgments normally appear.- *- * 4. The names "Apache" and "Apache Software Foundation" and- * "Apache Lucene" must not be used to endorse or promote products- * derived from this software without prior written permission. For- * written permission, please contact [email protected].- *- * 5. Products derived from this software may not be called "Apache",- * "Apache Lucene", nor may "Apache" appear in their name, without- * prior written permission of the Apache Software Foundation.- *- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE- * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR- * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF- * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT- * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF- * SUCH DAMAGE.- * ====================================================================- *- * This software consists of voluntary contributions made by many- * individuals on behalf of the Apache Software Foundation. For more- * information on the Apache Software Foundation, please see- * <http://www.apache.org/>.+ * 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.*/diff --git a/sandbox/contributions/snowball/build.xml b/sandbox/contributions/snowball/build.xmlindex db2b9afb16c..e53098c5aa8 100644--- a/sandbox/contributions/snowball/build.xml+++ b/sandbox/contributions/snowball/build.xml@@ -6,21 +6,10 @@Snowball Analyzers</description>- <import file="../common.xml"/>-- <!-- Load all the default properties, and any the user wants -->- <!-- to contribute (without having to type -D or edit this file -->- <!-- TODO: eventually clean this part up -->- <property file="${user.home}/build.properties"/>- <property file="${basedir}/build.properties"/>- <property file="${basedir}/default.properties"/>-- <path id="anakia.classpath">- <fileset dir="${jakarta.site2.home}/lib">- <include name="*.jar"/>- </fileset>- </path>+ <property name="version" value="1.1-dev"/>+ <property name="Name" value="Snowball Analyzers"/>+ <import file="../common.xml"/><property name="snowball.cvsroot" value=":pserver:[email protected]:/home/cvs"/><property name="snowball.cvs.password" value="anonymous"/>@@ -75,28 +64,6 @@</target>- <!-- ================================================================== -->- <!-- Documentation -->- <!-- ================================================================== -->- <target name="javadoc" depends="compile">- <mkdir dir="${build.javadoc}"/>- <javadoc- sourcepath="${src.dir}"- overview="${src.dir}/overview.html"- packagenames="*"- destdir="${build.javadoc}"- author="true"- version="true"- use="true"- windowtitle="${Name} ${version} API"- doctitle="${Name} ${version} API"- >- <link href="${javadoc.link.java}"/>- <link href="${javadoc.link.lucene}"/>- <classpath refid="compile.classpath"/>- </javadoc>- </target>-<target name="docs"><taskdefname="anakia"@@ -119,89 +86,5 @@</target>- <!-- ================================================================== -->- <!-- D I S T R I B U T I O N -->- <!-- ================================================================== -->- <!-- -->- <!-- ================================================================== -->- <target name="package" depends="dist, javadoc">- <mkdir dir="${dist.dir}"/>- <mkdir dir="${dist.dir}/lib"/>- <mkdir dir="${dist.dir}/docs"/>- <mkdir dir="${dist.dir}/docs/api"/>-- <copy todir="${dist.dir}/docs/api">- <fileset dir="${build.javadoc}"/>- </copy>-- <copy todir="${dist.dir}/docs">- <fileset dir="${docs.dest}/"/>- </copy>-- <copy todir="${dist.dir}/lib">- <fileset dir="lib"/>- </copy>-- <copy todir="${dist.dir}">- <fileset dir=".">- <include name="*.txt"/>- </fileset>- </copy>-- <copy todir="${dist.dir}/src">- <fileset dir="src"/>- </copy>- <copy todir="${dist.dir}/" file="build.xml"/>- <copy todir="${dist.dir}/" file="default.properties"/>--- <copy file="${build.dir}/${final.name}.jar" todir="${dist.dir}"/>-- </target>--- <!-- ================================================================== -->- <!-- Make release tarball -->- <!-- ================================================================== -->- <target name="tar" depends="package">- <tar- tarfile="${build.dir}/${final.name}.tar"- basedir="${build.dir}/"- includes="${final.name}/**"- />- <gzip- zipfile="${build.dir}/${final.name}.tar.gz"- src="${build.dir}/${final.name}.tar"- />- </target>--- <!-- ================================================================== -->- <!-- Copy release to server -->- <!-- ================================================================== -->- <target name="release" depends="tar">- <exec executable="ssh">- <arg value="${release.host}"/>- <arg value="mkdir"/>- <arg value="${release.path}/${final.name}"/>- </exec>- <exec executable="scp">- <arg value="${build.dir}/${final.name}.jar"/>- <arg value="${build.dir}/${final.name}.tar.gz"/>- <arg value="${release.host}:${release.path}/${final.name}"/>- </exec>- <exec executable="ssh">- <arg value="${web.host}"/>- <arg value="rm"/>- <arg value="-rf"/>- <arg value="${web.path}/api"/>- </exec>- <exec executable="scp">- <arg value="-r"/>- <arg value="${build.javadoc}"/>- <arg value="${web.host}:${web.path}/api"/>- </exec>- </target>-</project>diff --git a/sandbox/contributions/snowball/default.properties b/sandbox/contributions/snowball/default.propertiesdeleted file mode 100644index 258d1059491..00000000000--- a/sandbox/contributions/snowball/default.properties+++ /dev/null@@ -1,43 +0,0 @@-Name=Snowball-name=snowball-version=0.2-dev-final.name=${name}-${version}-year=2002--basedir = ./-src.dir = ./src/java-lib.dir = ./lib-bin.dir = ./bin--build.dir = ./build-build.classes = ${build.dir}/classes-build.javadoc = ${build.dir}/docs/api-build.encoding = ISO-8859-1--dist.dir=${build.dir}/${final.name}--release.host=www.apache.org-release.path=/www/jakarta.apache.org/builds/jakarta-lucene-sandbox/snowball--web.host=www.apache.org-web.path=/www/jakarta.apache.org/lucene/docs/lucene-sandbox/snowball--test.src.dir = ./src/test-test.build.dir = ${build.dir}/test-test.build.classes = ${test.build.dir}/classes--javadoc.link.java=http://java.sun.com/j2se/1.4.1/docs/api/-javadoc.link.lucene=http://jakarta.apache.org/lucene/docs/api/--snowball.cvsroot=:pserver:[email protected]:/home/cvs-snowball.root=snowball/website--debug=on-optimize=on-deprecation=on--# Home directory of jakarta-site2-jakarta.site2.home = ../../../jakarta-site2-project.name = site-docs.src = ./xdocs-docs.dest = ./docsdiff --git a/sandbox/contributions/snowball/docs/index.html b/sandbox/contributions/snowball/docs/index.htmlindex e7b165618f9..ba660000e97 100644--- a/sandbox/contributions/snowball/docs/index.html+++ b/sandbox/contributions/snowball/docs/index.html@@ -119,7 +119,7 @@ here</a></td></tr><tr><td colspan="2"><div align="center"><font color="#525D76" size="-1"><em>- Copyright © 1999-2003, Apache Software Foundation+ Copyright © 1999-2004, The Apache Software Foundation</em></font></div></td></tr></table>diff --git a/sandbox/contributions/snowball/src/java/net/sf/snowball/ext/German2Stemmer.java b/sandbox/contributions/snowball/src/java/net/sf/snowball/ext/German2Stemmer.javanew file mode 100644index 00000000000..684d1e7b2d0--- /dev/null+++ b/sandbox/contributions/snowball/src/java/net/sf/snowball/ext/German2Stemmer.java@@ -0,0 +1,708 @@+// 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;++/**+ * Generated class implementing code defined by a snowball script.+ */+public class German2Stemmer extends SnowballProgram {++ private Among a_0[] = {+ new Among ( "", -1, 6, "", this),+ new Among ( "ae", 0, 2, "", this),+ new Among ( "oe", 0, 3, "", this),+ new Among ( "qu", 0, 5, "", this),+ new Among ( "ue", 0, 4, "", this),+ new Among ( "\u00DF", 0, 1, "", this)+ };++ private Among a_1[] = {+ new Among ( "", -1, 6, "", this),+ new Among ( "U", 0, 2, "", this),+ new Among ( "Y", 0, 1, "", this),+ new Among ( "\u00E4", 0, 3, "", this),+ new Among ( "\u00F6", 0, 4, "", this),+ new Among ( "\u00FC", 0, 5, "", this)+ };++ private Among a_2[] = {+ new Among ( "e", -1, 1, "", this),+ new Among ( "em", -1, 1, "", this),+ new Among ( "en", -1, 1, "", this),+ new Among ( "ern", -1, 1, "", this),+ new Among ( "er", -1, 1, "", this),+ new Among ( "s", -1, 2, "", this),+ new Among ( "es", 5, 1, "", this)+ };++ private Among a_3[] = {+ new Among ( "en", -1, 1, "", this),+ new Among ( "er", -1, 1, "", this),+ new Among ( "st", -1, 2, "", this),+ new Among ( "est", 2, 1, "", this)+ };++ private Among a_4[] = {+ new Among ( "ig", -1, 1, "", this),+ new Among ( "lich", -1, 1, "", this)+ };++ private Among a_5[] = {+ new Among ( "end", -1, 1, "", this),+ new Among ( "ig", -1, 2, "", this),+ new Among ( "ung", -1, 1, "", this),+ new Among ( "lich", -1, 3, "", this),+ new Among ( "isch", -1, 2, "", this),+ new Among ( "ik", -1, 2, "", this),+ new Among ( "heit", -1, 3, "", this),+ new Among ( "keit", -1, 4, "", this)+ };++ 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, 8 };++ private static final char g_s_ending[] = {117, 30, 5 };++ private static final char g_st_ending[] = {117, 30, 4 };++ private int I_p2;+ private int I_p1;++ private void copy_from(German2Stemmer other) {+ I_p2 = other.I_p2;+ I_p1 = other.I_p1;+ super.copy_from(other);+ }++ private boolean r_prelude() {+ int among_var;+ int v_1;+ int v_2;+ int v_3;+ int v_4;+ int v_5;+ // (, line 28+ // test, line 30+ v_1 = cursor;+ // repeat, line 30+ replab0: while(true)+ {+ v_2 = cursor;+ lab1: do {+ // goto, line 30+ golab2: while(true)+ {+ v_3 = cursor;+ lab3: do {+ // (, line 30+ if (!(in_grouping(g_v, 97, 252)))+ {+ break lab3;+ }+ // [, line 31+ bra = cursor;+ // or, line 31+ lab4: do {+ v_4 = cursor;+ lab5: do {+ // (, line 31+ // literal, line 31+ if (!(eq_s(1, "u")))+ {+ break lab5;+ }+ // ], line 31+ ket = cursor;+ if (!(in_grouping(g_v, 97, 252)))+ {+ break lab5;+ }+ // <-, line 31+ slice_from("U");+ break lab4;+ } while (false);+ cursor = v_4;+ // (, line 32+ // literal, line 32+ if (!(eq_s(1, "y")))+ {+ break lab3;+ }+ // ], line 32+ ket = cursor;+ if (!(in_grouping(g_v, 97, 252)))+ {+ break lab3;+ }+ // <-, line 32+ slice_from("Y");+ } while (false);+ cursor = v_3;+ break golab2;+ } while (false);+ cursor = v_3;+ if (cursor >= limit)+ {+ break lab1;+ }+ cursor++;+ }+ continue replab0;+ } while (false);+ cursor = v_2;+ break replab0;+ }+ cursor = v_1;+ // repeat, line 35+ replab6: while(true)+ {+ v_5 = cursor;+ lab7: do {+ // (, line 35+ // [, line 36+ bra = cursor;+ // substring, line 36+ among_var = find_among(a_0, 6);+ if (among_var == 0)+ {+ break lab7;+ }+ // ], line 36+ ket = cursor;+ switch(among_var) {+ case 0:+ break lab7;+ case 1:+ // (, line 37+ // <-, line 37+ slice_from("ss");+ break;+ case 2:+ // (, line 38+ // <-, line 38+ slice_from("\u00E4");+ break;+ case 3:+ // (, line 39+ // <-, line 39+ slice_from("\u00F6");+ break;+ case 4:+ // (, line 40+ // <-, line 40+ slice_from("\u00FC");+ break;+ case 5:+ // (, line 41+ // hop, line 41+ {+ int c = cursor + 2;+ if (0 > c || c > limit)+ {+ break lab7;+ }+ cursor = c;+ }+ break;+ case 6:+ // (, line 42+ // next, line 42+ if (cursor >= limit)+ {+ break lab7;+ }+ cursor++;+ break;+ }+ continue replab6;+ } while (false);+ cursor = v_5;+ break replab6;+ }+ return true;+ }++ private boolean r_mark_regions() {+ // (, line 48+ I_p1 = limit;+ I_p2 = limit;+ // gopast, line 53+ golab0: while(true)+ {+ lab1: do {+ if (!(in_grouping(g_v, 97, 252)))+ {+ break lab1;+ }+ break golab0;+ } while (false);+ if (cursor >= limit)+ {+ return false;+ }+ cursor++;+ }+ // gopast, line 53+ golab2: while(true)+ {+ lab3: do {+ if (!(out_grouping(g_v, 97, 252)))+ {+ break lab3;+ }+ break golab2;+ } while (false);+ if (cursor >= limit)+ {+ return false;+ }+ cursor++;+ }+ // setmark p1, line 53+ I_p1 = cursor;+ // try, line 54+ lab4: do {+ // (, line 54+ if (!(I_p1 < 3))+ {+ break lab4;+ }+ I_p1 = 3;+ } while (false);+ // gopast, line 55+ golab5: while(true)+ {+ lab6: do {+ if (!(in_grouping(g_v, 97, 252)))+ {+ break lab6;+ }+ break golab5;+ } while (false);+ if (cursor >= limit)+ {+ return false;+ }+ cursor++;+ }+ // gopast, line 55+ golab7: while(true)+ {+ lab8: do {+ if (!(out_grouping(g_v, 97, 252)))+ {+ break lab8;+ }+ break golab7;+ } while (false);+ if (cursor >= limit)+ {+ return false;+ }+ cursor++;+ }+ // setmark p2, line 55+ I_p2 = cursor;+ return true;+ }++ private boolean r_postlude() {+ int among_var;+ int v_1;+ // repeat, line 59+ replab0: while(true)+ {+ v_1 = cursor;+ lab1: do {+ // (, line 59+ // [, line 61+ bra = cursor;+ // substring, line 61+ among_var = find_among(a_1, 6);+ if (among_var == 0)+ {+ break lab1;+ }+ // ], line 61+ ket = cursor;+ switch(among_var) {+ case 0:+ break lab1;+ case 1:+ // (, line 62+ // <-, line 62+ slice_from("y");+ break;+ case 2:+ // (, line 63+ // <-, line 63+ slice_from("u");+ break;+ case 3:+ // (, line 64+ // <-, line 64+ slice_from("a");+ break;+ case 4:+ // (, line 65+ // <-, line 65+ slice_from("o");+ break;+ case 5:+ // (, line 66+ // <-, line 66+ slice_from("u");+ break;+ case 6:+ // (, line 67+ // next, line 67+ if (cursor >= limit)+ {+ break lab1;+ }+ cursor++;+ break;+ }+ continue replab0;+ } while (false);+ cursor = v_1;+ break replab0;+ }+ 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_standard_suffix() {+ int among_var;+ 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;+ // (, line 77+ // do, line 78+ v_1 = limit - cursor;+ lab0: do {+ // (, line 78+ // [, line 79+ ket = cursor;+ // substring, line 79+ among_var = find_among_b(a_2, 7);+ if (among_var == 0)+ {+ break lab0;+ }+ // ], line 79+ bra = cursor;+ // call R1, line 79+ if (!r_R1())+ {+ break lab0;+ }+ switch(among_var) {+ case 0:+ break lab0;+ case 1:+ // (, line 81+ // delete, line 81+ slice_del();+ break;+ case 2:+ // (, line 84+ if (!(in_grouping_b(g_s_ending, 98, 116)))+ {+ break lab0;+ }+ // delete, line 84+ slice_del();+ break;+ }+ } while (false);+ cursor = limit - v_1;+ // do, line 88+ v_2 = limit - cursor;+ lab1: do {+ // (, line 88+ // [, line 89+ ket = cursor;+ // substring, line 89+ among_var = find_among_b(a_3, 4);+ if (among_var == 0)+ {+ break lab1;+ }+ // ], line 89+ bra = cursor;+ // call R1, line 89+ if (!r_R1())+ {+ break lab1;+ }+ switch(among_var) {+ case 0:+ break lab1;+ case 1:+ // (, line 91+ // delete, line 91+ slice_del();+ break;+ case 2:+ // (, line 94+ if (!(in_grouping_b(g_st_ending, 98, 116)))+ {+ break lab1;+ }+ // hop, line 94+ {+ int c = cursor - 3;+ if (limit_backward > c || c > limit)+ {+ break lab1;+ }+ cursor = c;+ }+ // delete, line 94+ slice_del();+ break;+ }+ } while (false);+ cursor = limit - v_2;+ // do, line 98+ v_3 = limit - cursor;+ lab2: do {+ // (, line 98+ // [, line 99+ ket = cursor;+ // substring, line 99+ among_var = find_among_b(a_5, 8);+ if (among_var == 0)+ {+ break lab2;+ }+ // ], line 99+ bra = cursor;+ // call R2, line 99+ if (!r_R2())+ {+ break lab2;+ }+ switch(among_var) {+ case 0:+ break lab2;+ case 1:+ // (, line 101+ // delete, line 101+ slice_del();+ // try, line 102+ v_4 = limit - cursor;+ lab3: do {+ // (, line 102+ // [, line 102+ ket = cursor;+ // literal, line 102+ if (!(eq_s_b(2, "ig")))+ {+ cursor = limit - v_4;+ break lab3;+ }+ // ], line 102+ bra = cursor;+ // not, line 102+ {+ v_5 = limit - cursor;+ lab4: do {+ // literal, line 102+ if (!(eq_s_b(1, "e")))+ {+ break lab4;+ }+ cursor = limit - v_4;+ break lab3;+ } while (false);+ cursor = limit - v_5;+ }+ // call R2, line 102+ if (!r_R2())+ {+ cursor = limit - v_4;+ break lab3;+ }+ // delete, line 102+ slice_del();+ } while (false);+ break;+ case 2:+ // (, line 105+ // not, line 105+ {+ v_6 = limit - cursor;+ lab5: do {+ // literal, line 105+ if (!(eq_s_b(1, "e")))+ {+ break lab5;+ }+ break lab2;+ } while (false);+ cursor = limit - v_6;+ }+ // delete, line 105+ slice_del();+ break;+ case 3:+ // (, line 108+ // delete, line 108+ slice_del();+ // try, line 109+ v_7 = limit - cursor;+ lab6: do {+ // (, line 109+ // [, line 110+ ket = cursor;+ // or, line 110+ lab7: do {+ v_8 = limit - cursor;+ lab8: do {+ // literal, line 110+ if (!(eq_s_b(2, "er")))+ {+ break lab8;+ }+ break lab7;+ } while (false);+ cursor = limit - v_8;+ // literal, line 110+ if (!(eq_s_b(2, "en")))+ {+ cursor = limit - v_7;+ break lab6;+ }+ } while (false);+ // ], line 110+ bra = cursor;+ // call R1, line 110+ if (!r_R1())+ {+ cursor = limit - v_7;+ break lab6;+ }+ // delete, line 110+ slice_del();+ } while (false);+ break;+ case 4:+ // (, line 114+ // delete, line 114+ slice_del();+ // try, line 115+ v_9 = limit - cursor;+ lab9: do {+ // (, line 115+ // [, line 116+ ket = cursor;+ // substring, line 116+ among_var = find_among_b(a_4, 2);+ if (among_var == 0)+ {+ cursor = limit - v_9;+ break lab9;+ }+ // ], line 116+ bra = cursor;+ // call R2, line 116+ if (!r_R2())+ {+ cursor = limit - v_9;+ break lab9;+ }+ switch(among_var) {+ case 0:+ cursor = limit - v_9;+ break lab9;+ case 1:+ // (, line 118+ // delete, line 118+ slice_del();+ break;+ }+ } while (false);+ break;+ }+ } while (false);+ cursor = limit - v_3;+ return true;+ }++ public boolean stem() {+ int v_1;+ int v_2;+ int v_3;+ int v_4;+ // (, line 128+ // do, line 129+ v_1 = cursor;+ lab0: do {+ // call prelude, line 129+ if (!r_prelude())+ {+ break lab0;+ }+ } while (false);+ cursor = v_1;+ // do, line 130+ v_2 = cursor;+ lab1: do {+ // call mark_regions, line 130+ if (!r_mark_regions())+ {+ break lab1;+ }+ } while (false);+ cursor = v_2;+ // backwards, line 131+ limit_backward = cursor; cursor = limit;+ // do, line 132+ v_3 = limit - cursor;+ lab2: do {+ // call standard_suffix, line 132+ if (!r_standard_suffix())+ {+ break lab2;+ }+ } while (false);+ cursor = limit - v_3;+ cursor = limit_backward; // do, line 133+ v_4 = cursor;+ lab3: do {+ // call postlude, line 133+ if (!r_postlude())+ {+ break lab3;+ }+ } while (false);+ cursor = v_4;+ return true;+ }++}+diff --git a/sandbox/contributions/snowball/src/java/net/sf/snowball/ext/KpStemmer.java b/sandbox/contributions/snowball/src/java/net/sf/snowball/ext/KpStemmer.javanew file mode 100644index 00000000000..9a6d8414128--- /dev/null+++ b/sandbox/contributions/snowball/src/java/net/sf/snowball/ext/KpStemmer.java@@ -0,0 +1,2181 @@+// 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;++/**+ * Generated class implementing code defined by a snowball script.+ */+public class KpStemmer extends SnowballProgram {++ private Among a_0[] = {+ new Among ( "nde", -1, 7, "", this),+ new Among ( "en", -1, 6, "", this),+ new Among ( "s", -1, 2, "", this),+ new Among ( "'s", 2, 1, "", this),+ new Among ( "es", 2, 4, "", this),+ new Among ( "ies", 4, 3, "", this),+ new Among ( "aus", 2, 5, "", this)+ };++ private Among a_1[] = {+ new Among ( "de", -1, 5, "", this),+ new Among ( "ge", -1, 2, "", this),+ new Among ( "ische", -1, 4, "", this),+ new Among ( "je", -1, 1, "", this),+ new Among ( "lijke", -1, 3, "", this),+ new Among ( "le", -1, 9, "", this),+ new Among ( "ene", -1, 10, "", this),+ new Among ( "re", -1, 8, "", this),+ new Among ( "se", -1, 7, "", this),+ new Among ( "te", -1, 6, "", this),+ new Among ( "ieve", -1, 11, "", this)+ };++ private Among a_2[] = {+ new Among ( "heid", -1, 3, "", this),+ new Among ( "fie", -1, 7, "", this),+ new Among ( "gie", -1, 8, "", this),+ new Among ( "atie", -1, 1, "", this),+ new Among ( "isme", -1, 5, "", this),+ new Among ( "ing", -1, 5, "", this),+ new Among ( "arij", -1, 6, "", this),+ new Among ( "erij", -1, 5, "", this),+ new Among ( "sel", -1, 3, "", this),+ new Among ( "rder", -1, 4, "", this),+ new Among ( "ster", -1, 3, "", this),+ new Among ( "iteit", -1, 2, "", this),+ new Among ( "dst", -1, 10, "", this),+ new Among ( "tst", -1, 9, "", this)+ };++ private Among a_3[] = {+ new Among ( "end", -1, 10, "", this),+ new Among ( "atief", -1, 2, "", this),+ new Among ( "erig", -1, 10, "", this),+ new Among ( "achtig", -1, 9, "", this),+ new Among ( "ioneel", -1, 1, "", this),+ new Among ( "baar", -1, 3, "", this),+ new Among ( "laar", -1, 5, "", this),+ new Among ( "naar", -1, 4, "", this),+ new Among ( "raar", -1, 6, "", this),+ new Among ( "eriger", -1, 10, "", this),+ new Among ( "achtiger", -1, 9, "", this),+ new Among ( "lijker", -1, 8, "", this),+ new Among ( "tant", -1, 7, "", this),+ new Among ( "erigst", -1, 10, "", this),+ new Among ( "achtigst", -1, 9, "", this),+ new Among ( "lijkst", -1, 8, "", this)+ };++ private Among a_4[] = {+ new Among ( "ig", -1, 1, "", this),+ new Among ( "iger", -1, 1, "", this),+ new Among ( "igst", -1, 1, "", this)+ };++ private Among a_5[] = {+ new Among ( "ft", -1, 2, "", this),+ new Among ( "kt", -1, 1, "", this),+ new Among ( "pt", -1, 3, "", this)+ };++ private Among a_6[] = {+ new Among ( "bb", -1, 1, "", this),+ new Among ( "cc", -1, 2, "", this),+ new Among ( "dd", -1, 3, "", this),+ new Among ( "ff", -1, 4, "", this),+ new Among ( "gg", -1, 5, "", this),+ new Among ( "hh", -1, 6, "", this),+ new Among ( "jj", -1, 7, "", this),+ new Among ( "kk", -1, 8, "", this),+ new Among ( "ll", -1, 9, "", this),+ new Among ( "mm", -1, 10, "", this),+ new Among ( "nn", -1, 11, "", this),+ new Among ( "pp", -1, 12, "", this),+ new Among ( "qq", -1, 13, "", this),+ new Among ( "rr", -1, 14, "", this),+ new Among ( "ss", -1, 15, "", this),+ new Among ( "tt", -1, 16, "", this),+ new Among ( "v", -1, 21, "", this),+ new Among ( "vv", 16, 17, "", this),+ new Among ( "ww", -1, 18, "", this),+ new Among ( "xx", -1, 19, "", this),+ new Among ( "z", -1, 22, "", this),+ new Among ( "zz", 20, 20, "", this)+ };++ private Among a_7[] = {+ new Among ( "d", -1, 1, "", this),+ new Among ( "t", -1, 2, "", this)+ };++ private static final char g_v[] = {17, 65, 16, 1 };++ private static final char g_v_WX[] = {17, 65, 208, 1 };++ private static final char g_AOU[] = {1, 64, 16 };++ private static final char g_AIOU[] = {1, 65, 16 };++ private boolean B_GE_removed;+ private boolean B_stemmed;+ private boolean B_Y_found;+ private int I_p2;+ private int I_p1;+ private int I_x;+ private StringBuffer S_ch = new StringBuffer();++ private void copy_from(KpStemmer other) {+ B_GE_removed = other.B_GE_removed;+ B_stemmed = other.B_stemmed;+ B_Y_found = other.B_Y_found;+ I_p2 = other.I_p2;+ I_p1 = other.I_p1;+ I_x = other.I_x;+ S_ch = other.S_ch;+ super.copy_from(other);+ }++ private boolean r_R1() {+ // (, line 32+ // setmark x, line 32+ I_x = cursor;+ if (!(I_x >= I_p1))+ {+ return false;+ }+ return true;+ }++ private boolean r_R2() {+ // (, line 33+ // setmark x, line 33+ I_x = cursor;+ if (!(I_x >= I_p2))+ {+ return false;+ }+ return true;+ }++ private boolean r_V() {+ int v_1;+ int v_2;+ // test, line 35+ v_1 = limit - cursor;+ // (, line 35+ // or, line 35+ lab0: do {+ v_2 = limit - cursor;+ lab1: do {+ if (!(in_grouping_b(g_v, 97, 121)))+ {+ break lab1;+ }+ break lab0;+ } while (false);+ cursor = limit - v_2;+ // literal, line 35+ if (!(eq_s_b(2, "ij")))+ {+ return false;+ }+ } while (false);+ cursor = limit - v_1;+ return true;+ }++ private boolean r_VX() {+ int v_1;+ int v_2;+ // test, line 36+ v_1 = limit - cursor;+ // (, line 36+ // next, line 36+ if (cursor <= limit_backward)+ {+ return false;+ }+ cursor--;+ // or, line 36+ lab0: do {+ v_2 = limit - cursor;+ lab1: do {+ if (!(in_grouping_b(g_v, 97, 121)))+ {+ break lab1;+ }+ break lab0;+ } while (false);+ cursor = limit - v_2;+ // literal, line 36+ if (!(eq_s_b(2, "ij")))+ {+ return false;+ }+ } while (false);+ cursor = limit - v_1;+ return true;+ }++ private boolean r_C() {+ int v_1;+ int v_2;+ // test, line 37+ v_1 = limit - cursor;+ // (, line 37+ // not, line 37+ {+ v_2 = limit - cursor;+ lab0: do {+ // literal, line 37+ if (!(eq_s_b(2, "ij")))+ {+ break lab0;+ }+ return false;+ } while (false);+ cursor = limit - v_2;+ }+ if (!(out_grouping_b(g_v, 97, 121)))+ {+ return false;+ }+ cursor = limit - v_1;+ return true;+ }++ private boolean r_lengthen_V() {+ int v_1;+ int v_2;+ int v_3;+ int v_4;+ int v_5;+ int v_6;+ int v_7;+ int v_8;+ // do, line 39+ v_1 = limit - cursor;+ lab0: do {+ // (, line 39+ if (!(out_grouping_b(g_v_WX, 97, 121)))+ {+ break lab0;+ }+ // [, line 40+ ket = cursor;+ // or, line 40+ lab1: do {+ v_2 = limit - cursor;+ lab2: do {+ // (, line 40+ if (!(in_grouping_b(g_AOU, 97, 117)))+ {+ break lab2;+ }+ // ], line 40+ bra = cursor;+ // test, line 40+ v_3 = limit - cursor;+ // (, line 40+ // or, line 40+ lab3: do {+ v_4 = limit - cursor;+ lab4: do {+ if (!(out_grouping_b(g_v, 97, 121)))+ {+ break lab4;+ }+ break lab3;+ } while (false);+ cursor = limit - v_4;+ // atlimit, line 40+ if (cursor > limit_backward)+ {+ break lab2;+ }+ } while (false);+ cursor = limit - v_3;+ break lab1;+ } while (false);+ cursor = limit - v_2;+ // (, line 41+ // literal, line 41+ if (!(eq_s_b(1, "e")))+ {+ break lab0;+ }+ // ], line 41+ bra = cursor;+ // test, line 41+ v_5 = limit - cursor;+ // (, line 41+ // or, line 41+ lab5: do {+ v_6 = limit - cursor;+ lab6: do {+ if (!(out_grouping_b(g_v, 97, 121)))+ {+ break lab6;+ }+ break lab5;+ } while (false);+ cursor = limit - v_6;+ // atlimit, line 41+ if (cursor > limit_backward)+ {+ break lab0;+ }+ } while (false);+ // not, line 42+ {+ v_7 = limit - cursor;+ lab7: do {+ if (!(in_grouping_b(g_AIOU, 97, 117)))+ {+ break lab7;+ }+ break lab0;+ } while (false);+ cursor = limit - v_7;+ }+ // not, line 43+ {+ v_8 = limit - cursor;+ lab8: do {+ // (, line 43+ // next, line 43+ if (cursor <= limit_backward)+ {+ break lab8;+ }+ cursor--;+ if (!(in_grouping_b(g_AIOU, 97, 117)))+ {+ break lab8;+ }+ if (!(out_grouping_b(g_v, 97, 121)))+ {+ break lab8;+ }+ break lab0;+ } while (false);+ cursor = limit - v_8;+ }+ cursor = limit - v_5;+ } while (false);+ // -> ch, line 44+ S_ch = slice_to(S_ch);+ // <+ ch, line 44+ {+ int c = cursor;+ insert(cursor, cursor, S_ch);+ cursor = c;+ }+ } while (false);+ cursor = limit - v_1;+ return true;+ }++ private boolean r_Step_1() {+ int among_var;+ int v_1;+ int v_2;+ int v_3;+ int v_4;+ // (, line 48+ // [, line 49+ ket = cursor;+ // among, line 49+ among_var = find_among_b(a_0, 7);+ if (among_var == 0)+ {+ return false;+ }+ // (, line 49+ // ], line 49+ bra = cursor;+ switch(among_var) {+ case 0:+ return false;+ case 1:+ // (, line 51+ // delete, line 51+ slice_del();+ break;+ case 2:+ // (, line 52+ // call R1, line 52+ if (!r_R1())+ {+ return false;+ }+ // not, line 52+ {+ v_1 = limit - cursor;+ lab0: do {+ // (, line 52+ // literal, line 52+ if (!(eq_s_b(1, "t")))+ {+ break lab0;+ }+ // call R1, line 52+ if (!r_R1())+ {+ break lab0;+ }+ return false;+ } while (false);+ cursor = limit - v_1;+ }+ // call C, line 52+ if (!r_C())+ {+ return false;+ }+ // delete, line 52+ slice_del();+ break;+ case 3:+ // (, line 53+ // call R1, line 53+ if (!r_R1())+ {+ return false;+ }+ // <-, line 53+ slice_from("ie");+ break;+ case 4:+ // (, line 55+ // or, line 55+ lab1: do {+ v_2 = limit - cursor;+ lab2: do {+ // (, line 55+ // literal, line 55+ if (!(eq_s_b(2, "ar")))+ {+ break lab2;+ }+ // call R1, line 55+ if (!r_R1())+ {+ break lab2;+ }+ // call C, line 55+ if (!r_C())+ {+ break lab2;+ }+ // ], line 55+ bra = cursor;+ // delete, line 55+ slice_del();+ // call lengthen_V, line 55+ if (!r_lengthen_V())+ {+ break lab2;+ }+ break lab1;+ } while (false);+ cursor = limit - v_2;+ lab3: do {+ // (, line 56+ // literal, line 56+ if (!(eq_s_b(2, "er")))+ {+ break lab3;+ }+ // call R1, line 56+ if (!r_R1())+ {+ break lab3;+ }+ // call C, line 56+ if (!r_C())+ {+ break lab3;+ }+ // ], line 56+ bra = cursor;+ // delete, line 56+ slice_del();+ break lab1;+ } while (false);+ cursor = limit - v_2;+ // (, line 57+ // call R1, line 57+ if (!r_R1())+ {+ return false;+ }+ // call C, line 57+ if (!r_C())+ {+ return false;+ }+ // <-, line 57+ slice_from("e");+ } while (false);+ break;+ case 5:+ // (, line 59+ // call R1, line 59+ if (!r_R1())+ {+ return false;+ }+ // call V, line 59+ if (!r_V())+ {+ return false;+ }+ // <-, line 59+ slice_from("au");+ break;+ case 6:+ // (, line 60+ // or, line 60+ lab4: do {+ v_3 = limit - cursor;+ lab5: do {+ // (, line 60+ // literal, line 60+ if (!(eq_s_b(3, "hed")))+ {+ break lab5;+ }+ // call R1, line 60+ if (!r_R1())+ {+ break lab5;+ }+ // ], line 60+ bra = cursor;+ // <-, line 60+ slice_from("heid");+ break lab4;+ } while (false);+ cursor = limit - v_3;+ lab6: do {+ // (, line 61+ // literal, line 61+ if (!(eq_s_b(2, "nd")))+ {+ break lab6;+ }+ // delete, line 61+ slice_del();+ break lab4;+ } while (false);+ cursor = limit - v_3;+ lab7: do {+ // (, line 62+ // literal, line 62+ if (!(eq_s_b(1, "d")))+ {+ break lab7;+ }+ // call R1, line 62+ if (!r_R1())+ {+ break lab7;+ }+ // call C, line 62+ if (!r_C())+ {+ break lab7;+ }+ // ], line 62+ bra = cursor;+ // delete, line 62+ slice_del();+ break lab4;+ } while (false);+ cursor = limit - v_3;+ lab8: do {+ // (, line 63+ // or, line 63+ lab9: do {+ v_4 = limit - cursor;+ lab10: do {+ // literal, line 63+ if (!(eq_s_b(1, "i")))+ {+ break lab10;+ }+ break lab9;+ } while (false);+ cursor = limit - v_4;+ // literal, line 63+ if (!(eq_s_b(1, "j")))+ {+ break lab8;+ }+ } while (false);+ // call V, line 63+ if (!r_V())+ {+ break lab8;+ }+ // delete, line 63+ slice_del();+ break lab4;+ } while (false);+ cursor = limit - v_3;+ // (, line 64+ // call R1, line 64+ if (!r_R1())+ {+ return false;+ }+ // call C, line 64+ if (!r_C())+ {+ return false;+ }+ // delete, line 64+ slice_del();+ // call lengthen_V, line 64+ if (!r_lengthen_V())+ {+ return false;+ }+ } while (false);+ break;+ case 7:+ // (, line 65+ // <-, line 65+ slice_from("nd");+ break;+ }+ return true;+ }++ private boolean r_Step_2() {+ int among_var;+ int v_1;+ // (, line 70+ // [, line 71+ ket = cursor;+ // among, line 71+ among_var = find_among_b(a_1, 11);+ if (among_var == 0)+ {+ return false;+ }+ // (, line 71+ // ], line 71+ bra = cursor;+ switch(among_var) {+ case 0:+ return false;+ case 1:+ // (, line 72+ // or, line 72+ lab0: do {+ v_1 = limit - cursor;+ lab1: do {+ // (, line 72+ // literal, line 72+ if (!(eq_s_b(2, "'t")))+ {+ break lab1;+ }+ // ], line 72+ bra = cursor;+ // delete, line 72+ slice_del();+ break lab0;+ } while (false);+ cursor = limit - v_1;+ lab2: do {+ // (, line 73+ // literal, line 73+ if (!(eq_s_b(2, "et")))+ {+ break lab2;+ }+ // ], line 73+ bra = cursor;+ // call R1, line 73+ if (!r_R1())+ {+ break lab2;+ }+ // call C, line 73+ if (!r_C())+ {+ break lab2;+ }+ // delete, line 73+ slice_del();+ break lab0;+ } while (false);+ cursor = limit - v_1;+ lab3: do {+ // (, line 74+ // literal, line 74+ if (!(eq_s_b(3, "rnt")))+ {+ break lab3;+ }+ // ], line 74+ bra = cursor;+ // <-, line 74+ slice_from("rn");+ break lab0;+ } while (false);+ cursor = limit - v_1;+ lab4: do {+ // (, line 75+ // literal, line 75+ if (!(eq_s_b(1, "t")))+ {+ break lab4;+ }+ // ], line 75+ bra = cursor;+ // call R1, line 75+ if (!r_R1())+ {+ break lab4;+ }+ // call VX, line 75+ if (!r_VX())+ {+ break lab4;+ }+ // delete, line 75+ slice_del();+ break lab0;+ } while (false);+ cursor = limit - v_1;+ lab5: do {+ // (, line 76+ // literal, line 76+ if (!(eq_s_b(3, "ink")))+ {+ break lab5;+ }+ // ], line 76+ bra = cursor;+ // <-, line 76+ slice_from("ing");+ break lab0;+ } while (false);+ cursor = limit - v_1;+ lab6: do {+ // (, line 77+ // literal, line 77+ if (!(eq_s_b(2, "mp")))+ {+ break lab6;+ }+ // ], line 77+ bra = cursor;+ // <-, line 77+ slice_from("m");+ break lab0;+ } while (false);+ cursor = limit - v_1;+ lab7: do {+ // (, line 78+ // literal, line 78+ if (!(eq_s_b(1, "'")))+ {+ break lab7;+ }+ // ], line 78+ bra = cursor;+ // call R1, line 78+ if (!r_R1())+ {+ break lab7;+ }+ // delete, line 78+ slice_del();+ break lab0;+ } while (false);+ cursor = limit - v_1;+ // (, line 79+ // ], line 79+ bra = cursor;+ // call R1, line 79+ if (!r_R1())+ {+ return false;+ }+ // call C, line 79+ if (!r_C())+ {+ return false;+ }+ // delete, line 79+ slice_del();+ } while (false);+ break;+ case 2:+ // (, line 80+ // call R1, line 80+ if (!r_R1())+ {+ return false;+ }+ // <-, line 80+ slice_from("g");+ break;+ case 3:+ // (, line 81+ // call R1, line 81+ if (!r_R1())+ {+ return false;+ }+ // <-, line 81+ slice_from("lijk");+ break;+ case 4:+ // (, line 82+ // call R1, line 82+ if (!r_R1())+ {+ return false;+ }+ // <-, line 82+ slice_from("isch");+ break;+ case 5:+ // (, line 83+ // call R1, line 83+ if (!r_R1())+ {+ return false;+ }+ // call C, line 83+ if (!r_C())+ {+ return false;+ }+ // delete, line 83+ slice_del();+ break;+ case 6:+ // (, line 84+ // call R1, line 84+ if (!r_R1())+ {+ return false;+ }+ // <-, line 84+ slice_from("t");+ break;+ case 7:+ // (, line 85+ // call R1, line 85+ if (!r_R1())+ {+ return false;+ }+ // <-, line 85+ slice_from("s");+ break;+ case 8:+ // (, line 86+ // call R1, line 86+ if (!r_R1())+ {+ return false;+ }+ // <-, line 86+ slice_from("r");+ break;+ case 9:+ // (, line 87+ // call R1, line 87+ if (!r_R1())+ {+ return false;+ }+ // delete, line 87+ slice_del();+ // attach, line 87+ insert(cursor, cursor, "l");+ // call lengthen_V, line 87+ if (!r_lengthen_V())+ {+ return false;+ }+ break;+ case 10:+ // (, line 88+ // call R1, line 88+ if (!r_R1())+ {+ return false;+ }+ // call C, line 88+ if (!r_C())+ {+ return false;+ }+ // delete, line 88+ slice_del();+ // attach, line 88+ insert(cursor, cursor, "en");+ // call lengthen_V, line 88+ if (!r_lengthen_V())+ {+ return false;+ }+ break;+ case 11:+ // (, line 89+ // call R1, line 89+ if (!r_R1())+ {+ return false;+ }+ // call C, line 89+ if (!r_C())+ {+ return false;+ }+ // <-, line 89+ slice_from("ief");+ break;+ }+ return true;+ }++ private boolean r_Step_3() {+ int among_var;+ // (, line 94+ // [, line 95+ ket = cursor;+ // among, line 95+ among_var = find_among_b(a_2, 14);+ if (among_var == 0)+ {+ return false;+ }+ // (, line 95+ // ], line 95+ bra = cursor;+ switch(among_var) {+ case 0:+ return false;+ case 1:+ // (, line 96+ // call R1, line 96+ if (!r_R1())+ {+ return false;+ }+ // <-, line 96+ slice_from("eer");+ break;+ case 2:+ // (, line 97+ // call R1, line 97+ if (!r_R1())+ {+ return false;+ }+ // delete, line 97+ slice_del();+ // call lengthen_V, line 97+ if (!r_lengthen_V())+ {+ return false;+ }+ break;+ case 3:+ // (, line 100+ // call R1, line 100+ if (!r_R1())+ {+ return false;+ }+ // delete, line 100+ slice_del();+ break;+ case 4:+ // (, line 101+ // <-, line 101+ slice_from("r");+ break;+ case 5:+ // (, line 104+ // call R1, line 104+ if (!r_R1())+ {+ return false;+ }+ // delete, line 104+ slice_del();+ // call lengthen_V, line 104+ if (!r_lengthen_V())+ {+ return false;+ }+ break;+ case 6:+ // (, line 105+ // call R1, line 105+ if (!r_R1())+ {+ return false;+ }+ // call C, line 105+ if (!r_C())+ {+ return false;+ }+ // <-, line 105+ slice_from("aar");+ break;+ case 7:+ // (, line 106+ // call R2, line 106+ if (!r_R2())+ {+ return false;+ }+ // delete, line 106+ slice_del();+ // attach, line 106+ insert(cursor, cursor, "f");+ // call lengthen_V, line 106+ if (!r_lengthen_V())+ {+ return false;+ }+ break;+ case 8:+ // (, line 107+ // call R2, line 107+ if (!r_R2())+ {+ return false;+ }+ // delete, line 107+ slice_del();+ // attach, line 107+ insert(cursor, cursor, "g");+ // call lengthen_V, line 107+ if (!r_lengthen_V())+ {+ return false;+ }+ break;+ case 9:+ // (, line 108+ // call R1, line 108+ if (!r_R1())+ {+ return false;+ }+ // call C, line 108+ if (!r_C())+ {+ return false;+ }+ // <-, line 108+ slice_from("t");+ break;+ case 10:+ // (, line 109+ // call R1, line 109+ if (!r_R1())+ {+ return false;+ }+ // call C, line 109+ if (!r_C())+ {+ return false;+ }+ // <-, line 109+ slice_from("d");+ break;+ }+ return true;+ }++ private boolean r_Step_4() {+ int among_var;+ int v_1;+ // (, line 114+ // or, line 134+ lab0: do {+ v_1 = limit - cursor;+ lab1: do {+ // (, line 115+ // [, line 115+ ket = cursor;+ // among, line 115+ among_var = find_among_b(a_3, 16);+ if (among_var == 0)+ {+ break lab1;+ }+ // (, line 115+ // ], line 115+ bra = cursor;+ switch(among_var) {+ case 0:+ break lab1;+ case 1:+ // (, line 116+ // call R1, line 116+ if (!r_R1())+ {+ break lab1;+ }+ // <-, line 116+ slice_from("ie");+ break;+ case 2:+ // (, line 117+ // call R1, line 117+ if (!r_R1())+ {+ break lab1;+ }+ // <-, line 117+ slice_from("eer");+ break;+ case 3:+ // (, line 118+ // call R1, line 118+ if (!r_R1())+ {+ break lab1;+ }+ // delete, line 118+ slice_del();+ break;+ case 4:+ // (, line 119+ // call R1, line 119+ if (!r_R1())+ {+ break lab1;+ }+ // call V, line 119+ if (!r_V())+ {+ break lab1;+ }+ // <-, line 119+ slice_from("n");+ break;+ case 5:+ // (, line 120+ // call R1, line 120+ if (!r_R1())+ {+ break lab1;+ }+ // call V, line 120+ if (!r_V())+ {+ break lab1;+ }+ // <-, line 120+ slice_from("l");+ break;+ case 6:+ // (, line 121+ // call R1, line 121+ if (!r_R1())+ {+ break lab1;+ }+ // call V, line 121+ if (!r_V())+ {+ break lab1;+ }+ // <-, line 121+ slice_from("r");+ break;+ case 7:+ // (, line 122+ // call R1, line 122+ if (!r_R1())+ {+ break lab1;+ }+ // <-, line 122+ slice_from("teer");+ break;+ case 8:+ // (, line 124+ // call R1, line 124+ if (!r_R1())+ {+ break lab1;+ }+ // <-, line 124+ slice_from("lijk");+ break;+ case 9:+ // (, line 127+ // call R1, line 127+ if (!r_R1())+ {+ break lab1;+ }+ // delete, line 127+ slice_del();+ break;+ case 10:+ // (, line 131+ // call R1, line 131+ if (!r_R1())+ {+ break lab1;+ }+ // call C, line 131+ if (!r_C())+ {+ break lab1;+ }+ // delete, line 131+ slice_del();+ // call lengthen_V, line 131+ if (!r_lengthen_V())+ {+ break lab1;+ }+ break;+ }+ break lab0;+ } while (false);+ cursor = limit - v_1;+ // (, line 135+ // [, line 135+ ket = cursor;+ // among, line 135+ among_var = find_among_b(a_4, 3);+ if (among_var == 0)+ {+ return false;+ }+ // (, line 135+ // ], line 135+ bra = cursor;+ switch(among_var) {+ case 0:+ return false;+ case 1:+ // (, line 138+ // call R1, line 138+ if (!r_R1())+ {+ return false;+ }+ // call C, line 138+ if (!r_C())+ {+ return false;+ }+ // delete, line 138+ slice_del();+ // call lengthen_V, line 138+ if (!r_lengthen_V())+ {+ return false;+ }+ break;+ }+ } while (false);+ return true;+ }++ private boolean r_Step_7() {+ int among_var;+ // (, line 144+ // [, line 145+ ket = cursor;+ // among, line 145+ among_var = find_among_b(a_5, 3);+ if (among_var == 0)+ {+ return false;+ }+ // (, line 145+ // ], line 145+ bra = cursor;+ switch(among_var) {+ case 0:+ return false;+ case 1:+ // (, line 146+ // <-, line 146+ slice_from("k");+ break;+ case 2:+ // (, line 147+ // <-, line 147+ slice_from("f");+ break;+ case 3:+ // (, line 148+ // <-, line 148+ slice_from("p");+ break;+ }+ return true;+ }++ private boolean r_Step_6() {+ int among_var;+ // (, line 153+ // [, line 154+ ket = cursor;+ // among, line 154+ among_var = find_among_b(a_6, 22);+ if (among_var == 0)+ {+ return false;+ }+ // (, line 154+ // ], line 154+ bra = cursor;+ switch(among_var) {+ case 0:+ return false;+ case 1:+ // (, line 155+ // <-, line 155+ slice_from("b");+ break;+ case 2:+ // (, line 156+ // <-, line 156+ slice_from("c");+ break;+ case 3:+ // (, line 157+ // <-, line 157+ slice_from("d");+ break;+ case 4:+ // (, line 158+ // <-, line 158+ slice_from("f");+ break;+ case 5:+ // (, line 159+ // <-, line 159+ slice_from("g");+ break;+ case 6:+ // (, line 160+ // <-, line 160+ slice_from("h");+ break;+ case 7:+ // (, line 161+ // <-, line 161+ slice_from("j");+ break;+ case 8:+ // (, line 162+ // <-, line 162+ slice_from("k");+ break;+ case 9:+ // (, line 163+ // <-, line 163+ slice_from("l");+ break;+ case 10:+ // (, line 164+ // <-, line 164+ slice_from("m");+ break;+ case 11:+ // (, line 165+ // <-, line 165+ slice_from("n");+ break;+ case 12:+ // (, line 166+ // <-, line 166+ slice_from("p");+ break;+ case 13:+ // (, line 167+ // <-, line 167+ slice_from("q");+ break;+ case 14:+ // (, line 168+ // <-, line 168+ slice_from("r");+ break;+ case 15:+ // (, line 169+ // <-, line 169+ slice_from("s");+ break;+ case 16:+ // (, line 170+ // <-, line 170+ slice_from("t");+ break;+ case 17:+ // (, line 171+ // <-, line 171+ slice_from("v");+ break;+ case 18:+ // (, line 172+ // <-, line 172+ slice_from("w");+ break;+ case 19:+ // (, line 173+ // <-, line 173+ slice_from("x");+ break;+ case 20:+ // (, line 174+ // <-, line 174+ slice_from("z");+ break;+ case 21:+ // (, line 175+ // <-, line 175+ slice_from("f");+ break;+ case 22:+ // (, line 176+ // <-, line 176+ slice_from("s");+ break;+ }+ return true;+ }++ private boolean r_Step_1c() {+ int among_var;+ int v_1;+ int v_2;+ // (, line 181+ // [, line 182+ ket = cursor;+ // among, line 182+ among_var = find_among_b(a_7, 2);+ if (among_var == 0)+ {+ return false;+ }+ // (, line 182+ // ], line 182+ bra = cursor;+ // call R1, line 182+ if (!r_R1())+ {+ return false;+ }+ // call C, line 182+ if (!r_C())+ {+ return false;+ }+ switch(among_var) {+ case 0:+ return false;+ case 1:+ // (, line 183+ // not, line 183+ {+ v_1 = limit - cursor;+ lab0: do {+ // (, line 183+ // literal, line 183+ if (!(eq_s_b(1, "n")))+ {+ break lab0;+ }+ // call R1, line 183+ if (!r_R1())+ {+ break lab0;+ }+ return false;+ } while (false);+ cursor = limit - v_1;+ }+ // delete, line 183+ slice_del();+ break;+ case 2:+ // (, line 184+ // not, line 184+ {+ v_2 = limit - cursor;+ lab1: do {+ // (, line 184+ // literal, line 184+ if (!(eq_s_b(1, "h")))+ {+ break lab1;+ }+ // call R1, line 184+ if (!r_R1())+ {+ break lab1;+ }+ return false;+ } while (false);+ cursor = limit - v_2;+ }+ // delete, line 184+ slice_del();+ break;+ }+ return true;+ }++ private boolean r_Lose_prefix() {+ int v_1;+ int v_2;+ int v_3;+ // (, line 189+ // [, line 190+ bra = cursor;+ // literal, line 190+ if (!(eq_s(2, "ge")))+ {+ return false;+ }+ // ], line 190+ ket = cursor;+ // test, line 190+ v_1 = cursor;+ // hop, line 190+ {+ int c = cursor + 3;+ if (0 > c || c > limit)+ {+ return false;+ }+ cursor = c;+ }+ cursor = v_1;+ // (, line 190+ // goto, line 190+ golab0: while(true)+ {+ v_2 = cursor;+ lab1: do {+ if (!(in_grouping(g_v, 97, 121)))+ {+ break lab1;+ }+ cursor = v_2;+ break golab0;+ } while (false);+ cursor = v_2;+ if (cursor >= limit)+ {+ return false;+ }+ cursor++;+ }+ // goto, line 190+ golab2: while(true)+ {+ v_3 = cursor;+ lab3: do {+ if (!(out_grouping(g_v, 97, 121)))+ {+ break lab3;+ }+ cursor = v_3;+ break golab2;+ } while (false);+ cursor = v_3;+ if (cursor >= limit)+ {+ return false;+ }+ cursor++;+ }+ // set GE_removed, line 191+ B_GE_removed = true;+ // delete, line 192+ slice_del();+ return true;+ }++ private boolean r_Lose_infix() {+ int v_2;+ int v_3;+ int v_4;+ // (, line 195+ // next, line 196+ if (cursor >= limit)+ {+ return false;+ }+ cursor++;+ // gopast, line 197+ golab0: while(true)+ {+ lab1: do {+ // (, line 197+ // [, line 197+ bra = cursor;+ // literal, line 197+ if (!(eq_s(2, "ge")))+ {+ break lab1;+ }+ // ], line 197+ ket = cursor;+ break golab0;+ } while (false);+ if (cursor >= limit)+ {+ return false;+ }+ cursor++;+ }+ // test, line 197+ v_2 = cursor;+ // hop, line 197+ {+ int c = cursor + 3;+ if (0 > c || c > limit)+ {+ return false;+ }+ cursor = c;+ }+ cursor = v_2;+ // (, line 197+ // goto, line 197+ golab2: while(true)+ {+ v_3 = cursor;+ lab3: do {+ if (!(in_grouping(g_v, 97, 121)))+ {+ break lab3;+ }+ cursor = v_3;+ break golab2;+ } while (false);+ cursor = v_3;+ if (cursor >= limit)+ {+ return false;+ }+ cursor++;+ }+ // goto, line 197+ golab4: while(true)+ {+ v_4 = cursor;+ lab5: do {+ if (!(out_grouping(g_v, 97, 121)))+ {+ break lab5;+ }+ cursor = v_4;+ break golab4;+ } while (false);+ cursor = v_4;+ if (cursor >= limit)+ {+ return false;+ }+ cursor++;+ }+ // set GE_removed, line 198+ B_GE_removed = true;+ // delete, line 199+ slice_del();+ return true;+ }++ private boolean r_measure() {+ int v_1;+ int v_2;+ int v_5;+ int v_6;+ int v_9;+ int v_10;+ // (, line 202+ // do, line 203+ v_1 = cursor;+ lab0: do {+ // (, line 203+ // tolimit, line 204+ cursor = limit;+ // setmark p1, line 205+ I_p1 = cursor;+ // setmark p2, line 206+ I_p2 = cursor;+ } while (false);+ cursor = v_1;+ // do, line 208+ v_2 = cursor;+ lab1: do {+ // (, line 208+ // repeat, line 209+ replab2: while(true)+ {+ lab3: do {+ if (!(out_grouping(g_v, 97, 121)))+ {+ break lab3;+ }+ continue replab2;+ } while (false);+ break replab2;+ }+ // atleast, line 209+ {+ int v_4 = 1;+ // atleast, line 209+ replab4: while(true)+ {+ v_5 = cursor;+ lab5: do {+ // (, line 209+ // or, line 209+ lab6: do {+ v_6 = cursor;+ lab7: do {+ // literal, line 209+ if (!(eq_s(2, "ij")))+ {+ break lab7;+ }+ break lab6;+ } while (false);+ cursor = v_6;+ if (!(in_grouping(g_v, 97, 121)))+ {+ break lab5;+ }+ } while (false);+ v_4--;+ continue replab4;+ } while (false);+ cursor = v_5;+ break replab4;+ }+ if (v_4 > 0)+ {+ break lab1;+ }+ }+ if (!(out_grouping(g_v, 97, 121)))+ {+ break lab1;+ }+ // setmark p1, line 209+ I_p1 = cursor;+ // repeat, line 210+ replab8: while(true)+ {+ lab9: do {+ if (!(out_grouping(g_v, 97, 121)))+ {+ break lab9;+ }+ continue replab8;+ } while (false);+ break replab8;+ }+ // atleast, line 210+ {+ int v_8 = 1;+ // atleast, line 210+ replab10: while(true)+ {+ v_9 = cursor;+ lab11: do {+ // (, line 210+ // or, line 210+ lab12: do {+ v_10 = cursor;+ lab13: do {+ // literal, line 210+ if (!(eq_s(2, "ij")))+ {+ break lab13;+ }+ break lab12;+ } while (false);+ cursor = v_10;+ if (!(in_grouping(g_v, 97, 121)))+ {+ break lab11;+ }+ } while (false);+ v_8--;+ continue replab10;+ } while (false);+ cursor = v_9;+ break replab10;+ }+ if (v_8 > 0)+ {+ break lab1;+ }+ }+ if (!(out_grouping(g_v, 97, 121)))+ {+ break lab1;+ }+ // setmark p2, line 210+ I_p2 = cursor;+ } while (false);+ cursor = v_2;+ 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;+ int v_11;+ int v_12;+ int v_13;+ int v_14;+ int v_15;+ int v_16;+ int v_18;+ int v_19;+ int v_20;+ // (, line 214+ // unset Y_found, line 216+ B_Y_found = false;+ // unset stemmed, line 217+ B_stemmed = false;+ // do, line 218+ v_1 = cursor;+ lab0: do {+ // (, line 218+ // [, line 218+ bra = cursor;+ // literal, line 218+ if (!(eq_s(1, "y")))+ {+ break lab0;+ }+ // ], line 218+ ket = cursor;+ // <-, line 218+ slice_from("Y");+ // set Y_found, line 218+ B_Y_found = true;+ } while (false);+ cursor = v_1;+ // do, line 219+ v_2 = cursor;+ lab1: do {+ // repeat, line 219+ replab2: while(true)+ {+ v_3 = cursor;+ lab3: do {+ // (, line 219+ // goto, line 219+ golab4: while(true)+ {+ v_4 = cursor;+ lab5: do {+ // (, line 219+ if (!(in_grouping(g_v, 97, 121)))+ {+ break lab5;+ }+ // [, line 219+ bra = cursor;+ // literal, line 219+ if (!(eq_s(1, "y")))+ {+ break lab5;+ }+ // ], line 219+ ket = cursor;+ cursor = v_4;+ break golab4;+ } while (false);+ cursor = v_4;+ if (cursor >= limit)+ {+ break lab3;+ }+ cursor++;+ }+ // <-, line 219+ slice_from("Y");+ // set Y_found, line 219+ B_Y_found = true;+ continue replab2;+ } while (false);+ cursor = v_3;+ break replab2;+ }+ } while (false);+ cursor = v_2;+ // call measure, line 221+ if (!r_measure())+ {+ return false;+ }+ // backwards, line 223+ limit_backward = cursor; cursor = limit;+ // (, line 223+ // do, line 224+ v_5 = limit - cursor;+ lab6: do {+ // (, line 224+ // call Step_1, line 224+ if (!r_Step_1())+ {+ break lab6;+ }+ // set stemmed, line 224+ B_stemmed = true;+ } while (false);+ cursor = limit - v_5;+ // do, line 225+ v_6 = limit - cursor;+ lab7: do {+ // (, line 225+ // call Step_2, line 225+ if (!r_Step_2())+ {+ break lab7;+ }+ // set stemmed, line 225+ B_stemmed = true;+ } while (false);+ cursor = limit - v_6;+ // do, line 226+ v_7 = limit - cursor;+ lab8: do {+ // (, line 226+ // call Step_3, line 226+ if (!r_Step_3())+ {+ break lab8;+ }+ // set stemmed, line 226+ B_stemmed = true;+ } while (false);+ cursor = limit - v_7;+ // do, line 227+ v_8 = limit - cursor;+ lab9: do {+ // (, line 227+ // call Step_4, line 227+ if (!r_Step_4())+ {+ break lab9;+ }+ // set stemmed, line 227+ B_stemmed = true;+ } while (false);+ cursor = limit - v_8;+ cursor = limit_backward; // unset GE_removed, line 229+ B_GE_removed = false;+ // do, line 230+ v_9 = cursor;+ lab10: do {+ // (, line 230+ // and, line 230+ v_10 = cursor;+ // call Lose_prefix, line 230+ if (!r_Lose_prefix())+ {+ break lab10;+ }+ cursor = v_10;+ // call measure, line 230+ if (!r_measure())+ {+ break lab10;+ }+ } while (false);+ cursor = v_9;+ // backwards, line 231+ limit_backward = cursor; cursor = limit;+ // (, line 231+ // do, line 232+ v_11 = limit - cursor;+ lab11: do {+ // (, line 232+ // Boolean test GE_removed, line 232+ if (!(B_GE_removed))+ {+ break lab11;+ }+ // call Step_1c, line 232+ if (!r_Step_1c())+ {+ break lab11;+ }+ } while (false);+ cursor = limit - v_11;+ cursor = limit_backward; // unset GE_removed, line 234+ B_GE_removed = false;+ // do, line 235+ v_12 = cursor;+ lab12: do {+ // (, line 235+ // and, line 235+ v_13 = cursor;+ // call Lose_infix, line 235+ if (!r_Lose_infix())+ {+ break lab12;+ }+ cursor = v_13;+ // call measure, line 235+ if (!r_measure())+ {+ break lab12;+ }+ } while (false);+ cursor = v_12;+ // backwards, line 236+ limit_backward = cursor; cursor = limit;+ // (, line 236+ // do, line 237+ v_14 = limit - cursor;+ lab13: do {+ // (, line 237+ // Boolean test GE_removed, line 237+ if (!(B_GE_removed))+ {+ break lab13;+ }+ // call Step_1c, line 237+ if (!r_Step_1c())+ {+ break lab13;+ }+ } while (false);+ cursor = limit - v_14;+ cursor = limit_backward; // backwards, line 239+ limit_backward = cursor; cursor = limit;+ // (, line 239+ // do, line 240+ v_15 = limit - cursor;+ lab14: do {+ // (, line 240+ // call Step_7, line 240+ if (!r_Step_7())+ {+ break lab14;+ }+ // set stemmed, line 240+ B_stemmed = true;+ } while (false);+ cursor = limit - v_15;+ // do, line 241+ v_16 = limit - cursor;+ lab15: do {+ // (, line 241+ // or, line 241+ lab16: do {+ lab17: do {+ // Boolean test stemmed, line 241+ if (!(B_stemmed))+ {+ break lab17;+ }+ break lab16;+ } while (false);+ // Boolean test GE_removed, line 241+ if (!(B_GE_removed))+ {+ break lab15;+ }+ } while (false);+ // call Step_6, line 241+ if (!r_Step_6())+ {+ break lab15;+ }+ } while (false);+ cursor = limit - v_16;+ cursor = limit_backward; // do, line 243+ v_18 = cursor;+ lab18: do {+ // (, line 243+ // Boolean test Y_found, line 243+ if (!(B_Y_found))+ {+ break lab18;+ }+ // repeat, line 243+ replab19: while(true)+ {+ v_19 = cursor;+ lab20: do {+ // (, line 243+ // goto, line 243+ golab21: while(true)+ {+ v_20 = cursor;+ lab22: do {+ // (, line 243+ // [, line 243+ bra = cursor;+ // literal, line 243+ if (!(eq_s(1, "Y")))+ {+ break lab22;+ }+ // ], line 243+ ket = cursor;+ cursor = v_20;+ break golab21;+ } while (false);+ cursor = v_20;+ if (cursor >= limit)+ {+ break lab20;+ }+ cursor++;+ }+ // <-, line 243+ slice_from("y");+ continue replab19;+ } while (false);+ cursor = v_19;+ break replab19;+ }+ } while (false);+ cursor = v_18;+ return true;+ }++}+diff --git a/sandbox/contributions/snowball/src/java/org/apache/lucene/analysis/snowball/SnowballAnalyzer.java b/sandbox/contributions/snowball/src/java/org/apache/lucene/analysis/snowball/SnowballAnalyzer.javaindex 86ab2065cb0..4265f453184 100644--- a/sandbox/contributions/snowball/src/java/org/apache/lucene/analysis/snowball/SnowballAnalyzer.java+++ b/sandbox/contributions/snowball/src/java/org/apache/lucene/analysis/snowball/SnowballAnalyzer.java@@ -1,57 +1,19 @@package org.apache.lucene.analysis.snowball;-/* ====================================================================- * The Apache Software License, Version 1.1+/**+ * Copyright 2004 The Apache Software Foundation*- * Copyright (c) 2001 The Apache Software Foundation. All rights- * reserved.+ * Licensed 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*- * Redistribution and use in source and binary forms, with or without- * modification, are permitted provided that the following conditions- * are met:+ * http://www.apache.org/licenses/LICENSE-2.0*- * 1. Redistributions of source code must retain the above copyright- * notice, this list of conditions and the following disclaimer.- *- * 2. Redistributions in binary form must reproduce the above copyright- * notice, this list of conditions and the following disclaimer in- * the documentation and/or other materials provided with the- * distribution.- *- * 3. The end-user documentation included with the redistribution,- * if any, must include the following acknowledgment:- * "This product includes software developed by the- * Apache Software Foundation (http://www.apache.org/)."- * Alternately, this acknowledgment may appear in the software itself,- * if and wherever such third-party acknowledgments normally appear.- *- * 4. The names "Apache" and "Apache Software Foundation" and- * "Apache Lucene" must not be used to endorse or promote products- * derived from this software without prior written permission. For- * written permission, please contact [email protected].- *- * 5. Products derived from this software may not be called "Apache",- * "Apache Lucene", nor may "Apache" appear in their name, without- * prior written permission of the Apache Software Foundation.- *- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE- * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR- * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF- * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT- * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF- * SUCH DAMAGE.- * ====================================================================- *- * This software consists of voluntary contributions made by many- * individuals on behalf of the Apache Software Foundation. For more- * information on the Apache Software Foundation, please see- * <http://www.apache.org/>.+ * 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 org.apache.lucene.analysis.*;diff --git a/sandbox/contributions/snowball/src/java/org/apache/lucene/analysis/snowball/SnowballFilter.java b/sandbox/contributions/snowball/src/java/org/apache/lucene/analysis/snowball/SnowballFilter.javaindex 8743502044c..bbb39f9b636 100644--- a/sandbox/contributions/snowball/src/java/org/apache/lucene/analysis/snowball/SnowballFilter.java+++ b/sandbox/contributions/snowball/src/java/org/apache/lucene/analysis/snowball/SnowballFilter.java@@ -1,57 +1,19 @@package org.apache.lucene.analysis.snowball;-/* ====================================================================- * The Apache Software License, Version 1.1+/**+ * Copyright 2004 The Apache Software Foundation*- * Copyright (c) 2004 The Apache Software Foundation. All rights- * reserved.+ * Licensed 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*- * Redistribution and use in source and binary forms, with or without- * modification, are permitted provided that the following conditions- * are met:+ * http://www.apache.org/licenses/LICENSE-2.0*- * 1. Redistributions of source code must retain the above copyright- * notice, this list of conditions and the following disclaimer.- *- * 2. Redistributions in binary form must reproduce the above copyright- * notice, this list of conditions and the following disclaimer in- * the documentation and/or other materials provided with the- * distribution.- *- * 3. The end-user documentation included with the redistribution,- * if any, must include the following acknowledgment:- * "This product includes software developed by the- * Apache Software Foundation (http://www.apache.org/)."- * Alternately, this acknowledgment may appear in the software itself,- * if and wherever such third-party acknowledgments normally appear.- *- * 4. The names "Apache" and "Apache Software Foundation" and- * "Apache Lucene" must not be used to endorse or promote products- * derived from this software without prior written permission. For- * written permission, please contact [email protected].- *- * 5. Products derived from this software may not be called "Apache",- * "Apache Lucene", nor may "Apache" appear in their name, without- * prior written permission of the Apache Software Foundation.- *- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE- * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR- * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF- * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT- * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF- * SUCH DAMAGE.- * ====================================================================- *- * This software consists of voluntary contributions made by many- * individuals on behalf of the Apache Software Foundation. For more- * information on the Apache Software Foundation, please see- * <http://www.apache.org/>.+ * 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.io.IOException;@@ -81,7 +43,7 @@ public class SnowballFilter extends TokenFilter {/** Construct the named stemming filter.** @param in the input tokens to stem- * @param in the name of a stemmer+ * @param name the name of a stemmer*/public SnowballFilter(TokenStream in, String name) {super(in);