Skip to content

Apache Lucene open-source search software

remove unsupported snowball algorithms (#13230)

Robert Muir11712a3364ae
diff --git a/gradle/generation/snowball.gradle b/gradle/generation/snowball.gradle
index 55a23a18167..bbaedb3df58 100644
--- a/gradle/generation/snowball.gradle
+++ b/gradle/generation/snowball.gradle
@@ -33,7 +33,6 @@ configure(project(":lucene:analysis:common")) {
snowballStemmerDir = file("${snowballWorkDir}/stemmers-${snowballStemmerCommit}")
snowballWebsiteDir = file("${snowballWorkDir}/website-${snowballWebsiteCommit}")
- snowballPatchFile = file("${resources}/snowball.patch")
snowballScript = file("${resources}/snowball.sh")
}
@@ -50,7 +49,6 @@ configure(project(":lucene:analysis:common")) {
// downloads snowball stemmers (or use cached copy)
task downloadSnowballStemmers(type: Download) {
- inputs.file(snowballPatchFile)
src "https://github.com/snowballstem/snowball/archive/${snowballStemmerCommit}.zip"
dest file("${snowballStemmerDir}.zip")
overwrite false
@@ -58,7 +56,6 @@ configure(project(":lucene:analysis:common")) {
doLast {
unpackFromZip(dest, snowballStemmerDir)
- ant.patch(patchfile: snowballPatchFile, dir: snowballStemmerDir, strip: "1", failonerror: true)
}
}
@@ -97,7 +94,7 @@ configure(project(":lucene:analysis:common")) {
if (Os.isFamily(Os.FAMILY_WINDOWS)) {
doFirst {
// Just emit a big fat error message. Fail the build so that checksums are not regenerated.
- throw new GradleException("Snowball generation does not work on Windows (patch and bash must be available).")
+ throw new GradleException("Snowball generation does not work on Windows (bash must be available).")
}
} else {
dependsOn downloadSnowballStemmers
diff --git a/gradle/generation/snowball/snowball.patch b/gradle/generation/snowball/snowball.patch
deleted file mode 100644
index 2d68f7c088e..00000000000
--- a/gradle/generation/snowball/snowball.patch
+++ /dev/null
@@ -1,15 +0,0 @@
-index cd36a21..5f51287 100644
---- a/libstemmer/modules.txt
-+++ b/libstemmer/modules.txt
-@@ -53,9 +53,9 @@ porter UTF_8,ISO_8859_1 porter english
- # algorithms are:
- #
- # kraaij_pohlmann - This is a different dutch stemmer.
--#kraaij_pohlmann UTF_8,ISO_8859_1 kraaij_pohlmann dutch
-+kraaij_pohlmann UTF_8,ISO_8859_1 kraaij_pohlmann dutch
- #
- # lovins - This is an english stemmer, but fairly outdated, and
- # only really applicable to a restricted type of input text
- # (keywords in academic publications).
--#lovins UTF_8,ISO_8859_1 lovins english
-+lovins UTF_8,ISO_8859_1 lovins english
diff --git a/gradle/generation/snowball/snowball.sh b/gradle/generation/snowball/snowball.sh
index ec53f6b7a7f..4cabbf81493 100644
--- a/gradle/generation/snowball/snowball.sh
+++ b/gradle/generation/snowball/snowball.sh
@@ -47,12 +47,7 @@ for file in ${SRCDIR}/java/org/tartarus/snowball/ext/*.java; do
# title-case the classes (fooStemmer -> FooStemmer) so they obey normal java conventions
base=$(basename $file)
oldclazz="${base%.*}"
- # one-off
- if [ "${oldclazz}" == "kraaij_pohlmannStemmer" ]; then
- newclazz="KpStemmer"
- else
- newclazz=${oldclazz^}
- fi
+ newclazz=${oldclazz^}
echo ${newclazz} | sed -e 's/Stemmer//' >> ${TESTDSTDIR}/languages.txt
cat $file | sed "s/${oldclazz}/${newclazz}/g" > ${DESTDIR}/ext/${newclazz}.java
done
diff --git a/lucene/CHANGES.txt b/lucene/CHANGES.txt
index fdd401294a6..95bee6d94f9 100644
--- a/lucene/CHANGES.txt
+++ b/lucene/CHANGES.txt
@@ -160,6 +160,9 @@ Changes in Backwards Compatibility Policy
* GITHUB#12829: IndexWriter#addDocuments or IndexWriter#updateDocuments now require a parent field name to be
specified in IndexWriterConfig is documents blocks are indexed and index time sorting is configured. (Simon Willnauer)
+* GITHUB#13230: Remove the Kp and Lovins snowball algorithms which are not supported
+ or intended for general use. (Robert Muir)
+
Other
---------------------
diff --git a/lucene/analysis/common/src/generated/checksums/snowball.json b/lucene/analysis/common/src/generated/checksums/snowball.json
index be3711f5c49..bb421e73127 100644
--- a/lucene/analysis/common/src/generated/checksums/snowball.json
+++ b/lucene/analysis/common/src/generated/checksums/snowball.json
@@ -19,9 +19,7 @@
"lucene/analysis/common/src/java/org/tartarus/snowball/ext/IndonesianStemmer.java": "bb4763deb4f4ff04e5f27a10f92c0738e345462a",
"lucene/analysis/common/src/java/org/tartarus/snowball/ext/IrishStemmer.java": "32639d33d64cd0a5cc313e25fb6aedf12337443d",
"lucene/analysis/common/src/java/org/tartarus/snowball/ext/ItalianStemmer.java": "58fae6d2be188191c86fa408ef38c1d5b0f248e6",
- "lucene/analysis/common/src/java/org/tartarus/snowball/ext/KpStemmer.java": "949988e5a423da6f49c47d8a270c62b7d89a8af5",
"lucene/analysis/common/src/java/org/tartarus/snowball/ext/LithuanianStemmer.java": "1529609eab33d9aa9e6d3fc7256e7b0562fd626b",
- "lucene/analysis/common/src/java/org/tartarus/snowball/ext/LovinsStemmer.java": "0d733741a9bff766a07aea5725cb9bfb07511a4a",
"lucene/analysis/common/src/java/org/tartarus/snowball/ext/NepaliStemmer.java": "28f91d3aaa44e89e420e1e25fc2f70bf2189fd77",
"lucene/analysis/common/src/java/org/tartarus/snowball/ext/NorwegianStemmer.java": "c206634342849a72107703d8ea4e7bc33dcdb0c3",
"lucene/analysis/common/src/java/org/tartarus/snowball/ext/PorterStemmer.java": "f8dbfbcfa8a61ad2ebec2c5131d3d21d81239232",
diff --git a/lucene/analysis/common/src/java/org/tartarus/snowball/ext/KpStemmer.java b/lucene/analysis/common/src/java/org/tartarus/snowball/ext/KpStemmer.java
deleted file mode 100644
index 483e24cf10f..00000000000
--- a/lucene/analysis/common/src/java/org/tartarus/snowball/ext/KpStemmer.java
+++ /dev/null
@@ -1,1444 +0,0 @@
-// Generated by Snowball 2.2.0 - https://snowballstem.org/
-
-package org.tartarus.snowball.ext;
-
-import org.tartarus.snowball.Among;
-
-/**
- * This class implements the stemming algorithm defined by a snowball script.
- *
- * <p>Generated by Snowball 2.2.0 - https://snowballstem.org/
- */
-@SuppressWarnings("unused")
-public class KpStemmer extends org.tartarus.snowball.SnowballStemmer {
-
- private static final long serialVersionUID = 1L;
-
- private static final Among a_0[] = {
- new Among("nde", -1, 7),
- new Among("en", -1, 6),
- new Among("s", -1, 2),
- new Among("'s", 2, 1),
- new Among("es", 2, 4),
- new Among("ies", 4, 3),
- new Among("aus", 2, 5)
- };
-
- private static final Among a_1[] = {
- new Among("de", -1, 5),
- new Among("ge", -1, 2),
- new Among("ische", -1, 4),
- new Among("je", -1, 1),
- new Among("lijke", -1, 3),
- new Among("le", -1, 9),
- new Among("ene", -1, 10),
- new Among("re", -1, 8),
- new Among("se", -1, 7),
- new Among("te", -1, 6),
- new Among("ieve", -1, 11)
- };
-
- private static final Among a_2[] = {
- new Among("heid", -1, 3),
- new Among("fie", -1, 6),
- new Among("gie", -1, 7),
- new Among("atie", -1, 1),
- new Among("isme", -1, 2),
- new Among("ing", -1, 2),
- new Among("arij", -1, 5),
- new Among("erij", -1, 2),
- new Among("sel", -1, 3),
- new Among("rder", -1, 4),
- new Among("ster", -1, 3),
- new Among("iteit", -1, 2),
- new Among("dst", -1, 9),
- new Among("tst", -1, 8)
- };
-
- private static final Among a_3[] = {
- new Among("end", -1, 9),
- new Among("atief", -1, 2),
- new Among("erig", -1, 9),
- new Among("achtig", -1, 3),
- new Among("ioneel", -1, 1),
- new Among("baar", -1, 3),
- new Among("laar", -1, 5),
- new Among("naar", -1, 4),
- new Among("raar", -1, 6),
- new Among("eriger", -1, 9),
- new Among("achtiger", -1, 3),
- new Among("lijker", -1, 8),
- new Among("tant", -1, 7),
- new Among("erigst", -1, 9),
- new Among("achtigst", -1, 3),
- new Among("lijkst", -1, 8)
- };
-
- private static final Among a_4[] = {
- new Among("ig", -1, 1), new Among("iger", -1, 1), new Among("igst", -1, 1)
- };
-
- private static final Among a_5[] = {
- new Among("ft", -1, 2), new Among("kt", -1, 1), new Among("pt", -1, 3)
- };
-
- private static final Among a_6[] = {
- new Among("bb", -1, 1),
- new Among("cc", -1, 2),
- new Among("dd", -1, 3),
- new Among("ff", -1, 4),
- new Among("gg", -1, 5),
- new Among("hh", -1, 6),
- new Among("jj", -1, 7),
- new Among("kk", -1, 8),
- new Among("ll", -1, 9),
- new Among("mm", -1, 10),
- new Among("nn", -1, 11),
- new Among("pp", -1, 12),
- new Among("qq", -1, 13),
- new Among("rr", -1, 14),
- new Among("ss", -1, 15),
- new Among("tt", -1, 16),
- new Among("v", -1, 4),
- new Among("vv", 16, 17),
- new Among("ww", -1, 18),
- new Among("xx", -1, 19),
- new Among("z", -1, 15),
- new Among("zz", 20, 20)
- };
-
- private static final Among a_7[] = {new Among("d", -1, 1), new Among("t", -1, 2)};
-
- 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 java.lang.StringBuilder S_ch = new java.lang.StringBuilder();
-
- private boolean r_R1() {
- return I_p1 <= cursor;
- }
-
- private boolean r_R2() {
- return I_p2 <= cursor;
- }
-
- private boolean r_V() {
- int v_1 = limit - cursor;
- lab0:
- {
- int v_2 = limit - cursor;
- lab1:
- {
- if (!(in_grouping_b(g_v, 97, 121))) {
- break lab1;
- }
- break lab0;
- }
- cursor = limit - v_2;
- if (!(eq_s_b("ij"))) {
- return false;
- }
- }
- cursor = limit - v_1;
- return true;
- }
-
- private boolean r_VX() {
- int v_1 = limit - cursor;
- if (cursor <= limit_backward) {
- return false;
- }
- cursor--;
- lab0:
- {
- int v_2 = limit - cursor;
- lab1:
- {
- if (!(in_grouping_b(g_v, 97, 121))) {
- break lab1;
- }
- break lab0;
- }
- cursor = limit - v_2;
- if (!(eq_s_b("ij"))) {
- return false;
- }
- }
- cursor = limit - v_1;
- return true;
- }
-
- private boolean r_C() {
- int v_1 = limit - cursor;
- {
- int v_2 = limit - cursor;
- lab0:
- {
- if (!(eq_s_b("ij"))) {
- break lab0;
- }
- return 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 = limit - cursor;
- lab0:
- {
- if (!(out_grouping_b(g_v_WX, 97, 121))) {
- break lab0;
- }
- ket = cursor;
- lab1:
- {
- int v_2 = limit - cursor;
- lab2:
- {
- if (!(in_grouping_b(g_AOU, 97, 117))) {
- break lab2;
- }
- bra = cursor;
- int v_3 = limit - cursor;
- lab3:
- {
- int v_4 = limit - cursor;
- lab4:
- {
- if (!(out_grouping_b(g_v, 97, 121))) {
- break lab4;
- }
- break lab3;
- }
- cursor = limit - v_4;
- if (cursor > limit_backward) {
- break lab2;
- }
- }
- cursor = limit - v_3;
- break lab1;
- }
- cursor = limit - v_2;
- if (!(eq_s_b("e"))) {
- break lab0;
- }
- bra = cursor;
- int v_5 = limit - cursor;
- lab5:
- {
- int v_6 = limit - cursor;
- lab6:
- {
- if (!(out_grouping_b(g_v, 97, 121))) {
- break lab6;
- }
- break lab5;
- }
- cursor = limit - v_6;
- if (cursor > limit_backward) {
- break lab0;
- }
- }
- {
- int v_7 = limit - cursor;
- lab7:
- {
- if (!(in_grouping_b(g_AIOU, 97, 117))) {
- break lab7;
- }
- break lab0;
- }
- cursor = limit - v_7;
- }
- {
- int v_8 = limit - cursor;
- lab8:
- {
- 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;
- }
- cursor = limit - v_8;
- }
- cursor = limit - v_5;
- }
- slice_to(S_ch);
- {
- int c = cursor;
- insert(cursor, cursor, S_ch);
- cursor = c;
- }
- }
- cursor = limit - v_1;
- return true;
- }
-
- private boolean r_Step_1() {
- int among_var;
- ket = cursor;
- among_var = find_among_b(a_0);
- if (among_var == 0) {
- return false;
- }
- bra = cursor;
- switch (among_var) {
- case 1:
- slice_del();
- break;
- case 2:
- if (!r_R1()) {
- return false;
- }
- {
- int v_1 = limit - cursor;
- lab0:
- {
- if (!(eq_s_b("t"))) {
- break lab0;
- }
- if (!r_R1()) {
- break lab0;
- }
- return false;
- }
- cursor = limit - v_1;
- }
- if (!r_C()) {
- return false;
- }
- slice_del();
- break;
- case 3:
- if (!r_R1()) {
- return false;
- }
- slice_from("ie");
- break;
- case 4:
- lab1:
- {
- int v_2 = limit - cursor;
- lab2:
- {
- if (!(eq_s_b("ar"))) {
- break lab2;
- }
- if (!r_R1()) {
- break lab2;
- }
- if (!r_C()) {
- break lab2;
- }
- bra = cursor;
- slice_del();
- r_lengthen_V();
- break lab1;
- }
- cursor = limit - v_2;
- lab3:
- {
- if (!(eq_s_b("er"))) {
- break lab3;
- }
- if (!r_R1()) {
- break lab3;
- }
- if (!r_C()) {
- break lab3;
- }
- bra = cursor;
- slice_del();
- break lab1;
- }
- cursor = limit - v_2;
- if (!r_R1()) {
- return false;
- }
- if (!r_C()) {
- return false;
- }
- slice_from("e");
- }
- break;
- case 5:
- if (!r_R1()) {
- return false;
- }
- if (!r_V()) {
- return false;
- }
- slice_from("au");
- break;
- case 6:
- lab4:
- {
- int v_3 = limit - cursor;
- lab5:
- {
- if (!(eq_s_b("hed"))) {
- break lab5;
- }
- if (!r_R1()) {
- break lab5;
- }
- bra = cursor;
- slice_from("heid");
- break lab4;
- }
- cursor = limit - v_3;
- lab6:
- {
- if (!(eq_s_b("nd"))) {
- break lab6;
- }
- slice_del();
- break lab4;
- }
- cursor = limit - v_3;
- lab7:
- {
- if (!(eq_s_b("d"))) {
- break lab7;
- }
- if (!r_R1()) {
- break lab7;
- }
- if (!r_C()) {
- break lab7;
- }
- bra = cursor;
- slice_del();
- break lab4;
- }
- cursor = limit - v_3;
- lab8:
- {
- lab9:
- {
- int v_4 = limit - cursor;
- lab10:
- {
- if (!(eq_s_b("i"))) {
- break lab10;
- }
- break lab9;
- }
- cursor = limit - v_4;
- if (!(eq_s_b("j"))) {
- break lab8;
- }
- }
- if (!r_V()) {
- break lab8;
- }
- slice_del();
- break lab4;
- }
- cursor = limit - v_3;
- if (!r_R1()) {
- return false;
- }
- if (!r_C()) {
- return false;
- }
- slice_del();
- r_lengthen_V();
- }
- break;
- case 7:
- slice_from("nd");
- break;
- }
- return true;
- }
-
- private boolean r_Step_2() {
- int among_var;
- ket = cursor;
- among_var = find_among_b(a_1);
- if (among_var == 0) {
- return false;
- }
- bra = cursor;
- switch (among_var) {
- case 1:
- lab0:
- {
- int v_1 = limit - cursor;
- lab1:
- {
- if (!(eq_s_b("'t"))) {
- break lab1;
- }
- bra = cursor;
- slice_del();
- break lab0;
- }
- cursor = limit - v_1;
- lab2:
- {
- if (!(eq_s_b("et"))) {
- break lab2;
- }
- bra = cursor;
- if (!r_R1()) {
- break lab2;
- }
- if (!r_C()) {
- break lab2;
- }
- slice_del();
- break lab0;
- }
- cursor = limit - v_1;
- lab3:
- {
- if (!(eq_s_b("rnt"))) {
- break lab3;
- }
- bra = cursor;
- slice_from("rn");
- break lab0;
- }
- cursor = limit - v_1;
- lab4:
- {
- if (!(eq_s_b("t"))) {
- break lab4;
- }
- bra = cursor;
- if (!r_R1()) {
- break lab4;
- }
- if (!r_VX()) {
- break lab4;
- }
- slice_del();
- break lab0;
- }
- cursor = limit - v_1;
- lab5:
- {
- if (!(eq_s_b("ink"))) {
- break lab5;
- }
- bra = cursor;
- slice_from("ing");
- break lab0;
- }
- cursor = limit - v_1;
- lab6:
- {
- if (!(eq_s_b("mp"))) {
- break lab6;
- }
- bra = cursor;
- slice_from("m");
- break lab0;
- }
- cursor = limit - v_1;
- lab7:
- {
- if (!(eq_s_b("'"))) {
- break lab7;
- }
- bra = cursor;
- if (!r_R1()) {
- break lab7;
- }
- slice_del();
- break lab0;
- }
- cursor = limit - v_1;
- bra = cursor;
- if (!r_R1()) {
- return false;
- }
- if (!r_C()) {
- return false;
- }
- slice_del();
- }
- break;
- case 2:
- if (!r_R1()) {
- return false;
- }
- slice_from("g");
- break;
- case 3:
- if (!r_R1()) {
- return false;
- }
- slice_from("lijk");
- break;
- case 4:
- if (!r_R1()) {
- return false;
- }
- slice_from("isch");
- break;
- case 5:
- if (!r_R1()) {
- return false;
- }
- if (!r_C()) {
- return false;
- }
- slice_del();
- break;
- case 6:
- if (!r_R1()) {
- return false;
- }
- slice_from("t");
- break;
- case 7:
- if (!r_R1()) {
- return false;
- }
- slice_from("s");
- break;
- case 8:
- if (!r_R1()) {
- return false;
- }
- slice_from("r");
- break;
- case 9:
- if (!r_R1()) {
- return false;
- }
- slice_del();
- insert(cursor, cursor, "l");
- r_lengthen_V();
- break;
- case 10:
- if (!r_R1()) {
- return false;
- }
- if (!r_C()) {
- return false;
- }
- slice_del();
- insert(cursor, cursor, "en");
- r_lengthen_V();
- break;
- case 11:
- if (!r_R1()) {
- return false;
- }
- if (!r_C()) {
- return false;
- }
- slice_from("ief");
- break;
- }
- return true;
- }
-
- private boolean r_Step_3() {
- int among_var;
- ket = cursor;
- among_var = find_among_b(a_2);
- if (among_var == 0) {
- return false;
- }
- bra = cursor;
- switch (among_var) {
- case 1:
- if (!r_R1()) {
- return false;
- }
- slice_from("eer");
- break;
- case 2:
- if (!r_R1()) {
- return false;
- }
- slice_del();
- r_lengthen_V();
- break;
- case 3:
- if (!r_R1()) {
- return false;
- }
- slice_del();
- break;
- case 4:
- slice_from("r");
- break;
- case 5:
- if (!r_R1()) {
- return false;
- }
- if (!r_C()) {
- return false;
- }
- slice_from("aar");
- break;
- case 6:
- if (!r_R2()) {
- return false;
- }
- slice_del();
- insert(cursor, cursor, "f");
- r_lengthen_V();
- break;
- case 7:
- if (!r_R2()) {
- return false;
- }
- slice_del();
- insert(cursor, cursor, "g");
- r_lengthen_V();
- break;
- case 8:
- if (!r_R1()) {
- return false;
- }
- if (!r_C()) {
- return false;
- }
- slice_from("t");
- break;
- case 9:
- if (!r_R1()) {
- return false;
- }
- if (!r_C()) {
- return false;
- }
- slice_from("d");
- break;
- }
- return true;
- }
-
- private boolean r_Step_4() {
- int among_var;
- lab0:
- {
- int v_1 = limit - cursor;
- lab1:
- {
- ket = cursor;
- among_var = find_among_b(a_3);
- if (among_var == 0) {
- break lab1;
- }
- bra = cursor;
- switch (among_var) {
- case 1:
- if (!r_R1()) {
- break lab1;
- }
- slice_from("ie");
- break;
- case 2:
- if (!r_R1()) {
- break lab1;
- }
- slice_from("eer");
- break;
- case 3:
- if (!r_R1()) {
- break lab1;
- }
- slice_del();
- break;
- case 4:
- if (!r_R1()) {
- break lab1;
- }
- if (!r_V()) {
- break lab1;
- }
- slice_from("n");
- break;
- case 5:
- if (!r_R1()) {
- break lab1;
- }
- if (!r_V()) {
- break lab1;
- }
- slice_from("l");
- break;
- case 6:
- if (!r_R1()) {
- break lab1;
- }
- if (!r_V()) {
- break lab1;
- }
- slice_from("r");
- break;
- case 7:
- if (!r_R1()) {
- break lab1;
- }
- slice_from("teer");
- break;
- case 8:
- if (!r_R1()) {
- break lab1;
- }
- slice_from("lijk");
- break;
- case 9:
- if (!r_R1()) {
- break lab1;
- }
- if (!r_C()) {
- break lab1;
- }
- slice_del();
- r_lengthen_V();
- break;
- }
- break lab0;
- }
- cursor = limit - v_1;
- ket = cursor;
- if (find_among_b(a_4) == 0) {
- return false;
- }
- bra = cursor;
- if (!r_R1()) {
- return false;
- }
- if (!r_C()) {
- return false;
- }
- slice_del();
- r_lengthen_V();
- }
- return true;
- }
-
- private boolean r_Step_7() {
- int among_var;
- ket = cursor;
- among_var = find_among_b(a_5);
- if (among_var == 0) {
- return false;
- }
- bra = cursor;
- switch (among_var) {
- case 1:
- slice_from("k");
- break;
- case 2:
- slice_from("f");
- break;
- case 3:
- slice_from("p");
- break;
- }
- return true;
- }
-
- private boolean r_Step_6() {
- int among_var;
- ket = cursor;
- among_var = find_among_b(a_6);
- if (among_var == 0) {
- return false;
- }
- bra = cursor;
- switch (among_var) {
- case 1:
- slice_from("b");
- break;
- case 2:
- slice_from("c");
- break;
- case 3:
- slice_from("d");
- break;
- case 4:
- slice_from("f");
- break;
- case 5:
- slice_from("g");
- break;
- case 6:
- slice_from("h");
- break;
- case 7:
- slice_from("j");
- break;
- case 8:
- slice_from("k");
- break;
- case 9:
- slice_from("l");
- break;
- case 10:
- slice_from("m");
- break;
- case 11:
- slice_from("n");
- break;
- case 12:
- slice_from("p");
- break;
- case 13:
- slice_from("q");
- break;
- case 14:
- slice_from("r");
- break;
- case 15:
- slice_from("s");
- break;
- case 16:
- slice_from("t");
- break;
- case 17:
- slice_from("v");
- break;
- case 18:
- slice_from("w");
- break;
- case 19:
- slice_from("x");
- break;
- case 20:
- slice_from("z");
- break;
- }
- return true;
- }
-
- private boolean r_Step_1c() {
- int among_var;
- ket = cursor;
- among_var = find_among_b(a_7);
- if (among_var == 0) {
- return false;
- }
- bra = cursor;
- if (!r_R1()) {
- return false;
- }
- if (!r_C()) {
- return false;
- }
- switch (among_var) {
- case 1:
- {
- int v_1 = limit - cursor;
- lab0:
- {
- if (!(eq_s_b("n"))) {
- break lab0;
- }
- if (!r_R1()) {
- break lab0;
- }
- return false;
- }
- cursor = limit - v_1;
- }
- slice_del();
- break;
- case 2:
- {
- int v_2 = limit - cursor;
- lab1:
- {
- if (!(eq_s_b("h"))) {
- break lab1;
- }
- if (!r_R1()) {
- break lab1;
- }
- return false;
- }
- cursor = limit - v_2;
- }
- slice_del();
- break;
- }
- return true;
- }
-
- private boolean r_Lose_prefix() {
- bra = cursor;
- if (!(eq_s("ge"))) {
- return false;
- }
- ket = cursor;
- int v_1 = cursor;
- {
- int c = cursor + 3;
- if (c > limit) {
- return false;
- }
- cursor = c;
- }
- cursor = v_1;
- golab0:
- while (true) {
- int v_2 = cursor;
- lab1:
- {
- if (!(in_grouping(g_v, 97, 121))) {
- break lab1;
- }
- cursor = v_2;
- break golab0;
- }
- cursor = v_2;
- if (cursor >= limit) {
- return false;
- }
- cursor++;
- }
- golab2:
- while (true) {
- int v_3 = cursor;
- lab3:
- {
- if (!(out_grouping(g_v, 97, 121))) {
- break lab3;
- }
- cursor = v_3;
- break golab2;
- }
- cursor = v_3;
- if (cursor >= limit) {
- return false;
- }
- cursor++;
- }
- B_GE_removed = true;
- slice_del();
- return true;
- }
-
- private boolean r_Lose_infix() {
- if (cursor >= limit) {
- return false;
- }
- cursor++;
- golab0:
- while (true) {
- lab1:
- {
- bra = cursor;
- if (!(eq_s("ge"))) {
- break lab1;
- }
- ket = cursor;
- break golab0;
- }
- if (cursor >= limit) {
- return false;
- }
- cursor++;
- }
- int v_2 = cursor;
- {
- int c = cursor + 3;
- if (c > limit) {
- return false;
- }
- cursor = c;
- }
- cursor = v_2;
- golab2:
- while (true) {
- int v_3 = cursor;
- lab3:
- {
- if (!(in_grouping(g_v, 97, 121))) {
- break lab3;
- }
- cursor = v_3;
- break golab2;
- }
- cursor = v_3;
- if (cursor >= limit) {
- return false;
- }
- cursor++;
- }
- golab4:
- while (true) {
- int v_4 = cursor;
- lab5:
- {
- if (!(out_grouping(g_v, 97, 121))) {
- break lab5;
- }
- cursor = v_4;
- break golab4;
- }
- cursor = v_4;
- if (cursor >= limit) {
- return false;
- }
- cursor++;
- }
- B_GE_removed = true;
- slice_del();
- return true;
- }
-
- private boolean r_measure() {
- I_p1 = limit;
- I_p2 = limit;
- int v_1 = cursor;
- lab0:
- {
- while (true) {
- lab1:
- {
- if (!(out_grouping(g_v, 97, 121))) {
- break lab1;
- }
- continue;
- }
- break;
- }
- {
- int v_3 = 1;
- while (true) {
- int v_4 = cursor;
- lab2:
- {
- lab3:
- {
- int v_5 = cursor;
- lab4:
- {
- if (!(eq_s("ij"))) {
- break lab4;
- }
- break lab3;
- }
- cursor = v_5;
- if (!(in_grouping(g_v, 97, 121))) {
- break lab2;
- }
- }
- v_3--;
- continue;
- }
- cursor = v_4;
- break;
- }
- if (v_3 > 0) {
- break lab0;
- }
- }
- if (!(out_grouping(g_v, 97, 121))) {
- break lab0;
- }
- I_p1 = cursor;
- while (true) {
- lab5:
- {
- if (!(out_grouping(g_v, 97, 121))) {
- break lab5;
- }
- continue;
- }
- break;
- }
- {
- int v_7 = 1;
- while (true) {
- int v_8 = cursor;
- lab6:
- {
- lab7:
- {
- int v_9 = cursor;
- lab8:
- {
- if (!(eq_s("ij"))) {
- break lab8;
- }
- break lab7;
- }
- cursor = v_9;
- if (!(in_grouping(g_v, 97, 121))) {
- break lab6;
- }
- }
- v_7--;
- continue;
- }
- cursor = v_8;
- break;
- }
- if (v_7 > 0) {
- break lab0;
- }
- }
- if (!(out_grouping(g_v, 97, 121))) {
- break lab0;
- }
- I_p2 = cursor;
- }
- cursor = v_1;
- return true;
- }
-
- @Override
- public boolean stem() {
- B_Y_found = false;
- B_stemmed = false;
- int v_1 = cursor;
- lab0:
- {
- bra = cursor;
- if (!(eq_s("y"))) {
- break lab0;
- }
- ket = cursor;
- slice_from("Y");
- B_Y_found = true;
- }
- cursor = v_1;
- int v_2 = cursor;
- lab1:
- {
- while (true) {
- int v_3 = cursor;
- lab2:
- {
- golab3:
- while (true) {
- int v_4 = cursor;
- lab4:
- {
- if (!(in_grouping(g_v, 97, 121))) {
- break lab4;
- }
- bra = cursor;
- if (!(eq_s("y"))) {
- break lab4;
- }
- ket = cursor;
- cursor = v_4;
- break golab3;
- }
- cursor = v_4;
- if (cursor >= limit) {
- break lab2;
- }
- cursor++;
- }
- slice_from("Y");
- B_Y_found = true;
- continue;
- }
- cursor = v_3;
- break;
- }
- }
- cursor = v_2;
- r_measure();
- limit_backward = cursor;
- cursor = limit;
- int v_5 = limit - cursor;
- lab5:
- {
- if (!r_Step_1()) {
- break lab5;
- }
- B_stemmed = true;
- }
- cursor = limit - v_5;
- int v_6 = limit - cursor;
- lab6:
- {
- if (!r_Step_2()) {
- break lab6;
- }
- B_stemmed = true;
- }
- cursor = limit - v_6;
- int v_7 = limit - cursor;
- lab7:
- {
- if (!r_Step_3()) {
- break lab7;
- }
- B_stemmed = true;
- }
- cursor = limit - v_7;
- int v_8 = limit - cursor;
- lab8:
- {
- if (!r_Step_4()) {
- break lab8;
- }
- B_stemmed = true;
- }
- cursor = limit - v_8;
- cursor = limit_backward;
- B_GE_removed = false;
- int v_9 = cursor;
- lab9:
- {
- int v_10 = cursor;
- if (!r_Lose_prefix()) {
- break lab9;
- }
- cursor = v_10;
- r_measure();
- }
- cursor = v_9;
- limit_backward = cursor;
- cursor = limit;
- int v_11 = limit - cursor;
- lab10:
- {
- if (!(B_GE_removed)) {
- break lab10;
- }
- if (!r_Step_1c()) {
- break lab10;
- }
- }
- cursor = limit - v_11;
- cursor = limit_backward;
- B_GE_removed = false;
- int v_12 = cursor;
- lab11:
- {
- int v_13 = cursor;
- if (!r_Lose_infix()) {
- break lab11;
- }
- cursor = v_13;
- r_measure();
- }
- cursor = v_12;
- limit_backward = cursor;
- cursor = limit;
- int v_14 = limit - cursor;
- lab12:
- {
- if (!(B_GE_removed)) {
- break lab12;
- }
- if (!r_Step_1c()) {
- break lab12;
- }
- }
- cursor = limit - v_14;
- cursor = limit_backward;
- limit_backward = cursor;
- cursor = limit;
- int v_15 = limit - cursor;
- lab13:
- {
- if (!r_Step_7()) {
- break lab13;
- }
- B_stemmed = true;
- }
- cursor = limit - v_15;
- int v_16 = limit - cursor;
- lab14:
- {
- lab15:
- {
- lab16:
- {
- if (!(B_stemmed)) {
- break lab16;
- }
- break lab15;
- }
- if (!(B_GE_removed)) {
- break lab14;
- }
- }
- if (!r_Step_6()) {
- break lab14;
- }
- }
- cursor = limit - v_16;
- cursor = limit_backward;
- int v_18 = cursor;
- lab17:
- {
- if (!(B_Y_found)) {
- break lab17;
- }
- while (true) {
- int v_19 = cursor;
- lab18:
- {
- golab19:
- while (true) {
- int v_20 = cursor;
- lab20:
- {
- bra = cursor;
- if (!(eq_s("Y"))) {
- break lab20;
- }
- ket = cursor;
- cursor = v_20;
- break golab19;
- }
- cursor = v_20;
- if (cursor >= limit) {
- break lab18;
- }
- cursor++;
- }
- slice_from("y");
- continue;
- }
- cursor = v_19;
- break;
- }
- }
- cursor = v_18;
- return true;
- }
-
- @Override
- public boolean equals(Object o) {
- return o instanceof KpStemmer;
- }
-
- @Override
- public int hashCode() {
- return KpStemmer.class.getName().hashCode();
- }
-}
diff --git a/lucene/analysis/common/src/java/org/tartarus/snowball/ext/LovinsStemmer.java b/lucene/analysis/common/src/java/org/tartarus/snowball/ext/LovinsStemmer.java
deleted file mode 100644
index c0b785c6cdb..00000000000
--- a/lucene/analysis/common/src/java/org/tartarus/snowball/ext/LovinsStemmer.java
+++ /dev/null
@@ -1,1487 +0,0 @@
-// Generated by Snowball 2.2.0 - https://snowballstem.org/
-
-package org.tartarus.snowball.ext;
-
-import org.tartarus.snowball.Among;
-
-/**
- * This class implements the stemming algorithm defined by a snowball script.
- *
- * <p>Generated by Snowball 2.2.0 - https://snowballstem.org/
- */
-@SuppressWarnings("unused")
-public class LovinsStemmer extends org.tartarus.snowball.SnowballStemmer {
-
- private static final long serialVersionUID = 1L;
- private static final java.lang.invoke.MethodHandles.Lookup methodObject =
- java.lang.invoke.MethodHandles.lookup();
-
- private static final Among a_0[] = {
- new Among("d", -1, -1),
- new Among("f", -1, -1),
- new Among("ph", -1, -1),
- new Among("th", -1, -1),
- new Among("l", -1, -1),
- new Among("er", -1, -1),
- new Among("or", -1, -1),
- new Among("es", -1, -1),
- new Among("t", -1, -1)
- };
-
- private static final Among a_1[] = {
- new Among("s'", -1, 1, "r_A", methodObject),
- new Among("a", -1, 1, "r_A", methodObject),
- new Among("ia", 1, 1, "r_A", methodObject),
- new Among("ata", 1, 1, "r_A", methodObject),
- new Among("ic", -1, 1, "r_A", methodObject),
- new Among("aic", 4, 1, "r_A", methodObject),
- new Among("allic", 4, 1, "r_BB", methodObject),
- new Among("aric", 4, 1, "r_A", methodObject),
- new Among("atic", 4, 1, "r_B", methodObject),
- new Among("itic", 4, 1, "r_H", methodObject),
- new Among("antic", 4, 1, "r_C", methodObject),
- new Among("istic", 4, 1, "r_A", methodObject),
- new Among("alistic", 11, 1, "r_B", methodObject),
- new Among("aristic", 11, 1, "r_A", methodObject),
- new Among("ivistic", 11, 1, "r_A", methodObject),
- new Among("ed", -1, 1, "r_E", methodObject),
- new Among("anced", 15, 1, "r_B", methodObject),
- new Among("enced", 15, 1, "r_A", methodObject),
- new Among("ished", 15, 1, "r_A", methodObject),
- new Among("ied", 15, 1, "r_A", methodObject),
- new Among("ened", 15, 1, "r_E", methodObject),
- new Among("ioned", 15, 1, "r_A", methodObject),
- new Among("ated", 15, 1, "r_I", methodObject),
- new Among("ented", 15, 1, "r_C", methodObject),
- new Among("ized", 15, 1, "r_F", methodObject),
- new Among("arized", 24, 1, "r_A", methodObject),
- new Among("oid", -1, 1, "r_A", methodObject),
- new Among("aroid", 26, 1, "r_A", methodObject),
- new Among("hood", -1, 1, "r_A", methodObject),
- new Among("ehood", 28, 1, "r_A", methodObject),
- new Among("ihood", 28, 1, "r_A", methodObject),
- new Among("elihood", 30, 1, "r_E", methodObject),
- new Among("ward", -1, 1, "r_A", methodObject),
- new Among("e", -1, 1, "r_A", methodObject),
- new Among("ae", 33, 1, "r_A", methodObject),
- new Among("ance", 33, 1, "r_B", methodObject),
- new Among("icance", 35, 1, "r_A", methodObject),
- new Among("ence", 33, 1, "r_A", methodObject),
- new Among("ide", 33, 1, "r_L", methodObject),
- new Among("icide", 38, 1, "r_A", methodObject),
- new Among("otide", 38, 1, "r_A", methodObject),
- new Among("age", 33, 1, "r_B", methodObject),
- new Among("able", 33, 1, "r_A", methodObject),
- new Among("atable", 42, 1, "r_A", methodObject),
- new Among("izable", 42, 1, "r_E", methodObject),
- new Among("arizable", 44, 1, "r_A", methodObject),
- new Among("ible", 33, 1, "r_A", methodObject),
- new Among("encible", 46, 1, "r_A", methodObject),
- new Among("ene", 33, 1, "r_E", methodObject),
- new Among("ine", 33, 1, "r_M", methodObject),
- new Among("idine", 49, 1, "r_I", methodObject),
- new Among("one", 33, 1, "r_R", methodObject),
- new Among("ature", 33, 1, "r_E", methodObject),
- new Among("eature", 52, 1, "r_Z", methodObject),
- new Among("ese", 33, 1, "r_A", methodObject),
- new Among("wise", 33, 1, "r_A", methodObject),
- new Among("ate", 33, 1, "r_A", methodObject),
- new Among("entiate", 56, 1, "r_A", methodObject),
- new Among("inate", 56, 1, "r_A", methodObject),
- new Among("ionate", 56, 1, "r_D", methodObject),
- new Among("ite", 33, 1, "r_AA", methodObject),
- new Among("ive", 33, 1, "r_A", methodObject),
- new Among("ative", 61, 1, "r_A", methodObject),
- new Among("ize", 33, 1, "r_F", methodObject),
- new Among("alize", 63, 1, "r_A", methodObject),
- new Among("icalize", 64, 1, "r_A", methodObject),
- new Among("ialize", 64, 1, "r_A", methodObject),
- new Among("entialize", 66, 1, "r_A", methodObject),
- new Among("ionalize", 64, 1, "r_A", methodObject),
- new Among("arize", 63, 1, "r_A", methodObject),
- new Among("ing", -1, 1, "r_N", methodObject),
- new Among("ancing", 70, 1, "r_B", methodObject),
- new Among("encing", 70, 1, "r_A", methodObject),
- new Among("aging", 70, 1, "r_B", methodObject),
- new Among("ening", 70, 1, "r_E", methodObject),
- new Among("ioning", 70, 1, "r_A", methodObject),
- new Among("ating", 70, 1, "r_I", methodObject),
- new Among("enting", 70, 1, "r_C", methodObject),
- new Among("ying", 70, 1, "r_B", methodObject),
- new Among("izing", 70, 1, "r_F", methodObject),
- new Among("arizing", 79, 1, "r_A", methodObject),
- new Among("ish", -1, 1, "r_C", methodObject),
- new Among("yish", 81, 1, "r_A", methodObject),
- new Among("i", -1, 1, "r_A", methodObject),
- new Among("al", -1, 1, "r_BB", methodObject),
- new Among("ical", 84, 1, "r_A", methodObject),
- new Among("aical", 85, 1, "r_A", methodObject),
- new Among("istical", 85, 1, "r_A", methodObject),
- new Among("oidal", 84, 1, "r_A", methodObject),
- new Among("eal", 84, 1, "r_Y", methodObject),
- new Among("ial", 84, 1, "r_A", methodObject),
- new Among("ancial", 90, 1, "r_A", methodObject),
- new Among("arial", 90, 1, "r_A", methodObject),
- new Among("ential", 90, 1, "r_A", methodObject),
- new Among("ional", 84, 1, "r_A", methodObject),
- new Among("ational", 94, 1, "r_B", methodObject),
- new Among("izational", 95, 1, "r_A", methodObject),
- new Among("ental", 84, 1, "r_A", methodObject),
- new Among("ful", -1, 1, "r_A", methodObject),
- new Among("eful", 98, 1, "r_A", methodObject),
- new Among("iful", 98, 1, "r_A", methodObject),
- new Among("yl", -1, 1, "r_R", methodObject),
- new Among("ism", -1, 1, "r_B", methodObject),
- new Among("icism", 102, 1, "r_A", methodObject),
- new Among("oidism", 102, 1, "r_A", methodObject),
- new Among("alism", 102, 1, "r_B", methodObject),
- new Among("icalism", 105, 1, "r_A", methodObject),
- new Among("ionalism", 105, 1, "r_A", methodObject),
- new Among("inism", 102, 1, "r_J", methodObject),
- new Among("ativism", 102, 1, "r_A", methodObject),
- new Among("um", -1, 1, "r_U", methodObject),
- new Among("ium", 110, 1, "r_A", methodObject),
- new Among("ian", -1, 1, "r_A", methodObject),
- new Among("ician", 112, 1, "r_A", methodObject),
- new Among("en", -1, 1, "r_F", methodObject),
- new Among("ogen", 114, 1, "r_A", methodObject),
- new Among("on", -1, 1, "r_S", methodObject),
- new Among("ion", 116, 1, "r_Q", methodObject),
- new Among("ation", 117, 1, "r_B", methodObject),
- new Among("ication", 118, 1, "r_G", methodObject),
- new Among("entiation", 118, 1, "r_A", methodObject),
- new Among("ination", 118, 1, "r_A", methodObject),
- new Among("isation", 118, 1, "r_A", methodObject),
- new Among("arisation", 122, 1, "r_A", methodObject),
- new Among("entation", 118, 1, "r_A", methodObject),
- new Among("ization", 118, 1, "r_F", methodObject),
- new Among("arization", 125, 1, "r_A", methodObject),
- new Among("action", 117, 1, "r_G", methodObject),
- new Among("o", -1, 1, "r_A", methodObject),
- new Among("ar", -1, 1, "r_X", methodObject),
- new Among("ear", 129, 1, "r_Y", methodObject),
- new Among("ier", -1, 1, "r_A", methodObject),
- new Among("ariser", -1, 1, "r_A", methodObject),
- new Among("izer", -1, 1, "r_F", methodObject),
- new Among("arizer", 133, 1, "r_A", methodObject),
- new Among("or", -1, 1, "r_T", methodObject),
- new Among("ator", 135, 1, "r_A", methodObject),
- new Among("s", -1, 1, "r_W", methodObject),
- new Among("'s", 137, 1, "r_A", methodObject),
- new Among("as", 137, 1, "r_B", methodObject),
- new Among("ics", 137, 1, "r_A", methodObject),
- new Among("istics", 140, 1, "r_A", methodObject),
- new Among("es", 137, 1, "r_E", methodObject),
- new Among("ances", 142, 1, "r_B", methodObject),
- new Among("ences", 142, 1, "r_A", methodObject),
- new Among("ides", 142, 1, "r_L", methodObject),
- new Among("oides", 145, 1, "r_A", methodObject),
- new Among("ages", 142, 1, "r_B", methodObject),
- new Among("ies", 142, 1, "r_P", methodObject),
- new Among("acies", 148, 1, "r_A", methodObject),
- new Among("ancies", 148, 1, "r_A", methodObject),
- new Among("encies", 148, 1, "r_A", methodObject),
- new Among("aries", 148, 1, "r_A", methodObject),
- new Among("ities", 148, 1, "r_A", methodObject),
- new Among("alities", 153, 1, "r_A", methodObject),
- new Among("ivities", 153, 1, "r_A", methodObject),
- new Among("ines", 142, 1, "r_M", methodObject),
- new Among("nesses", 142, 1, "r_A", methodObject),
- new Among("ates", 142, 1, "r_A", methodObject),
- new Among("atives", 142, 1, "r_A", methodObject),
- new Among("ings", 137, 1, "r_N", methodObject),
- new Among("is", 137, 1, "r_A", methodObject),
- new Among("als", 137, 1, "r_BB", methodObject),
- new Among("ials", 162, 1, "r_A", methodObject),
- new Among("entials", 163, 1, "r_A", methodObject),
- new Among("ionals", 162, 1, "r_A", methodObject),
- new Among("isms", 137, 1, "r_B", methodObject),
- new Among("ians", 137, 1, "r_A", methodObject),
- new Among("icians", 167, 1, "r_A", methodObject),
- new Among("ions", 137, 1, "r_B", methodObject),
- new Among("ations", 169, 1, "r_B", methodObject),
- new Among("arisations", 170, 1, "r_A", methodObject),
- new Among("entations", 170, 1, "r_A", methodObject),
- new Among("izations", 170, 1, "r_A", methodObject),
- new Among("arizations", 173, 1, "r_A", methodObject),
- new Among("ars", 137, 1, "r_O", methodObject),
- new Among("iers", 137, 1, "r_A", methodObject),
- new Among("izers", 137, 1, "r_F", methodObject),
- new Among("ators", 137, 1, "r_A", methodObject),
- new Among("less", 137, 1, "r_A", methodObject),
- new Among("eless", 179, 1, "r_A", methodObject),
- new Among("ness", 137, 1, "r_A", methodObject),
- new Among("eness", 181, 1, "r_E", methodObject),
- new Among("ableness", 182, 1, "r_A", methodObject),
- new Among("eableness", 183, 1, "r_E", methodObject),
- new Among("ibleness", 182, 1, "r_A", methodObject),
- new Among("ateness", 182, 1, "r_A", methodObject),
- new Among("iteness", 182, 1, "r_A", methodObject),
- new Among("iveness", 182, 1, "r_A", methodObject),
- new Among("ativeness", 188, 1, "r_A", methodObject),
- new Among("ingness", 181, 1, "r_A", methodObject),
- new Among("ishness", 181, 1, "r_A", methodObject),
- new Among("iness", 181, 1, "r_A", methodObject),
- new Among("ariness", 192, 1, "r_E", methodObject),
- new Among("alness", 181, 1, "r_A", methodObject),
- new Among("icalness", 194, 1, "r_A", methodObject),
- new Among("antialness", 194, 1, "r_A", methodObject),
- new Among("entialness", 194, 1, "r_A", methodObject),
- new Among("ionalness", 194, 1, "r_A", methodObject),
- new Among("fulness", 181, 1, "r_A", methodObject),
- new Among("lessness", 181, 1, "r_A", methodObject),
- new Among("ousness", 181, 1, "r_A", methodObject),
- new Among("eousness", 201, 1, "r_A", methodObject),
- new Among("iousness", 201, 1, "r_A", methodObject),
- new Among("itousness", 201, 1, "r_A", methodObject),
- new Among("entness", 181, 1, "r_A", methodObject),
- new Among("ants", 137, 1, "r_B", methodObject),
- new Among("ists", 137, 1, "r_A", methodObject),
- new Among("icists", 207, 1, "r_A", methodObject),
- new Among("us", 137, 1, "r_V", methodObject),
- new Among("ous", 209, 1, "r_A", methodObject),
- new Among("eous", 210, 1, "r_A", methodObject),
- new Among("aceous", 211, 1, "r_A", methodObject),
- new Among("antaneous", 211, 1, "r_A", methodObject),
- new Among("ious", 210, 1, "r_A", methodObject),
- new Among("acious", 214, 1, "r_B", methodObject),
- new Among("itous", 210, 1, "r_A", methodObject),
- new Among("ant", -1, 1, "r_B", methodObject),
- new Among("icant", 217, 1, "r_A", methodObject),
- new Among("ent", -1, 1, "r_C", methodObject),
- new Among("ement", 219, 1, "r_A", methodObject),
- new Among("izement", 220, 1, "r_A", methodObject),
- new Among("ist", -1, 1, "r_A", methodObject),
- new Among("icist", 222, 1, "r_A", methodObject),
- new Among("alist", 222, 1, "r_A", methodObject),
- new Among("icalist", 224, 1, "r_A", methodObject),
- new Among("ialist", 224, 1, "r_A", methodObject),
- new Among("ionist", 222, 1, "r_A", methodObject),
- new Among("entist", 222, 1, "r_A", methodObject),
- new Among("y", -1, 1, "r_B", methodObject),
- new Among("acy", 229, 1, "r_A", methodObject),
- new Among("ancy", 229, 1, "r_B", methodObject),
- new Among("ency", 229, 1, "r_A", methodObject),
- new Among("ly", 229, 1, "r_B", methodObject),
- new Among("ealy", 233, 1, "r_Y", methodObject),
- new Among("ably", 233, 1, "r_A", methodObject),
- new Among("ibly", 233, 1, "r_A", methodObject),
- new Among("edly", 233, 1, "r_E", methodObject),
- new Among("iedly", 237, 1, "r_A", methodObject),
- new Among("ely", 233, 1, "r_E", methodObject),
- new Among("ately", 239, 1, "r_A", methodObject),
- new Among("ively", 239, 1, "r_A", methodObject),
- new Among("atively", 241, 1, "r_A", methodObject),
- new Among("ingly", 233, 1, "r_B", methodObject),
- new Among("atingly", 243, 1, "r_A", methodObject),
- new Among("ily", 233, 1, "r_A", methodObject),
- new Among("lily", 245, 1, "r_A", methodObject),
- new Among("arily", 245, 1, "r_A", methodObject),
- new Among("ally", 233, 1, "r_B", methodObject),
- new Among("ically", 248, 1, "r_A", methodObject),
- new Among("aically", 249, 1, "r_A", methodObject),
- new Among("allically", 249, 1, "r_C", methodObject),
- new Among("istically", 249, 1, "r_A", methodObject),
- new Among("alistically", 252, 1, "r_B", methodObject),
- new Among("oidally", 248, 1, "r_A", methodObject),
- new Among("ially", 248, 1, "r_A", methodObject),
- new Among("entially", 255, 1, "r_A", methodObject),
- new Among("ionally", 248, 1, "r_A", methodObject),
- new Among("ationally", 257, 1, "r_B", methodObject),
- new Among("izationally", 258, 1, "r_B", methodObject),
- new Among("entally", 248, 1, "r_A", methodObject),
- new Among("fully", 233, 1, "r_A", methodObject),
- new Among("efully", 261, 1, "r_A", methodObject),
- new Among("ifully", 261, 1, "r_A", methodObject),
- new Among("enly", 233, 1, "r_E", methodObject),
- new Among("arly", 233, 1, "r_K", methodObject),
- new Among("early", 265, 1, "r_Y", methodObject),
- new Among("lessly", 233, 1, "r_A", methodObject),
- new Among("ously", 233, 1, "r_A", methodObject),
- new Among("eously", 268, 1, "r_A", methodObject),
- new Among("iously", 268, 1, "r_A", methodObject),
- new Among("ently", 233, 1, "r_A", methodObject),
- new Among("ary", 229, 1, "r_F", methodObject),
- new Among("ery", 229, 1, "r_E", methodObject),
- new Among("icianry", 229, 1, "r_A", methodObject),
- new Among("atory", 229, 1, "r_A", methodObject),
- new Among("ity", 229, 1, "r_A", methodObject),
- new Among("acity", 276, 1, "r_A", methodObject),
- new Among("icity", 276, 1, "r_A", methodObject),
- new Among("eity", 276, 1, "r_A", methodObject),
- new Among("ality", 276, 1, "r_A", methodObject),
- new Among("icality", 280, 1, "r_A", methodObject),
- new Among("iality", 280, 1, "r_A", methodObject),
- new Among("antiality", 282, 1, "r_A", methodObject),
- new Among("entiality", 282, 1, "r_A", methodObject),
- new Among("ionality", 280, 1, "r_A", methodObject),
- new Among("elity", 276, 1, "r_A", methodObject),
- new Among("ability", 276, 1, "r_A", methodObject),
- new Among("izability", 287, 1, "r_A", methodObject),
- new Among("arizability", 288, 1, "r_A", methodObject),
- new Among("ibility", 276, 1, "r_A", methodObject),
- new Among("inity", 276, 1, "r_CC", methodObject),
- new Among("arity", 276, 1, "r_B", methodObject),
- new Among("ivity", 276, 1, "r_A", methodObject)
- };
-
- private static final Among a_2[] = {
- new Among("bb", -1, -1),
- new Among("dd", -1, -1),
- new Among("gg", -1, -1),
- new Among("ll", -1, -1),
- new Among("mm", -1, -1),
- new Among("nn", -1, -1),
- new Among("pp", -1, -1),
- new Among("rr", -1, -1),
- new Among("ss", -1, -1),
- new Among("tt", -1, -1)
- };
-
- private static final Among a_3[] = {
- new Among("uad", -1, 18),
- new Among("vad", -1, 19),
- new Among("cid", -1, 20),
- new Among("lid", -1, 21),
- new Among("erid", -1, 22),
- new Among("pand", -1, 23),
- new Among("end", -1, 24),
- new Among("ond", -1, 25),
- new Among("lud", -1, 26),
- new Among("rud", -1, 27),
- new Among("ul", -1, 9),
- new Among("her", -1, 28),
- new Among("metr", -1, 7),
- new Among("istr", -1, 6),
- new Among("urs", -1, 5),
- new Among("uct", -1, 2),
- new Among("et", -1, 32),
- new Among("mit", -1, 29),
- new Among("ent", -1, 30),
- new Among("umpt", -1, 3),
- new Among("rpt", -1, 4),
- new Among("ert", -1, 31),
- new Among("yt", -1, 33),
- new Among("iev", -1, 1),
- new Among("olv", -1, 8),
- new Among("ax", -1, 14),
- new Among("ex", -1, 15),
- new Among("bex", 26, 10),
- new Among("dex", 26, 11),
- new Among("pex", 26, 12),
- new Among("tex", 26, 13),
- new Among("ix", -1, 16),
- new Among("lux", -1, 17),
- new Among("yz", -1, 33)
- };
-
- public boolean r_A() {
- {
- int c = cursor - 2;
- if (c < limit_backward) {
- return false;
- }
- cursor = c;
- }
- return true;
- }
-
- public boolean r_B() {
- {
- int c = cursor - 3;
- if (c < limit_backward) {
- return false;
- }
- cursor = c;
- }
- return true;
- }
-
- public boolean r_C() {
- {
- int c = cursor - 4;
- if (c < limit_backward) {
- return false;
- }
- cursor = c;
- }
- return true;
- }
-
- public boolean r_D() {
- {
- int c = cursor - 5;
- if (c < limit_backward) {
- return false;
- }
- cursor = c;
- }
- return true;
- }
-
- public boolean r_E() {
- int v_1 = limit - cursor;
- {
- int c = cursor - 2;
- if (c < limit_backward) {
- return false;
- }
- cursor = c;
- }
- cursor = limit - v_1;
- {
- int v_2 = limit - cursor;
- lab0:
- {
- if (!(eq_s_b("e"))) {
- break lab0;
- }
- return false;
- }
- cursor = limit - v_2;
- }
- return true;
- }
-
- public boolean r_F() {
- int v_1 = limit - cursor;
- {
- int c = cursor - 3;
- if (c < limit_backward) {
- return false;
- }
- cursor = c;
- }
- cursor = limit - v_1;
- {
- int v_2 = limit - cursor;
- lab0:
- {
- if (!(eq_s_b("e"))) {
- break lab0;
- }
- return false;
- }
- cursor = limit - v_2;
- }
- return true;
- }
-
- public boolean r_G() {
- int v_1 = limit - cursor;
- {
- int c = cursor - 3;
- if (c < limit_backward) {
- return false;
- }
- cursor = c;
- }
- cursor = limit - v_1;
- if (!(eq_s_b("f"))) {
- return false;
- }
- return true;
- }
-
- public boolean r_H() {
- int v_1 = limit - cursor;
- {
- int c = cursor - 2;
- if (c < limit_backward) {
- return false;
- }
- cursor = c;
- }
- cursor = limit - v_1;
- lab0:
- {
- int v_2 = limit - cursor;
- lab1:
- {
- if (!(eq_s_b("t"))) {
- break lab1;
- }
- break lab0;
- }
- cursor = limit - v_2;
- if (!(eq_s_b("ll"))) {
- return false;
- }
- }
- return true;
- }
-
- public boolean r_I() {
- int v_1 = limit - cursor;
- {
- int c = cursor - 2;
- if (c < limit_backward) {
- return false;
- }
- cursor = c;
- }
- cursor = limit - v_1;
- {
- int v_2 = limit - cursor;
- lab0:
- {
- if (!(eq_s_b("o"))) {
- break lab0;
- }
- return false;
- }
- cursor = limit - v_2;
- }
- {
- int v_3 = limit - cursor;
- lab1:
- {
- if (!(eq_s_b("e"))) {
- break lab1;
- }
- return false;
- }
- cursor = limit - v_3;
- }
- return true;
- }
-
- public boolean r_J() {
- int v_1 = limit - cursor;
- {
- int c = cursor - 2;
- if (c < limit_backward) {
- return false;
- }
- cursor = c;
- }
- cursor = limit - v_1;
- {
- int v_2 = limit - cursor;
- lab0:
- {
- if (!(eq_s_b("a"))) {
- break lab0;
- }
- return false;
- }
- cursor = limit - v_2;
- }
- {
- int v_3 = limit - cursor;
- lab1:
- {
- if (!(eq_s_b("e"))) {
- break lab1;
- }
- return false;
- }
- cursor = limit - v_3;
- }
- return true;
- }
-
- public boolean r_K() {
- int v_1 = limit - cursor;
- {
- int c = cursor - 3;
- if (c < limit_backward) {
- return false;
- }
- cursor = c;
- }
- cursor = limit - v_1;
- lab0:
- {
- int v_2 = limit - cursor;
- lab1:
- {
- if (!(eq_s_b("l"))) {
- break lab1;
- }
- break lab0;
- }
- cursor = limit - v_2;
- lab2:
- {
- if (!(eq_s_b("i"))) {
- break lab2;
- }
- break lab0;
- }
- cursor = limit - v_2;
- if (!(eq_s_b("e"))) {
- return false;
- }
- if (cursor <= limit_backward) {
- return false;
- }
- cursor--;
- if (!(eq_s_b("u"))) {
- return false;
- }
- }
- return true;
- }
-
- public boolean r_L() {
- int v_1 = limit - cursor;
- {
- int c = cursor - 2;
- if (c < limit_backward) {
- return false;
- }
- cursor = c;
- }
- cursor = limit - v_1;
- {
- int v_2 = limit - cursor;
- lab0:
- {
- if (!(eq_s_b("u"))) {
- break lab0;
- }
- return false;
- }
- cursor = limit - v_2;
- }
- {
- int v_3 = limit - cursor;
- lab1:
- {
- if (!(eq_s_b("x"))) {
- break lab1;
- }
- return false;
- }
- cursor = limit - v_3;
- }
- {
- int v_4 = limit - cursor;
- lab2:
- {
- if (!(eq_s_b("s"))) {
- break lab2;
- }
- {
- int v_5 = limit - cursor;
- lab3:
- {
- if (!(eq_s_b("o"))) {
- break lab3;
- }
- break lab2;
- }
- cursor = limit - v_5;
- }
- return false;
- }
- cursor = limit - v_4;
- }
- return true;
- }
-
- public boolean r_M() {
- int v_1 = limit - cursor;
- {
- int c = cursor - 2;
- if (c < limit_backward) {
- return false;
- }
- cursor = c;
- }
- cursor = limit - v_1;
- {
- int v_2 = limit - cursor;
- lab0:
- {
- if (!(eq_s_b("a"))) {
- break lab0;
- }
- return false;
- }
- cursor = limit - v_2;
- }
- {
- int v_3 = limit - cursor;
- lab1:
- {
- if (!(eq_s_b("c"))) {
- break lab1;
- }
- return false;
- }
- cursor = limit - v_3;
- }
- {
- int v_4 = limit - cursor;
- lab2:
- {
- if (!(eq_s_b("e"))) {
- break lab2;
- }
- return false;
- }
- cursor = limit - v_4;
- }
- {
- int v_5 = limit - cursor;
- lab3:
- {
- if (!(eq_s_b("m"))) {
- break lab3;
- }
- return false;
- }
- cursor = limit - v_5;
- }
- return true;
- }
-
- public boolean r_N() {
- int v_1 = limit - cursor;
- {
- int c = cursor - 3;
- if (c < limit_backward) {
- return false;
- }
- cursor = c;
- }
- cursor = limit - v_1;
- {
- int c = cursor - 2;
- if (c < limit_backward) {
- return false;
- }
- cursor = c;
- }
- lab0:
- {
- int v_2 = limit - cursor;
- lab1:
- {
- {
- int v_3 = limit - cursor;
- lab2:
- {
- if (!(eq_s_b("s"))) {
- break lab2;
- }
- break lab1;
- }
- cursor = limit - v_3;
- }
- break lab0;
- }
- cursor = limit - v_2;
- {
- int c = cursor - 2;
- if (c < limit_backward) {
- return false;
- }
- cursor = c;
- }
- }
- return true;
- }
-
- public boolean r_O() {
- int v_1 = limit - cursor;
- {
- int c = cursor - 2;
- if (c < limit_backward) {
- return false;
- }
- cursor = c;
- }
- cursor = limit - v_1;
- lab0:
- {
- int v_2 = limit - cursor;
- lab1:
- {
- if (!(eq_s_b("l"))) {
- break lab1;
- }
- break lab0;
- }
- cursor = limit - v_2;
- if (!(eq_s_b("i"))) {
- return false;
- }
- }
- return true;
- }
-
- public boolean r_P() {
- int v_1 = limit - cursor;
- {
- int c = cursor - 2;
- if (c < limit_backward) {
- return false;
- }
- cursor = c;
- }
- cursor = limit - v_1;
- {
- int v_2 = limit - cursor;
- lab0:
- {
- if (!(eq_s_b("c"))) {
- break lab0;
- }
- return false;
- }
- cursor = limit - v_2;
- }
- return true;
- }
-
- public boolean r_Q() {
- int v_1 = limit - cursor;
- {
- int c = cursor - 2;
- if (c < limit_backward) {
- return false;
- }
- cursor = c;
- }
- cursor = limit - v_1;
- int v_2 = limit - cursor;
- {
- int c = cursor - 3;
- if (c < limit_backward) {
- return false;
- }
- cursor = c;
- }
- cursor = limit - v_2;
- {
- int v_3 = limit - cursor;
- lab0:
- {
- if (!(eq_s_b("l"))) {
- break lab0;
- }
- return false;
- }
- cursor = limit - v_3;
- }
- {
- int v_4 = limit - cursor;
- lab1:
- {
- if (!(eq_s_b("n"))) {
- break lab1;
- }
- return false;
- }
- cursor = limit - v_4;
- }
- return true;
- }
-
- public boolean r_R() {
- int v_1 = limit - cursor;
- {
- int c = cursor - 2;
- if (c < limit_backward) {
- return false;
- }
- cursor = c;
- }
- cursor = limit - v_1;
- lab0:
- {
- int v_2 = limit - cursor;
- lab1:
- {
- if (!(eq_s_b("n"))) {
- break lab1;
- }
- break lab0;
- }
- cursor = limit - v_2;
- if (!(eq_s_b("r"))) {
- return false;
- }
- }
- return true;
- }
-
- public boolean r_S() {
- int v_1 = limit - cursor;
- {
- int c = cursor - 2;
- if (c < limit_backward) {
- return false;
- }
- cursor = c;
- }
- cursor = limit - v_1;
- lab0:
- {
- int v_2 = limit - cursor;
- lab1:
- {
- if (!(eq_s_b("dr"))) {
- break lab1;
- }
- break lab0;
- }
- cursor = limit - v_2;
- if (!(eq_s_b("t"))) {
- return false;
- }
- {
- int v_3 = limit - cursor;
- lab2:
- {
- if (!(eq_s_b("t"))) {
- break lab2;
- }
- return false;
- }
- cursor = limit - v_3;
- }
- }
- return true;
- }
-
- public boolean r_T() {
- int v_1 = limit - cursor;
- {
- int c = cursor - 2;
- if (c < limit_backward) {
- return false;
- }
- cursor = c;
- }
- cursor = limit - v_1;
- lab0:
- {
- int v_2 = limit - cursor;
- lab1:
- {
- if (!(eq_s_b("s"))) {
- break lab1;
- }
- break lab0;
- }
- cursor = limit - v_2;
- if (!(eq_s_b("t"))) {
- return false;
- }
- {
- int v_3 = limit - cursor;
- lab2:
- {
- if (!(eq_s_b("o"))) {
- break lab2;
- }
- return false;
- }
- cursor = limit - v_3;
- }
- }
- return true;
- }
-
- public boolean r_U() {
- int v_1 = limit - cursor;
- {
- int c = cursor - 2;
- if (c < limit_backward) {
- return false;
- }
- cursor = c;
- }
- cursor = limit - v_1;
- lab0:
- {
- int v_2 = limit - cursor;
- lab1:
- {
- if (!(eq_s_b("l"))) {
- break lab1;
- }
- break lab0;
- }
- cursor = limit - v_2;
- lab2:
- {
- if (!(eq_s_b("m"))) {
- break lab2;
- }
- break lab0;
- }
- cursor = limit - v_2;
- lab3:
- {
- if (!(eq_s_b("n"))) {
- break lab3;
- }
- break lab0;
- }
- cursor = limit - v_2;
- if (!(eq_s_b("r"))) {
- return false;
- }
- }
- return true;
- }
-
- public boolean r_V() {
- int v_1 = limit - cursor;
- {
- int c = cursor - 2;
- if (c < limit_backward) {
- return false;
- }
- cursor = c;
- }
- cursor = limit - v_1;
- if (!(eq_s_b("c"))) {
- return false;
- }
- return true;
- }
-
- public boolean r_W() {
- int v_1 = limit - cursor;
- {
- int c = cursor - 2;
- if (c < limit_backward) {
- return false;
- }
- cursor = c;
- }
- cursor = limit - v_1;
- {
- int v_2 = limit - cursor;
- lab0:
- {
- if (!(eq_s_b("s"))) {
- break lab0;
- }
- return false;
- }
- cursor = limit - v_2;
- }
- {
- int v_3 = limit - cursor;
- lab1:
- {
- if (!(eq_s_b("u"))) {
- break lab1;
- }
- return false;
- }
- cursor = limit - v_3;
- }
- return true;
- }
-
- public boolean r_X() {
- int v_1 = limit - cursor;
- {
- int c = cursor - 2;
- if (c < limit_backward) {
- return false;
- }
- cursor = c;
- }
- cursor = limit - v_1;
- lab0:
- {
- int v_2 = limit - cursor;
- lab1:
- {
- if (!(eq_s_b("l"))) {
- break lab1;
- }
- break lab0;
- }
- cursor = limit - v_2;
- lab2:
- {
- if (!(eq_s_b("i"))) {
- break lab2;
- }
- break lab0;
- }
- cursor = limit - v_2;
- if (!(eq_s_b("e"))) {
- return false;
- }
- if (cursor <= limit_backward) {
- return false;
- }
- cursor--;
- if (!(eq_s_b("u"))) {
- return false;
- }
- }
- return true;
- }
-
- public boolean r_Y() {
- int v_1 = limit - cursor;
- {
- int c = cursor - 2;
- if (c < limit_backward) {
- return false;
- }
- cursor = c;
- }
- cursor = limit - v_1;
- if (!(eq_s_b("in"))) {
- return false;
- }
- return true;
- }
-
- public boolean r_Z() {
- int v_1 = limit - cursor;
- {
- int c = cursor - 2;
- if (c < limit_backward) {
- return false;
- }
- cursor = c;
- }
- cursor = limit - v_1;
- {
- int v_2 = limit - cursor;
- lab0:
- {
- if (!(eq_s_b("f"))) {
- break lab0;
- }
- return false;
- }
- cursor = limit - v_2;
- }
- return true;
- }
-
- public boolean r_AA() {
- int v_1 = limit - cursor;
- {
- int c = cursor - 2;
- if (c < limit_backward) {
- return false;
- }
- cursor = c;
- }
- cursor = limit - v_1;
- if (find_among_b(a_0) == 0) {
- return false;
- }
- return true;
- }
-
- public boolean r_BB() {
- int v_1 = limit - cursor;
- {
- int c = cursor - 3;
- if (c < limit_backward) {
- return false;
- }
- cursor = c;
- }
- cursor = limit - v_1;
- {
- int v_2 = limit - cursor;
- lab0:
- {
- if (!(eq_s_b("met"))) {
- break lab0;
- }
- return false;
- }
- cursor = limit - v_2;
- }
- {
- int v_3 = limit - cursor;
- lab1:
- {
- if (!(eq_s_b("ryst"))) {
- break lab1;
- }
- return false;
- }
- cursor = limit - v_3;
- }
- return true;
- }
-
- public boolean r_CC() {
- int v_1 = limit - cursor;
- {
- int c = cursor - 2;
- if (c < limit_backward) {
- return false;
- }
- cursor = c;
- }
- cursor = limit - v_1;
- if (!(eq_s_b("l"))) {
- return false;
- }
- return true;
- }
-
- private boolean r_endings() {
- ket = cursor;
- if (find_among_b(a_1) == 0) {
- return false;
- }
- bra = cursor;
- slice_del();
- return true;
- }
-
- private boolean r_undouble() {
- int v_1 = limit - cursor;
- if (find_among_b(a_2) == 0) {
- return false;
- }
- cursor = limit - v_1;
- ket = cursor;
- if (cursor <= limit_backward) {
- return false;
- }
- cursor--;
- bra = cursor;
- slice_del();
- return true;
- }
-
- private boolean r_respell() {
- int among_var;
- ket = cursor;
- among_var = find_among_b(a_3);
- if (among_var == 0) {
- return false;
- }
- bra = cursor;
- switch (among_var) {
- case 1:
- slice_from("ief");
- break;
- case 2:
- slice_from("uc");
- break;
- case 3:
- slice_from("um");
- break;
- case 4:
- slice_from("rb");
- break;
- case 5:
- slice_from("ur");
- break;
- case 6:
- slice_from("ister");
- break;
- case 7:
- slice_from("meter");
- break;
- case 8:
- slice_from("olut");
- break;
- case 9:
- {
- int v_1 = limit - cursor;
- lab0:
- {
- if (!(eq_s_b("a"))) {
- break lab0;
- }
- return false;
- }
- cursor = limit - v_1;
- }
- {
- int v_2 = limit - cursor;
- lab1:
- {
- if (!(eq_s_b("i"))) {
- break lab1;
- }
- return false;
- }
- cursor = limit - v_2;
- }
- {
- int v_3 = limit - cursor;
- lab2:
- {
- if (!(eq_s_b("o"))) {
- break lab2;
- }
- return false;
- }
- cursor = limit - v_3;
- }
- slice_from("l");
- break;
- case 10:
- slice_from("bic");
- break;
- case 11:
- slice_from("dic");
- break;
- case 12:
- slice_from("pic");
- break;
- case 13:
- slice_from("tic");
- break;
- case 14:
- slice_from("ac");
- break;
- case 15:
- slice_from("ec");
- break;
- case 16:
- slice_from("ic");
- break;
- case 17:
- slice_from("luc");
- break;
- case 18:
- slice_from("uas");
- break;
- case 19:
- slice_from("vas");
- break;
- case 20:
- slice_from("cis");
- break;
- case 21:
- slice_from("lis");
- break;
- case 22:
- slice_from("eris");
- break;
- case 23:
- slice_from("pans");
- break;
- case 24:
- {
- int v_4 = limit - cursor;
- lab3:
- {
- if (!(eq_s_b("s"))) {
- break lab3;
- }
- return false;
- }
- cursor = limit - v_4;
- }
- slice_from("ens");
- break;
- case 25:
- slice_from("ons");
- break;
- case 26:
- slice_from("lus");
- break;
- case 27:
- slice_from("rus");
- break;
- case 28:
- {
- int v_5 = limit - cursor;
- lab4:
- {
- if (!(eq_s_b("p"))) {
- break lab4;
- }
- return false;
- }
- cursor = limit - v_5;
- }
- {
- int v_6 = limit - cursor;
- lab5:
- {
- if (!(eq_s_b("t"))) {
- break lab5;
- }
- return false;
- }
- cursor = limit - v_6;
- }
- slice_from("hes");
- break;
- case 29:
- slice_from("mis");
- break;
- case 30:
- {
- int v_7 = limit - cursor;
- lab6:
- {
- if (!(eq_s_b("m"))) {
- break lab6;
- }
- return false;
- }
- cursor = limit - v_7;
- }
- slice_from("ens");
- break;
- case 31:
- slice_from("ers");
- break;
- case 32:
- {
- int v_8 = limit - cursor;
- lab7:
- {
- if (!(eq_s_b("n"))) {
- break lab7;
- }
- return false;
- }
- cursor = limit - v_8;
- }
- slice_from("es");
- break;
- case 33:
- slice_from("ys");
- break;
- }
- return true;
- }
-
- @Override
- public boolean stem() {
- limit_backward = cursor;
- cursor = limit;
- int v_1 = limit - cursor;
- r_endings();
- cursor = limit - v_1;
- int v_2 = limit - cursor;
- r_undouble();
- cursor = limit - v_2;
- int v_3 = limit - cursor;
- r_respell();
- cursor = limit - v_3;
- cursor = limit_backward;
- return true;
- }
-
- @Override
- public boolean equals(Object o) {
- return o instanceof LovinsStemmer;
- }
-
- @Override
- public int hashCode() {
- return LovinsStemmer.class.getName().hashCode();
- }
-}
diff --git a/lucene/analysis/common/src/test/org/apache/lucene/analysis/snowball/languages.txt b/lucene/analysis/common/src/test/org/apache/lucene/analysis/snowball/languages.txt
index f238832aaa5..02fc7e7a90f 100644
--- a/lucene/analysis/common/src/test/org/apache/lucene/analysis/snowball/languages.txt
+++ b/lucene/analysis/common/src/test/org/apache/lucene/analysis/snowball/languages.txt
@@ -15,9 +15,7 @@ Hungarian
Indonesian
Irish
Italian
-Kp
Lithuanian
-Lovins
Nepali
Norwegian
Porter