lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ka...@apache.org
Subject svn commit: r688420 [9/12] - in /lucene/java/trunk/contrib: ./ snowball/ snowball/src/java/ snowball/src/java/net/sf/snowball/ snowball/src/java/org/apache/lucene/analysis/snowball/ snowball/src/java/org/tartarus/ snowball/src/java/org/tartarus/snowbal...
Date Sat, 23 Aug 2008 22:02:48 GMT
Added: lucene/java/trunk/contrib/snowball/src/java/org/tartarus/snowball/ext/RomanianStemmer.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/snowball/src/java/org/tartarus/snowball/ext/RomanianStemmer.java?rev=688420&view=auto
==============================================================================
--- lucene/java/trunk/contrib/snowball/src/java/org/tartarus/snowball/ext/RomanianStemmer.java (added)
+++ lucene/java/trunk/contrib/snowball/src/java/org/tartarus/snowball/ext/RomanianStemmer.java Sat Aug 23 15:02:47 2008
@@ -0,0 +1,1024 @@
+// This file was generated automatically by the Snowball to Java compiler
+
+package org.tartarus.snowball.ext;
+import org.tartarus.snowball.SnowballProgram;
+import org.tartarus.snowball.Among;
+
+/**
+ * Generated class implementing code defined by a snowball script.
+ */
+public class RomanianStemmer extends SnowballProgram {
+
+        private Among a_0[] = {
+            new Among ( "", -1, 3, "", this),
+            new Among ( "I", 0, 1, "", this),
+            new Among ( "U", 0, 2, "", this)
+        };
+
+        private Among a_1[] = {
+            new Among ( "ea", -1, 3, "", this),
+            new Among ( "a\u0163ia", -1, 7, "", this),
+            new Among ( "aua", -1, 2, "", this),
+            new Among ( "iua", -1, 4, "", this),
+            new Among ( "a\u0163ie", -1, 7, "", this),
+            new Among ( "ele", -1, 3, "", this),
+            new Among ( "ile", -1, 5, "", this),
+            new Among ( "iile", 6, 4, "", this),
+            new Among ( "iei", -1, 4, "", this),
+            new Among ( "atei", -1, 6, "", this),
+            new Among ( "ii", -1, 4, "", this),
+            new Among ( "ului", -1, 1, "", this),
+            new Among ( "ul", -1, 1, "", this),
+            new Among ( "elor", -1, 3, "", this),
+            new Among ( "ilor", -1, 4, "", this),
+            new Among ( "iilor", 14, 4, "", this)
+        };
+
+        private Among a_2[] = {
+            new Among ( "icala", -1, 4, "", this),
+            new Among ( "iciva", -1, 4, "", this),
+            new Among ( "ativa", -1, 5, "", this),
+            new Among ( "itiva", -1, 6, "", this),
+            new Among ( "icale", -1, 4, "", this),
+            new Among ( "a\u0163iune", -1, 5, "", this),
+            new Among ( "i\u0163iune", -1, 6, "", this),
+            new Among ( "atoare", -1, 5, "", this),
+            new Among ( "itoare", -1, 6, "", this),
+            new Among ( "\u0103toare", -1, 5, "", this),
+            new Among ( "icitate", -1, 4, "", this),
+            new Among ( "abilitate", -1, 1, "", this),
+            new Among ( "ibilitate", -1, 2, "", this),
+            new Among ( "ivitate", -1, 3, "", this),
+            new Among ( "icive", -1, 4, "", this),
+            new Among ( "ative", -1, 5, "", this),
+            new Among ( "itive", -1, 6, "", this),
+            new Among ( "icali", -1, 4, "", this),
+            new Among ( "atori", -1, 5, "", this),
+            new Among ( "icatori", 18, 4, "", this),
+            new Among ( "itori", -1, 6, "", this),
+            new Among ( "\u0103tori", -1, 5, "", this),
+            new Among ( "icitati", -1, 4, "", this),
+            new Among ( "abilitati", -1, 1, "", this),
+            new Among ( "ivitati", -1, 3, "", this),
+            new Among ( "icivi", -1, 4, "", this),
+            new Among ( "ativi", -1, 5, "", this),
+            new Among ( "itivi", -1, 6, "", this),
+            new Among ( "icit\u0103i", -1, 4, "", this),
+            new Among ( "abilit\u0103i", -1, 1, "", this),
+            new Among ( "ivit\u0103i", -1, 3, "", this),
+            new Among ( "icit\u0103\u0163i", -1, 4, "", this),
+            new Among ( "abilit\u0103\u0163i", -1, 1, "", this),
+            new Among ( "ivit\u0103\u0163i", -1, 3, "", this),
+            new Among ( "ical", -1, 4, "", this),
+            new Among ( "ator", -1, 5, "", this),
+            new Among ( "icator", 35, 4, "", this),
+            new Among ( "itor", -1, 6, "", this),
+            new Among ( "\u0103tor", -1, 5, "", this),
+            new Among ( "iciv", -1, 4, "", this),
+            new Among ( "ativ", -1, 5, "", this),
+            new Among ( "itiv", -1, 6, "", this),
+            new Among ( "ical\u0103", -1, 4, "", this),
+            new Among ( "iciv\u0103", -1, 4, "", this),
+            new Among ( "ativ\u0103", -1, 5, "", this),
+            new Among ( "itiv\u0103", -1, 6, "", this)
+        };
+
+        private Among a_3[] = {
+            new Among ( "ica", -1, 1, "", this),
+            new Among ( "abila", -1, 1, "", this),
+            new Among ( "ibila", -1, 1, "", this),
+            new Among ( "oasa", -1, 1, "", this),
+            new Among ( "ata", -1, 1, "", this),
+            new Among ( "ita", -1, 1, "", this),
+            new Among ( "anta", -1, 1, "", this),
+            new Among ( "ista", -1, 3, "", this),
+            new Among ( "uta", -1, 1, "", this),
+            new Among ( "iva", -1, 1, "", this),
+            new Among ( "ic", -1, 1, "", this),
+            new Among ( "ice", -1, 1, "", this),
+            new Among ( "abile", -1, 1, "", this),
+            new Among ( "ibile", -1, 1, "", this),
+            new Among ( "isme", -1, 3, "", this),
+            new Among ( "iune", -1, 2, "", this),
+            new Among ( "oase", -1, 1, "", this),
+            new Among ( "ate", -1, 1, "", this),
+            new Among ( "itate", 17, 1, "", this),
+            new Among ( "ite", -1, 1, "", this),
+            new Among ( "ante", -1, 1, "", this),
+            new Among ( "iste", -1, 3, "", this),
+            new Among ( "ute", -1, 1, "", this),
+            new Among ( "ive", -1, 1, "", this),
+            new Among ( "ici", -1, 1, "", this),
+            new Among ( "abili", -1, 1, "", this),
+            new Among ( "ibili", -1, 1, "", this),
+            new Among ( "iuni", -1, 2, "", this),
+            new Among ( "atori", -1, 1, "", this),
+            new Among ( "osi", -1, 1, "", this),
+            new Among ( "ati", -1, 1, "", this),
+            new Among ( "itati", 30, 1, "", this),
+            new Among ( "iti", -1, 1, "", this),
+            new Among ( "anti", -1, 1, "", this),
+            new Among ( "isti", -1, 3, "", this),
+            new Among ( "uti", -1, 1, "", this),
+            new Among ( "i\u015Fti", -1, 3, "", this),
+            new Among ( "ivi", -1, 1, "", this),
+            new Among ( "it\u0103i", -1, 1, "", this),
+            new Among ( "o\u015Fi", -1, 1, "", this),
+            new Among ( "it\u0103\u0163i", -1, 1, "", this),
+            new Among ( "abil", -1, 1, "", this),
+            new Among ( "ibil", -1, 1, "", this),
+            new Among ( "ism", -1, 3, "", this),
+            new Among ( "ator", -1, 1, "", this),
+            new Among ( "os", -1, 1, "", this),
+            new Among ( "at", -1, 1, "", this),
+            new Among ( "it", -1, 1, "", this),
+            new Among ( "ant", -1, 1, "", this),
+            new Among ( "ist", -1, 3, "", this),
+            new Among ( "ut", -1, 1, "", this),
+            new Among ( "iv", -1, 1, "", this),
+            new Among ( "ic\u0103", -1, 1, "", this),
+            new Among ( "abil\u0103", -1, 1, "", this),
+            new Among ( "ibil\u0103", -1, 1, "", this),
+            new Among ( "oas\u0103", -1, 1, "", this),
+            new Among ( "at\u0103", -1, 1, "", this),
+            new Among ( "it\u0103", -1, 1, "", this),
+            new Among ( "ant\u0103", -1, 1, "", this),
+            new Among ( "ist\u0103", -1, 3, "", this),
+            new Among ( "ut\u0103", -1, 1, "", this),
+            new Among ( "iv\u0103", -1, 1, "", this)
+        };
+
+        private Among a_4[] = {
+            new Among ( "ea", -1, 1, "", this),
+            new Among ( "ia", -1, 1, "", this),
+            new Among ( "esc", -1, 1, "", this),
+            new Among ( "\u0103sc", -1, 1, "", this),
+            new Among ( "ind", -1, 1, "", this),
+            new Among ( "\u00E2nd", -1, 1, "", this),
+            new Among ( "are", -1, 1, "", this),
+            new Among ( "ere", -1, 1, "", this),
+            new Among ( "ire", -1, 1, "", this),
+            new Among ( "\u00E2re", -1, 1, "", this),
+            new Among ( "se", -1, 2, "", this),
+            new Among ( "ase", 10, 1, "", this),
+            new Among ( "sese", 10, 2, "", this),
+            new Among ( "ise", 10, 1, "", this),
+            new Among ( "use", 10, 1, "", this),
+            new Among ( "\u00E2se", 10, 1, "", this),
+            new Among ( "e\u015Fte", -1, 1, "", this),
+            new Among ( "\u0103\u015Fte", -1, 1, "", this),
+            new Among ( "eze", -1, 1, "", this),
+            new Among ( "ai", -1, 1, "", this),
+            new Among ( "eai", 19, 1, "", this),
+            new Among ( "iai", 19, 1, "", this),
+            new Among ( "sei", -1, 2, "", this),
+            new Among ( "e\u015Fti", -1, 1, "", this),
+            new Among ( "\u0103\u015Fti", -1, 1, "", this),
+            new Among ( "ui", -1, 1, "", this),
+            new Among ( "ezi", -1, 1, "", this),
+            new Among ( "\u00E2i", -1, 1, "", this),
+            new Among ( "a\u015Fi", -1, 1, "", this),
+            new Among ( "se\u015Fi", -1, 2, "", this),
+            new Among ( "ase\u015Fi", 29, 1, "", this),
+            new Among ( "sese\u015Fi", 29, 2, "", this),
+            new Among ( "ise\u015Fi", 29, 1, "", this),
+            new Among ( "use\u015Fi", 29, 1, "", this),
+            new Among ( "\u00E2se\u015Fi", 29, 1, "", this),
+            new Among ( "i\u015Fi", -1, 1, "", this),
+            new Among ( "u\u015Fi", -1, 1, "", this),
+            new Among ( "\u00E2\u015Fi", -1, 1, "", this),
+            new Among ( "a\u0163i", -1, 2, "", this),
+            new Among ( "ea\u0163i", 38, 1, "", this),
+            new Among ( "ia\u0163i", 38, 1, "", this),
+            new Among ( "e\u0163i", -1, 2, "", this),
+            new Among ( "i\u0163i", -1, 2, "", this),
+            new Among ( "\u00E2\u0163i", -1, 2, "", this),
+            new Among ( "ar\u0103\u0163i", -1, 1, "", this),
+            new Among ( "ser\u0103\u0163i", -1, 2, "", this),
+            new Among ( "aser\u0103\u0163i", 45, 1, "", this),
+            new Among ( "seser\u0103\u0163i", 45, 2, "", this),
+            new Among ( "iser\u0103\u0163i", 45, 1, "", this),
+            new Among ( "user\u0103\u0163i", 45, 1, "", this),
+            new Among ( "\u00E2ser\u0103\u0163i", 45, 1, "", this),
+            new Among ( "ir\u0103\u0163i", -1, 1, "", this),
+            new Among ( "ur\u0103\u0163i", -1, 1, "", this),
+            new Among ( "\u00E2r\u0103\u0163i", -1, 1, "", this),
+            new Among ( "am", -1, 1, "", this),
+            new Among ( "eam", 54, 1, "", this),
+            new Among ( "iam", 54, 1, "", this),
+            new Among ( "em", -1, 2, "", this),
+            new Among ( "asem", 57, 1, "", this),
+            new Among ( "sesem", 57, 2, "", this),
+            new Among ( "isem", 57, 1, "", this),
+            new Among ( "usem", 57, 1, "", this),
+            new Among ( "\u00E2sem", 57, 1, "", this),
+            new Among ( "im", -1, 2, "", this),
+            new Among ( "\u00E2m", -1, 2, "", this),
+            new Among ( "\u0103m", -1, 2, "", this),
+            new Among ( "ar\u0103m", 65, 1, "", this),
+            new Among ( "ser\u0103m", 65, 2, "", this),
+            new Among ( "aser\u0103m", 67, 1, "", this),
+            new Among ( "seser\u0103m", 67, 2, "", this),
+            new Among ( "iser\u0103m", 67, 1, "", this),
+            new Among ( "user\u0103m", 67, 1, "", this),
+            new Among ( "\u00E2ser\u0103m", 67, 1, "", this),
+            new Among ( "ir\u0103m", 65, 1, "", this),
+            new Among ( "ur\u0103m", 65, 1, "", this),
+            new Among ( "\u00E2r\u0103m", 65, 1, "", this),
+            new Among ( "au", -1, 1, "", this),
+            new Among ( "eau", 76, 1, "", this),
+            new Among ( "iau", 76, 1, "", this),
+            new Among ( "indu", -1, 1, "", this),
+            new Among ( "\u00E2ndu", -1, 1, "", this),
+            new Among ( "ez", -1, 1, "", this),
+            new Among ( "easc\u0103", -1, 1, "", this),
+            new Among ( "ar\u0103", -1, 1, "", this),
+            new Among ( "ser\u0103", -1, 2, "", this),
+            new Among ( "aser\u0103", 84, 1, "", this),
+            new Among ( "seser\u0103", 84, 2, "", this),
+            new Among ( "iser\u0103", 84, 1, "", this),
+            new Among ( "user\u0103", 84, 1, "", this),
+            new Among ( "\u00E2ser\u0103", 84, 1, "", this),
+            new Among ( "ir\u0103", -1, 1, "", this),
+            new Among ( "ur\u0103", -1, 1, "", this),
+            new Among ( "\u00E2r\u0103", -1, 1, "", this),
+            new Among ( "eaz\u0103", -1, 1, "", this)
+        };
+
+        private Among a_5[] = {
+            new Among ( "a", -1, 1, "", this),
+            new Among ( "e", -1, 1, "", this),
+            new Among ( "ie", 1, 1, "", this),
+            new Among ( "i", -1, 1, "", this),
+            new Among ( "\u0103", -1, 1, "", this)
+        };
+
+        private static final char g_v[] = {17, 65, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 32, 0, 0, 4 };
+
+        private boolean B_standard_suffix_removed;
+        private int I_p2;
+        private int I_p1;
+        private int I_pV;
+
+        private void copy_from(RomanianStemmer other) {
+            B_standard_suffix_removed = other.B_standard_suffix_removed;
+            I_p2 = other.I_p2;
+            I_p1 = other.I_p1;
+            I_pV = other.I_pV;
+            super.copy_from(other);
+        }
+
+        private boolean r_prelude() {
+            int v_1;
+            int v_2;
+            int v_3;
+            // (, line 31
+            // repeat, line 32
+            replab0: while(true)
+            {
+                v_1 = cursor;
+                lab1: do {
+                    // goto, line 32
+                    golab2: while(true)
+                    {
+                        v_2 = cursor;
+                        lab3: do {
+                            // (, line 32
+                            if (!(in_grouping(g_v, 97, 259)))
+                            {
+                                break lab3;
+                            }
+                            // [, line 33
+                            bra = cursor;
+                            // or, line 33
+                            lab4: do {
+                                v_3 = cursor;
+                                lab5: do {
+                                    // (, line 33
+                                    // literal, line 33
+                                    if (!(eq_s(1, "u")))
+                                    {
+                                        break lab5;
+                                    }
+                                    // ], line 33
+                                    ket = cursor;
+                                    if (!(in_grouping(g_v, 97, 259)))
+                                    {
+                                        break lab5;
+                                    }
+                                    // <-, line 33
+                                    slice_from("U");
+                                    break lab4;
+                                } while (false);
+                                cursor = v_3;
+                                // (, line 34
+                                // literal, line 34
+                                if (!(eq_s(1, "i")))
+                                {
+                                    break lab3;
+                                }
+                                // ], line 34
+                                ket = cursor;
+                                if (!(in_grouping(g_v, 97, 259)))
+                                {
+                                    break lab3;
+                                }
+                                // <-, line 34
+                                slice_from("I");
+                            } while (false);
+                            cursor = v_2;
+                            break golab2;
+                        } while (false);
+                        cursor = v_2;
+                        if (cursor >= limit)
+                        {
+                            break lab1;
+                        }
+                        cursor++;
+                    }
+                    continue replab0;
+                } while (false);
+                cursor = v_1;
+                break replab0;
+            }
+            return true;
+        }
+
+        private boolean r_mark_regions() {
+            int v_1;
+            int v_2;
+            int v_3;
+            int v_6;
+            int v_8;
+            // (, line 38
+            I_pV = limit;
+            I_p1 = limit;
+            I_p2 = limit;
+            // do, line 44
+            v_1 = cursor;
+            lab0: do {
+                // (, line 44
+                // or, line 46
+                lab1: do {
+                    v_2 = cursor;
+                    lab2: do {
+                        // (, line 45
+                        if (!(in_grouping(g_v, 97, 259)))
+                        {
+                            break lab2;
+                        }
+                        // or, line 45
+                        lab3: do {
+                            v_3 = cursor;
+                            lab4: do {
+                                // (, line 45
+                                if (!(out_grouping(g_v, 97, 259)))
+                                {
+                                    break lab4;
+                                }
+                                // gopast, line 45
+                                golab5: while(true)
+                                {
+                                    lab6: do {
+                                        if (!(in_grouping(g_v, 97, 259)))
+                                        {
+                                            break lab6;
+                                        }
+                                        break golab5;
+                                    } while (false);
+                                    if (cursor >= limit)
+                                    {
+                                        break lab4;
+                                    }
+                                    cursor++;
+                                }
+                                break lab3;
+                            } while (false);
+                            cursor = v_3;
+                            // (, line 45
+                            if (!(in_grouping(g_v, 97, 259)))
+                            {
+                                break lab2;
+                            }
+                            // gopast, line 45
+                            golab7: while(true)
+                            {
+                                lab8: do {
+                                    if (!(out_grouping(g_v, 97, 259)))
+                                    {
+                                        break lab8;
+                                    }
+                                    break golab7;
+                                } while (false);
+                                if (cursor >= limit)
+                                {
+                                    break lab2;
+                                }
+                                cursor++;
+                            }
+                        } while (false);
+                        break lab1;
+                    } while (false);
+                    cursor = v_2;
+                    // (, line 47
+                    if (!(out_grouping(g_v, 97, 259)))
+                    {
+                        break lab0;
+                    }
+                    // or, line 47
+                    lab9: do {
+                        v_6 = cursor;
+                        lab10: do {
+                            // (, line 47
+                            if (!(out_grouping(g_v, 97, 259)))
+                            {
+                                break lab10;
+                            }
+                            // gopast, line 47
+                            golab11: while(true)
+                            {
+                                lab12: do {
+                                    if (!(in_grouping(g_v, 97, 259)))
+                                    {
+                                        break lab12;
+                                    }
+                                    break golab11;
+                                } while (false);
+                                if (cursor >= limit)
+                                {
+                                    break lab10;
+                                }
+                                cursor++;
+                            }
+                            break lab9;
+                        } while (false);
+                        cursor = v_6;
+                        // (, line 47
+                        if (!(in_grouping(g_v, 97, 259)))
+                        {
+                            break lab0;
+                        }
+                        // next, line 47
+                        if (cursor >= limit)
+                        {
+                            break lab0;
+                        }
+                        cursor++;
+                    } while (false);
+                } while (false);
+                // setmark pV, line 48
+                I_pV = cursor;
+            } while (false);
+            cursor = v_1;
+            // do, line 50
+            v_8 = cursor;
+            lab13: do {
+                // (, line 50
+                // gopast, line 51
+                golab14: while(true)
+                {
+                    lab15: do {
+                        if (!(in_grouping(g_v, 97, 259)))
+                        {
+                            break lab15;
+                        }
+                        break golab14;
+                    } while (false);
+                    if (cursor >= limit)
+                    {
+                        break lab13;
+                    }
+                    cursor++;
+                }
+                // gopast, line 51
+                golab16: while(true)
+                {
+                    lab17: do {
+                        if (!(out_grouping(g_v, 97, 259)))
+                        {
+                            break lab17;
+                        }
+                        break golab16;
+                    } while (false);
+                    if (cursor >= limit)
+                    {
+                        break lab13;
+                    }
+                    cursor++;
+                }
+                // setmark p1, line 51
+                I_p1 = cursor;
+                // gopast, line 52
+                golab18: while(true)
+                {
+                    lab19: do {
+                        if (!(in_grouping(g_v, 97, 259)))
+                        {
+                            break lab19;
+                        }
+                        break golab18;
+                    } while (false);
+                    if (cursor >= limit)
+                    {
+                        break lab13;
+                    }
+                    cursor++;
+                }
+                // gopast, line 52
+                golab20: while(true)
+                {
+                    lab21: do {
+                        if (!(out_grouping(g_v, 97, 259)))
+                        {
+                            break lab21;
+                        }
+                        break golab20;
+                    } while (false);
+                    if (cursor >= limit)
+                    {
+                        break lab13;
+                    }
+                    cursor++;
+                }
+                // setmark p2, line 52
+                I_p2 = cursor;
+            } while (false);
+            cursor = v_8;
+            return true;
+        }
+
+        private boolean r_postlude() {
+            int among_var;
+            int v_1;
+            // repeat, line 56
+            replab0: while(true)
+            {
+                v_1 = cursor;
+                lab1: do {
+                    // (, line 56
+                    // [, line 58
+                    bra = cursor;
+                    // substring, line 58
+                    among_var = find_among(a_0, 3);
+                    if (among_var == 0)
+                    {
+                        break lab1;
+                    }
+                    // ], line 58
+                    ket = cursor;
+                    switch(among_var) {
+                        case 0:
+                            break lab1;
+                        case 1:
+                            // (, line 59
+                            // <-, line 59
+                            slice_from("i");
+                            break;
+                        case 2:
+                            // (, line 60
+                            // <-, line 60
+                            slice_from("u");
+                            break;
+                        case 3:
+                            // (, line 61
+                            // next, line 61
+                            if (cursor >= limit)
+                            {
+                                break lab1;
+                            }
+                            cursor++;
+                            break;
+                    }
+                    continue replab0;
+                } while (false);
+                cursor = v_1;
+                break replab0;
+            }
+            return true;
+        }
+
+        private boolean r_RV() {
+            if (!(I_pV <= cursor))
+            {
+                return false;
+            }
+            return true;
+        }
+
+        private boolean r_R1() {
+            if (!(I_p1 <= cursor))
+            {
+                return false;
+            }
+            return true;
+        }
+
+        private boolean r_R2() {
+            if (!(I_p2 <= cursor))
+            {
+                return false;
+            }
+            return true;
+        }
+
+        private boolean r_step_0() {
+            int among_var;
+            int v_1;
+            // (, line 72
+            // [, line 73
+            ket = cursor;
+            // substring, line 73
+            among_var = find_among_b(a_1, 16);
+            if (among_var == 0)
+            {
+                return false;
+            }
+            // ], line 73
+            bra = cursor;
+            // call R1, line 73
+            if (!r_R1())
+            {
+                return false;
+            }
+            switch(among_var) {
+                case 0:
+                    return false;
+                case 1:
+                    // (, line 75
+                    // delete, line 75
+                    slice_del();
+                    break;
+                case 2:
+                    // (, line 77
+                    // <-, line 77
+                    slice_from("a");
+                    break;
+                case 3:
+                    // (, line 79
+                    // <-, line 79
+                    slice_from("e");
+                    break;
+                case 4:
+                    // (, line 81
+                    // <-, line 81
+                    slice_from("i");
+                    break;
+                case 5:
+                    // (, line 83
+                    // not, line 83
+                    {
+                        v_1 = limit - cursor;
+                        lab0: do {
+                            // literal, line 83
+                            if (!(eq_s_b(2, "ab")))
+                            {
+                                break lab0;
+                            }
+                            return false;
+                        } while (false);
+                        cursor = limit - v_1;
+                    }
+                    // <-, line 83
+                    slice_from("i");
+                    break;
+                case 6:
+                    // (, line 85
+                    // <-, line 85
+                    slice_from("at");
+                    break;
+                case 7:
+                    // (, line 87
+                    // <-, line 87
+                    slice_from("a\u0163i");
+                    break;
+            }
+            return true;
+        }
+
+        private boolean r_combo_suffix() {
+            int among_var;
+            int v_1;
+            // test, line 91
+            v_1 = limit - cursor;
+            // (, line 91
+            // [, line 92
+            ket = cursor;
+            // substring, line 92
+            among_var = find_among_b(a_2, 46);
+            if (among_var == 0)
+            {
+                return false;
+            }
+            // ], line 92
+            bra = cursor;
+            // call R1, line 92
+            if (!r_R1())
+            {
+                return false;
+            }
+            // (, line 92
+            switch(among_var) {
+                case 0:
+                    return false;
+                case 1:
+                    // (, line 100
+                    // <-, line 101
+                    slice_from("abil");
+                    break;
+                case 2:
+                    // (, line 103
+                    // <-, line 104
+                    slice_from("ibil");
+                    break;
+                case 3:
+                    // (, line 106
+                    // <-, line 107
+                    slice_from("iv");
+                    break;
+                case 4:
+                    // (, line 112
+                    // <-, line 113
+                    slice_from("ic");
+                    break;
+                case 5:
+                    // (, line 117
+                    // <-, line 118
+                    slice_from("at");
+                    break;
+                case 6:
+                    // (, line 121
+                    // <-, line 122
+                    slice_from("it");
+                    break;
+            }
+            // set standard_suffix_removed, line 125
+            B_standard_suffix_removed = true;
+            cursor = limit - v_1;
+            return true;
+        }
+
+        private boolean r_standard_suffix() {
+            int among_var;
+            int v_1;
+            // (, line 129
+            // unset standard_suffix_removed, line 130
+            B_standard_suffix_removed = false;
+            // repeat, line 131
+            replab0: while(true)
+            {
+                v_1 = limit - cursor;
+                lab1: do {
+                    // call combo_suffix, line 131
+                    if (!r_combo_suffix())
+                    {
+                        break lab1;
+                    }
+                    continue replab0;
+                } while (false);
+                cursor = limit - v_1;
+                break replab0;
+            }
+            // [, line 132
+            ket = cursor;
+            // substring, line 132
+            among_var = find_among_b(a_3, 62);
+            if (among_var == 0)
+            {
+                return false;
+            }
+            // ], line 132
+            bra = cursor;
+            // call R2, line 132
+            if (!r_R2())
+            {
+                return false;
+            }
+            // (, line 132
+            switch(among_var) {
+                case 0:
+                    return false;
+                case 1:
+                    // (, line 148
+                    // delete, line 149
+                    slice_del();
+                    break;
+                case 2:
+                    // (, line 151
+                    // literal, line 152
+                    if (!(eq_s_b(1, "\u0163")))
+                    {
+                        return false;
+                    }
+                    // ], line 152
+                    bra = cursor;
+                    // <-, line 152
+                    slice_from("t");
+                    break;
+                case 3:
+                    // (, line 155
+                    // <-, line 156
+                    slice_from("ist");
+                    break;
+            }
+            // set standard_suffix_removed, line 160
+            B_standard_suffix_removed = true;
+            return true;
+        }
+
+        private boolean r_verb_suffix() {
+            int among_var;
+            int v_1;
+            int v_2;
+            int v_3;
+            // setlimit, line 164
+            v_1 = limit - cursor;
+            // tomark, line 164
+            if (cursor < I_pV)
+            {
+                return false;
+            }
+            cursor = I_pV;
+            v_2 = limit_backward;
+            limit_backward = cursor;
+            cursor = limit - v_1;
+            // (, line 164
+            // [, line 165
+            ket = cursor;
+            // substring, line 165
+            among_var = find_among_b(a_4, 94);
+            if (among_var == 0)
+            {
+                limit_backward = v_2;
+                return false;
+            }
+            // ], line 165
+            bra = cursor;
+            switch(among_var) {
+                case 0:
+                    limit_backward = v_2;
+                    return false;
+                case 1:
+                    // (, line 200
+                    // or, line 200
+                    lab0: do {
+                        v_3 = limit - cursor;
+                        lab1: do {
+                            if (!(out_grouping_b(g_v, 97, 259)))
+                            {
+                                break lab1;
+                            }
+                            break lab0;
+                        } while (false);
+                        cursor = limit - v_3;
+                        // literal, line 200
+                        if (!(eq_s_b(1, "u")))
+                        {
+                            limit_backward = v_2;
+                            return false;
+                        }
+                    } while (false);
+                    // delete, line 200
+                    slice_del();
+                    break;
+                case 2:
+                    // (, line 214
+                    // delete, line 214
+                    slice_del();
+                    break;
+            }
+            limit_backward = v_2;
+            return true;
+        }
+
+        private boolean r_vowel_suffix() {
+            int among_var;
+            // (, line 218
+            // [, line 219
+            ket = cursor;
+            // substring, line 219
+            among_var = find_among_b(a_5, 5);
+            if (among_var == 0)
+            {
+                return false;
+            }
+            // ], line 219
+            bra = cursor;
+            // call RV, line 219
+            if (!r_RV())
+            {
+                return false;
+            }
+            switch(among_var) {
+                case 0:
+                    return false;
+                case 1:
+                    // (, line 220
+                    // delete, line 220
+                    slice_del();
+                    break;
+            }
+            return true;
+        }
+
+        public boolean stem() {
+            int v_1;
+            int v_2;
+            int v_3;
+            int v_4;
+            int v_5;
+            int v_6;
+            int v_7;
+            int v_8;
+            // (, line 225
+            // do, line 226
+            v_1 = cursor;
+            lab0: do {
+                // call prelude, line 226
+                if (!r_prelude())
+                {
+                    break lab0;
+                }
+            } while (false);
+            cursor = v_1;
+            // do, line 227
+            v_2 = cursor;
+            lab1: do {
+                // call mark_regions, line 227
+                if (!r_mark_regions())
+                {
+                    break lab1;
+                }
+            } while (false);
+            cursor = v_2;
+            // backwards, line 228
+            limit_backward = cursor; cursor = limit;
+            // (, line 228
+            // do, line 229
+            v_3 = limit - cursor;
+            lab2: do {
+                // call step_0, line 229
+                if (!r_step_0())
+                {
+                    break lab2;
+                }
+            } while (false);
+            cursor = limit - v_3;
+            // do, line 230
+            v_4 = limit - cursor;
+            lab3: do {
+                // call standard_suffix, line 230
+                if (!r_standard_suffix())
+                {
+                    break lab3;
+                }
+            } while (false);
+            cursor = limit - v_4;
+            // do, line 231
+            v_5 = limit - cursor;
+            lab4: do {
+                // (, line 231
+                // or, line 231
+                lab5: do {
+                    v_6 = limit - cursor;
+                    lab6: do {
+                        // Boolean test standard_suffix_removed, line 231
+                        if (!(B_standard_suffix_removed))
+                        {
+                            break lab6;
+                        }
+                        break lab5;
+                    } while (false);
+                    cursor = limit - v_6;
+                    // call verb_suffix, line 231
+                    if (!r_verb_suffix())
+                    {
+                        break lab4;
+                    }
+                } while (false);
+            } while (false);
+            cursor = limit - v_5;
+            // do, line 232
+            v_7 = limit - cursor;
+            lab7: do {
+                // call vowel_suffix, line 232
+                if (!r_vowel_suffix())
+                {
+                    break lab7;
+                }
+            } while (false);
+            cursor = limit - v_7;
+            cursor = limit_backward;            // do, line 234
+            v_8 = cursor;
+            lab8: do {
+                // call postlude, line 234
+                if (!r_postlude())
+                {
+                    break lab8;
+                }
+            } while (false);
+            cursor = v_8;
+            return true;
+        }
+
+}
+

Added: lucene/java/trunk/contrib/snowball/src/java/org/tartarus/snowball/ext/RussianStemmer.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/snowball/src/java/org/tartarus/snowball/ext/RussianStemmer.java?rev=688420&view=auto
==============================================================================
--- lucene/java/trunk/contrib/snowball/src/java/org/tartarus/snowball/ext/RussianStemmer.java (added)
+++ lucene/java/trunk/contrib/snowball/src/java/org/tartarus/snowball/ext/RussianStemmer.java Sat Aug 23 15:02:47 2008
@@ -0,0 +1,727 @@
+// This file was generated automatically by the Snowball to Java compiler
+
+package org.tartarus.snowball.ext;
+import org.tartarus.snowball.SnowballProgram;
+import org.tartarus.snowball.Among;
+
+/**
+ * Generated class implementing code defined by a snowball script.
+ */
+public class RussianStemmer extends SnowballProgram {
+
+        private Among a_0[] = {
+            new Among ( "\u0432", -1, 1, "", this),
+            new Among ( "\u0438\u0432", 0, 2, "", this),
+            new Among ( "\u044B\u0432", 0, 2, "", this),
+            new Among ( "\u0432\u0448\u0438", -1, 1, "", this),
+            new Among ( "\u0438\u0432\u0448\u0438", 3, 2, "", this),
+            new Among ( "\u044B\u0432\u0448\u0438", 3, 2, "", this),
+            new Among ( "\u0432\u0448\u0438\u0441\u044C", -1, 1, "", this),
+            new Among ( "\u0438\u0432\u0448\u0438\u0441\u044C", 6, 2, "", this),
+            new Among ( "\u044B\u0432\u0448\u0438\u0441\u044C", 6, 2, "", this)
+        };
+
+        private Among a_1[] = {
+            new Among ( "\u0435\u0435", -1, 1, "", this),
+            new Among ( "\u0438\u0435", -1, 1, "", this),
+            new Among ( "\u043E\u0435", -1, 1, "", this),
+            new Among ( "\u044B\u0435", -1, 1, "", this),
+            new Among ( "\u0438\u043C\u0438", -1, 1, "", this),
+            new Among ( "\u044B\u043C\u0438", -1, 1, "", this),
+            new Among ( "\u0435\u0439", -1, 1, "", this),
+            new Among ( "\u0438\u0439", -1, 1, "", this),
+            new Among ( "\u043E\u0439", -1, 1, "", this),
+            new Among ( "\u044B\u0439", -1, 1, "", this),
+            new Among ( "\u0435\u043C", -1, 1, "", this),
+            new Among ( "\u0438\u043C", -1, 1, "", this),
+            new Among ( "\u043E\u043C", -1, 1, "", this),
+            new Among ( "\u044B\u043C", -1, 1, "", this),
+            new Among ( "\u0435\u0433\u043E", -1, 1, "", this),
+            new Among ( "\u043E\u0433\u043E", -1, 1, "", this),
+            new Among ( "\u0435\u043C\u0443", -1, 1, "", this),
+            new Among ( "\u043E\u043C\u0443", -1, 1, "", this),
+            new Among ( "\u0438\u0445", -1, 1, "", this),
+            new Among ( "\u044B\u0445", -1, 1, "", this),
+            new Among ( "\u0435\u044E", -1, 1, "", this),
+            new Among ( "\u043E\u044E", -1, 1, "", this),
+            new Among ( "\u0443\u044E", -1, 1, "", this),
+            new Among ( "\u044E\u044E", -1, 1, "", this),
+            new Among ( "\u0430\u044F", -1, 1, "", this),
+            new Among ( "\u044F\u044F", -1, 1, "", this)
+        };
+
+        private Among a_2[] = {
+            new Among ( "\u0435\u043C", -1, 1, "", this),
+            new Among ( "\u043D\u043D", -1, 1, "", this),
+            new Among ( "\u0432\u0448", -1, 1, "", this),
+            new Among ( "\u0438\u0432\u0448", 2, 2, "", this),
+            new Among ( "\u044B\u0432\u0448", 2, 2, "", this),
+            new Among ( "\u0449", -1, 1, "", this),
+            new Among ( "\u044E\u0449", 5, 1, "", this),
+            new Among ( "\u0443\u044E\u0449", 6, 2, "", this)
+        };
+
+        private Among a_3[] = {
+            new Among ( "\u0441\u044C", -1, 1, "", this),
+            new Among ( "\u0441\u044F", -1, 1, "", this)
+        };
+
+        private Among a_4[] = {
+            new Among ( "\u043B\u0430", -1, 1, "", this),
+            new Among ( "\u0438\u043B\u0430", 0, 2, "", this),
+            new Among ( "\u044B\u043B\u0430", 0, 2, "", this),
+            new Among ( "\u043D\u0430", -1, 1, "", this),
+            new Among ( "\u0435\u043D\u0430", 3, 2, "", this),
+            new Among ( "\u0435\u0442\u0435", -1, 1, "", this),
+            new Among ( "\u0438\u0442\u0435", -1, 2, "", this),
+            new Among ( "\u0439\u0442\u0435", -1, 1, "", this),
+            new Among ( "\u0435\u0439\u0442\u0435", 7, 2, "", this),
+            new Among ( "\u0443\u0439\u0442\u0435", 7, 2, "", this),
+            new Among ( "\u043B\u0438", -1, 1, "", this),
+            new Among ( "\u0438\u043B\u0438", 10, 2, "", this),
+            new Among ( "\u044B\u043B\u0438", 10, 2, "", this),
+            new Among ( "\u0439", -1, 1, "", this),
+            new Among ( "\u0435\u0439", 13, 2, "", this),
+            new Among ( "\u0443\u0439", 13, 2, "", this),
+            new Among ( "\u043B", -1, 1, "", this),
+            new Among ( "\u0438\u043B", 16, 2, "", this),
+            new Among ( "\u044B\u043B", 16, 2, "", this),
+            new Among ( "\u0435\u043C", -1, 1, "", this),
+            new Among ( "\u0438\u043C", -1, 2, "", this),
+            new Among ( "\u044B\u043C", -1, 2, "", this),
+            new Among ( "\u043D", -1, 1, "", this),
+            new Among ( "\u0435\u043D", 22, 2, "", this),
+            new Among ( "\u043B\u043E", -1, 1, "", this),
+            new Among ( "\u0438\u043B\u043E", 24, 2, "", this),
+            new Among ( "\u044B\u043B\u043E", 24, 2, "", this),
+            new Among ( "\u043D\u043E", -1, 1, "", this),
+            new Among ( "\u0435\u043D\u043E", 27, 2, "", this),
+            new Among ( "\u043D\u043D\u043E", 27, 1, "", this),
+            new Among ( "\u0435\u0442", -1, 1, "", this),
+            new Among ( "\u0443\u0435\u0442", 30, 2, "", this),
+            new Among ( "\u0438\u0442", -1, 2, "", this),
+            new Among ( "\u044B\u0442", -1, 2, "", this),
+            new Among ( "\u044E\u0442", -1, 1, "", this),
+            new Among ( "\u0443\u044E\u0442", 34, 2, "", this),
+            new Among ( "\u044F\u0442", -1, 2, "", this),
+            new Among ( "\u043D\u044B", -1, 1, "", this),
+            new Among ( "\u0435\u043D\u044B", 37, 2, "", this),
+            new Among ( "\u0442\u044C", -1, 1, "", this),
+            new Among ( "\u0438\u0442\u044C", 39, 2, "", this),
+            new Among ( "\u044B\u0442\u044C", 39, 2, "", this),
+            new Among ( "\u0435\u0448\u044C", -1, 1, "", this),
+            new Among ( "\u0438\u0448\u044C", -1, 2, "", this),
+            new Among ( "\u044E", -1, 2, "", this),
+            new Among ( "\u0443\u044E", 44, 2, "", this)
+        };
+
+        private Among a_5[] = {
+            new Among ( "\u0430", -1, 1, "", this),
+            new Among ( "\u0435\u0432", -1, 1, "", this),
+            new Among ( "\u043E\u0432", -1, 1, "", this),
+            new Among ( "\u0435", -1, 1, "", this),
+            new Among ( "\u0438\u0435", 3, 1, "", this),
+            new Among ( "\u044C\u0435", 3, 1, "", this),
+            new Among ( "\u0438", -1, 1, "", this),
+            new Among ( "\u0435\u0438", 6, 1, "", this),
+            new Among ( "\u0438\u0438", 6, 1, "", this),
+            new Among ( "\u0430\u043C\u0438", 6, 1, "", this),
+            new Among ( "\u044F\u043C\u0438", 6, 1, "", this),
+            new Among ( "\u0438\u044F\u043C\u0438", 10, 1, "", this),
+            new Among ( "\u0439", -1, 1, "", this),
+            new Among ( "\u0435\u0439", 12, 1, "", this),
+            new Among ( "\u0438\u0435\u0439", 13, 1, "", this),
+            new Among ( "\u0438\u0439", 12, 1, "", this),
+            new Among ( "\u043E\u0439", 12, 1, "", this),
+            new Among ( "\u0430\u043C", -1, 1, "", this),
+            new Among ( "\u0435\u043C", -1, 1, "", this),
+            new Among ( "\u0438\u0435\u043C", 18, 1, "", this),
+            new Among ( "\u043E\u043C", -1, 1, "", this),
+            new Among ( "\u044F\u043C", -1, 1, "", this),
+            new Among ( "\u0438\u044F\u043C", 21, 1, "", this),
+            new Among ( "\u043E", -1, 1, "", this),
+            new Among ( "\u0443", -1, 1, "", this),
+            new Among ( "\u0430\u0445", -1, 1, "", this),
+            new Among ( "\u044F\u0445", -1, 1, "", this),
+            new Among ( "\u0438\u044F\u0445", 26, 1, "", this),
+            new Among ( "\u044B", -1, 1, "", this),
+            new Among ( "\u044C", -1, 1, "", this),
+            new Among ( "\u044E", -1, 1, "", this),
+            new Among ( "\u0438\u044E", 30, 1, "", this),
+            new Among ( "\u044C\u044E", 30, 1, "", this),
+            new Among ( "\u044F", -1, 1, "", this),
+            new Among ( "\u0438\u044F", 33, 1, "", this),
+            new Among ( "\u044C\u044F", 33, 1, "", this)
+        };
+
+        private Among a_6[] = {
+            new Among ( "\u043E\u0441\u0442", -1, 1, "", this),
+            new Among ( "\u043E\u0441\u0442\u044C", -1, 1, "", this)
+        };
+
+        private Among a_7[] = {
+            new Among ( "\u0435\u0439\u0448\u0435", -1, 1, "", this),
+            new Among ( "\u043D", -1, 2, "", this),
+            new Among ( "\u0435\u0439\u0448", -1, 1, "", this),
+            new Among ( "\u044C", -1, 3, "", this)
+        };
+
+        private static final char g_v[] = {33, 65, 8, 232 };
+
+        private int I_p2;
+        private int I_pV;
+
+        private void copy_from(RussianStemmer other) {
+            I_p2 = other.I_p2;
+            I_pV = other.I_pV;
+            super.copy_from(other);
+        }
+
+        private boolean r_mark_regions() {
+            int v_1;
+            // (, line 57
+            I_pV = limit;
+            I_p2 = limit;
+            // do, line 61
+            v_1 = cursor;
+            lab0: do {
+                // (, line 61
+                // gopast, line 62
+                golab1: while(true)
+                {
+                    lab2: do {
+                        if (!(in_grouping(g_v, 1072, 1103)))
+                        {
+                            break lab2;
+                        }
+                        break golab1;
+                    } while (false);
+                    if (cursor >= limit)
+                    {
+                        break lab0;
+                    }
+                    cursor++;
+                }
+                // setmark pV, line 62
+                I_pV = cursor;
+                // gopast, line 62
+                golab3: while(true)
+                {
+                    lab4: do {
+                        if (!(out_grouping(g_v, 1072, 1103)))
+                        {
+                            break lab4;
+                        }
+                        break golab3;
+                    } while (false);
+                    if (cursor >= limit)
+                    {
+                        break lab0;
+                    }
+                    cursor++;
+                }
+                // gopast, line 63
+                golab5: while(true)
+                {
+                    lab6: do {
+                        if (!(in_grouping(g_v, 1072, 1103)))
+                        {
+                            break lab6;
+                        }
+                        break golab5;
+                    } while (false);
+                    if (cursor >= limit)
+                    {
+                        break lab0;
+                    }
+                    cursor++;
+                }
+                // gopast, line 63
+                golab7: while(true)
+                {
+                    lab8: do {
+                        if (!(out_grouping(g_v, 1072, 1103)))
+                        {
+                            break lab8;
+                        }
+                        break golab7;
+                    } while (false);
+                    if (cursor >= limit)
+                    {
+                        break lab0;
+                    }
+                    cursor++;
+                }
+                // setmark p2, line 63
+                I_p2 = cursor;
+            } while (false);
+            cursor = v_1;
+            return true;
+        }
+
+        private boolean r_R2() {
+            if (!(I_p2 <= cursor))
+            {
+                return false;
+            }
+            return true;
+        }
+
+        private boolean r_perfective_gerund() {
+            int among_var;
+            int v_1;
+            // (, line 71
+            // [, line 72
+            ket = cursor;
+            // substring, line 72
+            among_var = find_among_b(a_0, 9);
+            if (among_var == 0)
+            {
+                return false;
+            }
+            // ], line 72
+            bra = cursor;
+            switch(among_var) {
+                case 0:
+                    return false;
+                case 1:
+                    // (, line 76
+                    // or, line 76
+                    lab0: do {
+                        v_1 = limit - cursor;
+                        lab1: do {
+                            // literal, line 76
+                            if (!(eq_s_b(1, "\u0430")))
+                            {
+                                break lab1;
+                            }
+                            break lab0;
+                        } while (false);
+                        cursor = limit - v_1;
+                        // literal, line 76
+                        if (!(eq_s_b(1, "\u044F")))
+                        {
+                            return false;
+                        }
+                    } while (false);
+                    // delete, line 76
+                    slice_del();
+                    break;
+                case 2:
+                    // (, line 83
+                    // delete, line 83
+                    slice_del();
+                    break;
+            }
+            return true;
+        }
+
+        private boolean r_adjective() {
+            int among_var;
+            // (, line 87
+            // [, line 88
+            ket = cursor;
+            // substring, line 88
+            among_var = find_among_b(a_1, 26);
+            if (among_var == 0)
+            {
+                return false;
+            }
+            // ], line 88
+            bra = cursor;
+            switch(among_var) {
+                case 0:
+                    return false;
+                case 1:
+                    // (, line 97
+                    // delete, line 97
+                    slice_del();
+                    break;
+            }
+            return true;
+        }
+
+        private boolean r_adjectival() {
+            int among_var;
+            int v_1;
+            int v_2;
+            // (, line 101
+            // call adjective, line 102
+            if (!r_adjective())
+            {
+                return false;
+            }
+            // try, line 109
+            v_1 = limit - cursor;
+            lab0: do {
+                // (, line 109
+                // [, line 110
+                ket = cursor;
+                // substring, line 110
+                among_var = find_among_b(a_2, 8);
+                if (among_var == 0)
+                {
+                    cursor = limit - v_1;
+                    break lab0;
+                }
+                // ], line 110
+                bra = cursor;
+                switch(among_var) {
+                    case 0:
+                        cursor = limit - v_1;
+                        break lab0;
+                    case 1:
+                        // (, line 115
+                        // or, line 115
+                        lab1: do {
+                            v_2 = limit - cursor;
+                            lab2: do {
+                                // literal, line 115
+                                if (!(eq_s_b(1, "\u0430")))
+                                {
+                                    break lab2;
+                                }
+                                break lab1;
+                            } while (false);
+                            cursor = limit - v_2;
+                            // literal, line 115
+                            if (!(eq_s_b(1, "\u044F")))
+                            {
+                                cursor = limit - v_1;
+                                break lab0;
+                            }
+                        } while (false);
+                        // delete, line 115
+                        slice_del();
+                        break;
+                    case 2:
+                        // (, line 122
+                        // delete, line 122
+                        slice_del();
+                        break;
+                }
+            } while (false);
+            return true;
+        }
+
+        private boolean r_reflexive() {
+            int among_var;
+            // (, line 128
+            // [, line 129
+            ket = cursor;
+            // substring, line 129
+            among_var = find_among_b(a_3, 2);
+            if (among_var == 0)
+            {
+                return false;
+            }
+            // ], line 129
+            bra = cursor;
+            switch(among_var) {
+                case 0:
+                    return false;
+                case 1:
+                    // (, line 132
+                    // delete, line 132
+                    slice_del();
+                    break;
+            }
+            return true;
+        }
+
+        private boolean r_verb() {
+            int among_var;
+            int v_1;
+            // (, line 136
+            // [, line 137
+            ket = cursor;
+            // substring, line 137
+            among_var = find_among_b(a_4, 46);
+            if (among_var == 0)
+            {
+                return false;
+            }
+            // ], line 137
+            bra = cursor;
+            switch(among_var) {
+                case 0:
+                    return false;
+                case 1:
+                    // (, line 143
+                    // or, line 143
+                    lab0: do {
+                        v_1 = limit - cursor;
+                        lab1: do {
+                            // literal, line 143
+                            if (!(eq_s_b(1, "\u0430")))
+                            {
+                                break lab1;
+                            }
+                            break lab0;
+                        } while (false);
+                        cursor = limit - v_1;
+                        // literal, line 143
+                        if (!(eq_s_b(1, "\u044F")))
+                        {
+                            return false;
+                        }
+                    } while (false);
+                    // delete, line 143
+                    slice_del();
+                    break;
+                case 2:
+                    // (, line 151
+                    // delete, line 151
+                    slice_del();
+                    break;
+            }
+            return true;
+        }
+
+        private boolean r_noun() {
+            int among_var;
+            // (, line 159
+            // [, line 160
+            ket = cursor;
+            // substring, line 160
+            among_var = find_among_b(a_5, 36);
+            if (among_var == 0)
+            {
+                return false;
+            }
+            // ], line 160
+            bra = cursor;
+            switch(among_var) {
+                case 0:
+                    return false;
+                case 1:
+                    // (, line 167
+                    // delete, line 167
+                    slice_del();
+                    break;
+            }
+            return true;
+        }
+
+        private boolean r_derivational() {
+            int among_var;
+            // (, line 175
+            // [, line 176
+            ket = cursor;
+            // substring, line 176
+            among_var = find_among_b(a_6, 2);
+            if (among_var == 0)
+            {
+                return false;
+            }
+            // ], line 176
+            bra = cursor;
+            // call R2, line 176
+            if (!r_R2())
+            {
+                return false;
+            }
+            switch(among_var) {
+                case 0:
+                    return false;
+                case 1:
+                    // (, line 179
+                    // delete, line 179
+                    slice_del();
+                    break;
+            }
+            return true;
+        }
+
+        private boolean r_tidy_up() {
+            int among_var;
+            // (, line 183
+            // [, line 184
+            ket = cursor;
+            // substring, line 184
+            among_var = find_among_b(a_7, 4);
+            if (among_var == 0)
+            {
+                return false;
+            }
+            // ], line 184
+            bra = cursor;
+            switch(among_var) {
+                case 0:
+                    return false;
+                case 1:
+                    // (, line 188
+                    // delete, line 188
+                    slice_del();
+                    // [, line 189
+                    ket = cursor;
+                    // literal, line 189
+                    if (!(eq_s_b(1, "\u043D")))
+                    {
+                        return false;
+                    }
+                    // ], line 189
+                    bra = cursor;
+                    // literal, line 189
+                    if (!(eq_s_b(1, "\u043D")))
+                    {
+                        return false;
+                    }
+                    // delete, line 189
+                    slice_del();
+                    break;
+                case 2:
+                    // (, line 192
+                    // literal, line 192
+                    if (!(eq_s_b(1, "\u043D")))
+                    {
+                        return false;
+                    }
+                    // delete, line 192
+                    slice_del();
+                    break;
+                case 3:
+                    // (, line 194
+                    // delete, line 194
+                    slice_del();
+                    break;
+            }
+            return true;
+        }
+
+        public boolean stem() {
+            int v_1;
+            int v_2;
+            int v_3;
+            int v_4;
+            int v_5;
+            int v_6;
+            int v_7;
+            int v_8;
+            int v_9;
+            int v_10;
+            // (, line 199
+            // do, line 201
+            v_1 = cursor;
+            lab0: do {
+                // call mark_regions, line 201
+                if (!r_mark_regions())
+                {
+                    break lab0;
+                }
+            } while (false);
+            cursor = v_1;
+            // backwards, line 202
+            limit_backward = cursor; cursor = limit;
+            // setlimit, line 202
+            v_2 = limit - cursor;
+            // tomark, line 202
+            if (cursor < I_pV)
+            {
+                return false;
+            }
+            cursor = I_pV;
+            v_3 = limit_backward;
+            limit_backward = cursor;
+            cursor = limit - v_2;
+            // (, line 202
+            // do, line 203
+            v_4 = limit - cursor;
+            lab1: do {
+                // (, line 203
+                // or, line 204
+                lab2: do {
+                    v_5 = limit - cursor;
+                    lab3: do {
+                        // call perfective_gerund, line 204
+                        if (!r_perfective_gerund())
+                        {
+                            break lab3;
+                        }
+                        break lab2;
+                    } while (false);
+                    cursor = limit - v_5;
+                    // (, line 205
+                    // try, line 205
+                    v_6 = limit - cursor;
+                    lab4: do {
+                        // call reflexive, line 205
+                        if (!r_reflexive())
+                        {
+                            cursor = limit - v_6;
+                            break lab4;
+                        }
+                    } while (false);
+                    // or, line 206
+                    lab5: do {
+                        v_7 = limit - cursor;
+                        lab6: do {
+                            // call adjectival, line 206
+                            if (!r_adjectival())
+                            {
+                                break lab6;
+                            }
+                            break lab5;
+                        } while (false);
+                        cursor = limit - v_7;
+                        lab7: do {
+                            // call verb, line 206
+                            if (!r_verb())
+                            {
+                                break lab7;
+                            }
+                            break lab5;
+                        } while (false);
+                        cursor = limit - v_7;
+                        // call noun, line 206
+                        if (!r_noun())
+                        {
+                            break lab1;
+                        }
+                    } while (false);
+                } while (false);
+            } while (false);
+            cursor = limit - v_4;
+            // try, line 209
+            v_8 = limit - cursor;
+            lab8: do {
+                // (, line 209
+                // [, line 209
+                ket = cursor;
+                // literal, line 209
+                if (!(eq_s_b(1, "\u0438")))
+                {
+                    cursor = limit - v_8;
+                    break lab8;
+                }
+                // ], line 209
+                bra = cursor;
+                // delete, line 209
+                slice_del();
+            } while (false);
+            // do, line 212
+            v_9 = limit - cursor;
+            lab9: do {
+                // call derivational, line 212
+                if (!r_derivational())
+                {
+                    break lab9;
+                }
+            } while (false);
+            cursor = limit - v_9;
+            // do, line 213
+            v_10 = limit - cursor;
+            lab10: do {
+                // call tidy_up, line 213
+                if (!r_tidy_up())
+                {
+                    break lab10;
+                }
+            } while (false);
+            cursor = limit - v_10;
+            limit_backward = v_3;
+            cursor = limit_backward;            return true;
+        }
+
+}
+



Mime
View raw message