Exemple #1
0
 private void InitBlock()
 {
     a_0 = new Among[] { new Among("", -1, 6, "", this), new Among("U", 0, 2, "", this), new Among("Y", 0, 1, "", this), new Among("\u00E4", 0, 3, "", this), new Among("\u00F6", 0, 4, "", this), new Among("\u00FC", 0, 5, "", this) };
     a_1 = new Among[] { new Among("e", -1, 1, "", this), new Among("em", -1, 1, "", this), new Among("en", -1, 1, "", this), new Among("ern", -1, 1, "", this), new Among("er", -1, 1, "", this), new Among("s", -1, 2, "", this), new Among("es", 5, 1, "", this) };
     a_2 = new Among[] { new Among("en", -1, 1, "", this), new Among("er", -1, 1, "", this), new Among("st", -1, 2, "", this), new Among("est", 2, 1, "", this) };
     a_3 = new Among[] { new Among("ig", -1, 1, "", this), new Among("lich", -1, 1, "", this) };
     a_4 = new Among[] { new Among("end", -1, 1, "", this), new Among("ig", -1, 2, "", this), new Among("ung", -1, 1, "", this), new Among("lich", -1, 3, "", this), new Among("isch", -1, 2, "", this), new Among("ik", -1, 2, "", this), new Among("heit", -1, 3, "", this), new Among("keit", -1, 4, "", this) };
 }
 private void InitBlock()
 {
     a_0 = new Among[] { new Among("", -1, 6, "", this), new Among("\u00E1", 0, 1, "", this), new Among("\u00E4", 0, 1, "", this), new Among("\u00E9", 0, 2, "", this), new Among("\u00EB", 0, 2, "", this), new Among("\u00ED", 0, 3, "", this), new Among("\u00EF", 0, 3, "", this), new Among("\u00F3", 0, 4, "", this), new Among("\u00F6", 0, 4, "", this), new Among("\u00FA", 0, 5, "", this), new Among("\u00FC", 0, 5, "", this) };
     a_1 = new Among[] { new Among("", -1, 3, "", this), new Among("I", 0, 2, "", this), new Among("Y", 0, 1, "", this) };
     a_2 = new Among[] { new Among("dd", -1, -1, "", this), new Among("kk", -1, -1, "", this), new Among("tt", -1, -1, "", this) };
     a_3 = new Among[] { new Among("ene", -1, 2, "", this), new Among("se", -1, 3, "", this), new Among("en", -1, 2, "", this), new Among("heden", 2, 1, "", this), new Among("s", -1, 3, "", this) };
     a_4 = new Among[] { new Among("end", -1, 1, "", this), new Among("ig", -1, 2, "", this), new Among("ing", -1, 1, "", this), new Among("lijk", -1, 3, "", this), new Among("baar", -1, 4, "", this), new Among("bar", -1, 5, "", this) };
     a_5 = new Among[] { new Among("aa", -1, -1, "", this), new Among("ee", -1, -1, "", this), new Among("oo", -1, -1, "", this), new Among("uu", -1, -1, "", this) };
 }
Exemple #3
0
 private void InitBlock()
 {
     a_0 = new Among[] { new Among("s", -1, 3, "", this), new Among("ies", 0, 2, "", this), new Among("sses", 0, 1, "", this), new Among("ss", 0, -1, "", this) };
     a_1 = new Among[] { new Among("", -1, 3, "", this), new Among("bb", 0, 2, "", this), new Among("dd", 0, 2, "", this), new Among("ff", 0, 2, "", this), new Among("gg", 0, 2, "", this), new Among("bl", 0, 1, "", this), new Among("mm", 0, 2, "", this), new Among("nn", 0, 2, "", this), new Among("pp", 0, 2, "", this), new Among("rr", 0, 2, "", this), new Among("at", 0, 1, "", this), new Among("tt", 0, 2, "", this), new Among("iz", 0, 1, "", this) };
     a_2 = new Among[] { new Among("ed", -1, 2, "", this), new Among("eed", 0, 1, "", this), new Among("ing", -1, 2, "", this) };
     a_3 = new Among[] { new Among("anci", -1, 3, "", this), new Among("enci", -1, 2, "", this), new Among("abli", -1, 4, "", this), new Among("eli", -1, 6, "", this), new Among("alli", -1, 9, "", this), new Among("ousli", -1, 12, "", this), new Among("entli", -1, 5, "", this), new Among("aliti", -1, 10, "", this), new Among("biliti", -1, 14, "", this), new Among("iviti", -1, 13, "", this), new Among("tional", -1, 1, "", this), new Among("ational", 10, 8, "", this), new Among("alism", -1, 10, "", this), new Among("ation", -1, 8, "", this), new Among("ization", 13, 7, "", this), new Among("izer", -1, 7, "", this), new Among("ator", -1, 8, "", this), new Among("iveness", -1, 13, "", this), new Among("fulness", -1, 11, "", this), new Among("ousness", -1, 12, "", this) };
     a_4 = new Among[] { new Among("icate", -1, 2, "", this), new Among("ative", -1, 3, "", this), new Among("alize", -1, 1, "", this), new Among("iciti", -1, 2, "", this), new Among("ical", -1, 2, "", this), new Among("ful", -1, 3, "", this), new Among("ness", -1, 3, "", this) };
     a_5 = new Among[] { new Among("ic", -1, 1, "", this), new Among("ance", -1, 1, "", this), new Among("ence", -1, 1, "", this), new Among("able", -1, 1, "", this), new Among("ible", -1, 1, "", this), new Among("ate", -1, 1, "", this), new Among("ive", -1, 1, "", this), new Among("ize", -1, 1, "", this), new Among("iti", -1, 1, "", this), new Among("al", -1, 1, "", this), new Among("ism", -1, 1, "", this), new Among("ion", -1, 2, "", this), new Among("er", -1, 1, "", this), new Among("ous", -1, 1, "", this), new Among("ant", -1, 1, "", this), new Among("ent", -1, 1, "", this), new Among("ment", 15, 1, "", this), new Among("ement", 16, 1, "", this), new Among("ou", -1, 1, "", this) };
 }
 private void InitBlock()
 {
     a_0 = new Among[] { new Among("", -1, 7, "", this), new Among("qu", 0, 6, "", this), new Among("\u00E1", 0, 1, "", this), new Among("\u00E9", 0, 2, "", this), new Among("\u00ED", 0, 3, "", this), new Among("\u00F3", 0, 4, "", this), new Among("\u00FA", 0, 5, "", this) };
     a_1 = new Among[] { new Among("", -1, 3, "", this), new Among("I", 0, 1, "", this), new Among("U", 0, 2, "", this) };
     a_2 = new Among[] { new Among("la", -1, -1, "", this), new Among("cela", 0, -1, "", this), new Among("gliela", 0, -1, "", this), new Among("mela", 0, -1, "", this), new Among("tela", 0, -1, "", this), new Among("vela", 0, -1, "", this), new Among("le", -1, -1, "", this), new Among("cele", 6, -1, "", this), new Among("gliele", 6, -1, "", this), new Among("mele", 6, -1, "", this), new Among("tele", 6, -1, "", this), new Among("vele", 6, -1, "", this), new Among("ne", -1, -1, "", this), new Among("cene", 12, -1, "", this), new Among("gliene", 12, -1, "", this), new Among("mene", 12, -1, "", this), new Among("sene", 12, -1, "", this), new Among("tene", 12, -1, "", this), new Among("vene", 12, -1, "", this), new Among("ci", -1, -1, "", this), new Among("li", -1, -1, "", this), new Among("celi", 20, -1, "", this), new Among("glieli", 20, -1, "", this), new Among("meli", 20, -1, "", this), new Among("teli", 20, -1, "", this), new Among("veli", 20, -1, "", this), new Among("gli", 20, -1, "", this), new Among("mi", -1, -1, "", this), new Among("si", -1, -1, "", this), new Among("ti", -1, -1, "", this), new Among("vi", -1, -1, "", this), new Among("lo", -1, -1, "", this), new Among("celo", 31, -1, "", this), new Among("glielo", 31, -1, "", this), new Among("melo", 31, -1, "", this), new Among("telo", 31, -1, "", this), new Among("velo", 31, -1, "", this) };
     a_3 = new Among[] { new Among("ando", -1, 1, "", this), new Among("endo", -1, 1, "", this), new Among("ar", -1, 2, "", this), new Among("er", -1, 2, "", this), new Among("ir", -1, 2, "", this) };
     a_4 = new Among[] { new Among("ic", -1, -1, "", this), new Among("abil", -1, -1, "", this), new Among("os", -1, -1, "", this), new Among("iv", -1, 1, "", this) };
     a_5 = new Among[] { new Among("ic", -1, 1, "", this), new Among("abil", -1, 1, "", this), new Among("iv", -1, 1, "", this) };
     a_6 = new Among[] { new Among("ica", -1, 1, "", this), new Among("logia", -1, 3, "", this), new Among("osa", -1, 1, "", this), new Among("ista", -1, 1, "", this), new Among("iva", -1, 9, "", this), new Among("anza", -1, 1, "", this), new Among("enza", -1, 5, "", this), new Among("ice", -1, 1, "", this), new Among("atrice", 7, 1, "", this), new Among("iche", -1, 1, "", this), new Among("logie", -1, 3, "", this), new Among("abile", -1, 1, "", this), new Among("ibile", -1, 1, "", this), new Among("usione", -1, 4, "", this), new Among("azione", -1, 2, "", this), new Among("uzione", -1, 4, "", this), new Among("atore", -1, 2, "", this), new Among("ose", -1, 1, "", this), new Among("mente", -1, 1, "", this), new Among("amente", 18, 7, "", this), new Among("iste", -1, 1, "", this), new Among("ive", -1, 9, "", this), new Among("anze", -1, 1, "", this), new Among("enze", -1, 5, "", this), new Among("ici", -1, 1, "", this), new Among("atrici", 24, 1, "", this), new Among("ichi", -1, 1, "", this), new Among("abili", -1, 1, "", this), new Among("ibili", -1, 1, "", this), new Among("ismi", -1, 1, "", this), new Among("usioni", -1, 4, "", this), new Among("azioni", -1, 2, "", this), new Among("uzioni", -1, 4, "", this), new Among("atori", -1, 2, "", this), new Among("osi", -1, 1, "", this), new Among("amenti", -1, 6, "", this), new Among("imenti", -1, 6, "", this), new Among("isti", -1, 1, "", this), new Among("ivi", -1, 9, "", this), new Among("ico", -1, 1, "", this), new Among("ismo", -1, 1, "", this), new Among("oso", -1, 1, "", this), new Among("amento", -1, 6, "", this), new Among("imento", -1, 6, "", this), new Among("ivo", -1, 9, "", this), new Among("it\u00E0", -1, 8, "", this), new Among("ist\u00E0", -1, 1, "", this), new Among("ist\u00E8", -1, 1, "", this), new Among("ist\u00EC", -1, 1, "", this) };
     a_7 = new Among[] { new Among("isca", -1, 1, "", this), new Among("enda", -1, 1, "", this), new Among("ata", -1, 1, "", this), new Among("ita", -1, 1, "", this), new Among("uta", -1, 1, "", this), new Among("ava", -1, 1, "", this), new Among("eva", -1, 1, "", this), new Among("iva", -1, 1, "", this), new Among("erebbe", -1, 1, "", this), new Among("irebbe", -1, 1, "", this), new Among("isce", -1, 1, "", this), new Among("ende", -1, 1, "", this), new Among("are", -1, 1, "", this), new Among("ere", -1, 1, "", this), new Among("ire", -1, 1, "", this), new Among("asse", -1, 1, "", this), new Among("ate", -1, 1, "", this), new Among("avate", 16, 1, "", this), new Among("evate", 16, 1, "", this), new Among("ivate", 16, 1, "", this), new Among("ete", -1, 1, "", this), new Among("erete", 20, 1, "", this), new Among("irete", 20, 1, "", this), new Among("ite", -1, 1, "", this), new Among("ereste", -1, 1, "", this), new Among("ireste", -1, 1, "", this), new Among("ute", -1, 1, "", this), new Among("erai", -1, 1, "", this), new Among("irai", -1, 1, "", this), new Among("isci", -1, 1, "", this), new Among("endi", -1, 1, "", this), new Among("erei", -1, 1, "", this), new Among("irei", -1, 1, "", this), new Among("assi", -1, 1, "", this), new Among("ati", -1, 1, "", this), new Among("iti", -1, 1, "", this), new Among("eresti", -1, 1, "", this), new Among("iresti", -1, 1, "", this), new Among("uti", -1, 1, "", this), new Among("avi", -1, 1, "", this), new Among("evi", -1, 1, "", this), new Among("ivi", -1, 1, "", this), new Among("isco", -1, 1, "", this), new Among("ando", -1, 1, "", this), new Among("endo", -1, 1, "", this), new Among("Yamo", -1, 1, "", this), new Among("iamo", -1, 1, "", this), new Among("avamo", -1, 1, "", this), new Among("evamo", -1, 1, "", this), new Among("ivamo", -1, 1, "", this), new Among("eremo", -1, 1, "", this), new Among("iremo", -1, 1, "", this), new Among("assimo", -1, 1, "", this), new Among("ammo", -1, 1, "", this), new Among(
                             "emmo", -1, 1, "", this), new Among("eremmo", 54, 1, "", this), new Among("iremmo", 54, 1, "", this), new Among("immo", -1, 1, "", this), new Among("ano", -1, 1, "", this), new Among("iscano", 58, 1, "", this), new Among("avano", 58, 1, "", this), new Among("evano", 58, 1, "", this), new Among("ivano", 58, 1, "", this), new Among("eranno", -1, 1, "", this), new Among("iranno", -1, 1, "", this), new Among("ono", -1, 1, "", this), new Among("iscono", 65, 1, "", this), new Among("arono", 65, 1, "", this), new Among("erono", 65, 1, "", this), new Among("irono", 65, 1, "", this), new Among("erebbero", -1, 1, "", this), new Among("irebbero", -1, 1, "", this), new Among("assero", -1, 1, "", this), new Among("essero", -1, 1, "", this), new Among("issero", -1, 1, "", this), new Among("ato", -1, 1, "", this), new Among("ito", -1, 1, "", this), new Among("uto", -1, 1, "", this), new Among("avo", -1, 1, "", this), new Among("evo", -1, 1, "", this), new Among("ivo", -1, 1, "", this), new Among("ar", -1, 1, "", this), new Among("ir", -1, 1, "", this), new Among("er\u00E0", -1, 1, "", this), new Among("ir\u00E0", -1, 1, "", this), new Among("er\u00F2", -1, 1, "", this), new Among("ir\u00F2", -1, 1, "", this) };
 }
 private void InitBlock()
 {
     a_0 = new Among[] { new Among("\u00D7\u00DB\u00C9", -1, 1, "", this), new Among("\u00C9\u00D7\u00DB\u00C9", 0, 2, "", this), new Among("\u00D9\u00D7\u00DB\u00C9", 0, 2, "", this), new Among("\u00D7", -1, 1, "", this), new Among("\u00C9\u00D7", 3, 2, "", this), new Among("\u00D9\u00D7", 3, 2, "", this), new Among("\u00D7\u00DB\u00C9\u00D3\u00D8", -1, 1, "", this), new Among("\u00C9\u00D7\u00DB\u00C9\u00D3\u00D8", 6, 2, "", this), new Among("\u00D9\u00D7\u00DB\u00C9\u00D3\u00D8", 6, 2, "", this) };
     a_1 = new Among[] { new Among("\u00C0\u00C0", -1, 1, "", this), new Among("\u00C5\u00C0", -1, 1, "", this), new Among("\u00CF\u00C0", -1, 1, "", this), new Among("\u00D5\u00C0", -1, 1, "", this), new Among("\u00C5\u00C5", -1, 1, "", this), new Among("\u00C9\u00C5", -1, 1, "", this), new Among("\u00CF\u00C5", -1, 1, "", this), new Among("\u00D9\u00C5", -1, 1, "", this), new Among("\u00C9\u00C8", -1, 1, "", this), new Among("\u00D9\u00C8", -1, 1, "", this), new Among("\u00C9\u00CD\u00C9", -1, 1, "", this), new Among("\u00D9\u00CD\u00C9", -1, 1, "", this), new Among("\u00C5\u00CA", -1, 1, "", this), new Among("\u00C9\u00CA", -1, 1, "", this), new Among("\u00CF\u00CA", -1, 1, "", this), new Among("\u00D9\u00CA", -1, 1, "", this), new Among("\u00C5\u00CD", -1, 1, "", this), new Among("\u00C9\u00CD", -1, 1, "", this), new Among("\u00CF\u00CD", -1, 1, "", this), new Among("\u00D9\u00CD", -1, 1, "", this), new Among("\u00C5\u00C7\u00CF", -1, 1, "", this), new Among("\u00CF\u00C7\u00CF", -1, 1, "", this), new Among("\u00C1\u00D1", -1, 1, "", this), new Among("\u00D1\u00D1", -1, 1, "", this), new Among("\u00C5\u00CD\u00D5", -1, 1, "", this), new Among("\u00CF\u00CD\u00D5", -1, 1, "", this) };
     a_2 = new Among[] { new Among("\u00C5\u00CD", -1, 1, "", this), new Among("\u00CE\u00CE", -1, 1, "", this), new Among("\u00D7\u00DB", -1, 1, "", this), new Among("\u00C9\u00D7\u00DB", 2, 2, "", this), new Among("\u00D9\u00D7\u00DB", 2, 2, "", this), new Among("\u00DD", -1, 1, "", this), new Among("\u00C0\u00DD", 5, 1, "", this), new Among("\u00D5\u00C0\u00DD", 6, 2, "", this) };
     a_3 = new Among[] { new Among("\u00D3\u00D1", -1, 1, "", this), new Among("\u00D3\u00D8", -1, 1, "", this) };
     a_4 = new Among[] { new Among("\u00C0", -1, 2, "", this), new Among("\u00D5\u00C0", 0, 2, "", this), new Among("\u00CC\u00C1", -1, 1, "", this), new Among("\u00C9\u00CC\u00C1", 2, 2, "", this), new Among("\u00D9\u00CC\u00C1", 2, 2, "", this), new Among("\u00CE\u00C1", -1, 1, "", this), new Among("\u00C5\u00CE\u00C1", 5, 2, "", this), new Among("\u00C5\u00D4\u00C5", -1, 1, "", this), new Among("\u00C9\u00D4\u00C5", -1, 2, "", this), new Among("\u00CA\u00D4\u00C5", -1, 1, "", this), new Among("\u00C5\u00CA\u00D4\u00C5", 9, 2, "", this), new Among("\u00D5\u00CA\u00D4\u00C5", 9, 2, "", this), new Among("\u00CC\u00C9", -1, 1, "", this), new Among("\u00C9\u00CC\u00C9", 12, 2, "", this), new Among("\u00D9\u00CC\u00C9", 12, 2, "", this), new Among("\u00CA", -1, 1, "", this), new Among("\u00C5\u00CA", 15, 2, "", this), new Among("\u00D5\u00CA", 15, 2, "", this), new Among("\u00CC", -1, 1, "", this), new Among("\u00C9\u00CC", 18, 2, "", this), new Among("\u00D9\u00CC", 18, 2, "", this), new Among("\u00C5\u00CD", -1, 1, "", this), new Among("\u00C9\u00CD", -1, 2, "", this), new Among("\u00D9\u00CD", -1, 2, "", this), new Among("\u00CE", -1, 1, "", this), new Among("\u00C5\u00CE", 24, 2, "", this), new Among("\u00CC\u00CF", -1, 1, "", this), new Among("\u00C9\u00CC\u00CF", 26, 2, "", this), new Among("\u00D9\u00CC\u00CF", 26, 2, "", this), new Among("\u00CE\u00CF", -1, 1, "", this), new Among("\u00C5\u00CE\u00CF", 29, 2, "", this), new Among("\u00CE\u00CE\u00CF", 29, 1, "", this), new Among("\u00C0\u00D4", -1, 1, "", this), new Among("\u00D5\u00C0\u00D4", 32, 2, "", this), new Among("\u00C5\u00D4", -1, 1, "", this), new Among("\u00D5\u00C5\u00D4", 34, 2, "", this), new Among("\u00C9\u00D4", -1, 2, "", this), new Among("\u00D1\u00D4", -1, 2, "", this), new Among("\u00D9\u00D4", -1, 2, "", this), new Among("\u00D4\u00D8", -1, 1, "", this), new Among("\u00C9\u00D4\u00D8", 39, 2, "", this), new Among("\u00D9\u00D4\u00D8", 39, 2, "", this), new Among("\u00C5\u00DB\u00D8", -1, 1, "", this),
                         new Among("\u00C9\u00DB\u00D8", -1, 2, "", this), new Among("\u00CE\u00D9", -1, 1, "", this), new Among("\u00C5\u00CE\u00D9", 44, 2, "", this) };
     a_5 = new Among[] { new Among("\u00C0", -1, 1, "", this), new Among("\u00C9\u00C0", 0, 1, "", this), new Among("\u00D8\u00C0", 0, 1, "", this), new Among("\u00C1", -1, 1, "", this), new Among("\u00C5", -1, 1, "", this), new Among("\u00C9\u00C5", 4, 1, "", this), new Among("\u00D8\u00C5", 4, 1, "", this), new Among("\u00C1\u00C8", -1, 1, "", this), new Among("\u00D1\u00C8", -1, 1, "", this), new Among("\u00C9\u00D1\u00C8", 8, 1, "", this), new Among("\u00C9", -1, 1, "", this), new Among("\u00C5\u00C9", 10, 1, "", this), new Among("\u00C9\u00C9", 10, 1, "", this), new Among("\u00C1\u00CD\u00C9", 10, 1, "", this), new Among("\u00D1\u00CD\u00C9", 10, 1, "", this), new Among("\u00C9\u00D1\u00CD\u00C9", 14, 1, "", this), new Among("\u00CA", -1, 1, "", this), new Among("\u00C5\u00CA", 16, 1, "", this), new Among("\u00C9\u00C5\u00CA", 17, 1, "", this), new Among("\u00C9\u00CA", 16, 1, "", this), new Among("\u00CF\u00CA", 16, 1, "", this), new Among("\u00C1\u00CD", -1, 1, "", this), new Among("\u00C5\u00CD", -1, 1, "", this), new Among("\u00C9\u00C5\u00CD", 22, 1, "", this), new Among("\u00CF\u00CD", -1, 1, "", this), new Among("\u00D1\u00CD", -1, 1, "", this), new Among("\u00C9\u00D1\u00CD", 25, 1, "", this), new Among("\u00CF", -1, 1, "", this), new Among("\u00D1", -1, 1, "", this), new Among("\u00C9\u00D1", 28, 1, "", this), new Among("\u00D8\u00D1", 28, 1, "", this), new Among("\u00D5", -1, 1, "", this), new Among("\u00C5\u00D7", -1, 1, "", this), new Among("\u00CF\u00D7", -1, 1, "", this), new Among("\u00D8", -1, 1, "", this), new Among("\u00D9", -1, 1, "", this) };
     a_6 = new Among[] { new Among("\u00CF\u00D3\u00D4", -1, 1, "", this), new Among("\u00CF\u00D3\u00D4\u00D8", -1, 1, "", this) };
     a_7 = new Among[] { new Among("\u00C5\u00CA\u00DB\u00C5", -1, 1, "", this), new Among("\u00CE", -1, 2, "", this), new Among("\u00D8", -1, 3, "", this), new Among("\u00C5\u00CA\u00DB", -1, 1, "", this) };
 }
Exemple #6
0
 private void InitBlock()
 {
     a_0 = new Among[] { new Among("gener", -1, -1, "", this) };
     a_1 = new Among[] { new Among("ied", -1, 2, "", this), new Among("s", -1, 3, "", this), new Among("ies", 1, 2, "", this), new Among("sses", 1, 1, "", this), new Among("ss", 1, -1, "", this), new Among("us", 1, -1, "", this) };
     a_2 = new Among[] { new Among("", -1, 3, "", this), new Among("bb", 0, 2, "", this), new Among("dd", 0, 2, "", this), new Among("ff", 0, 2, "", this), new Among("gg", 0, 2, "", this), new Among("bl", 0, 1, "", this), new Among("mm", 0, 2, "", this), new Among("nn", 0, 2, "", this), new Among("pp", 0, 2, "", this), new Among("rr", 0, 2, "", this), new Among("at", 0, 1, "", this), new Among("tt", 0, 2, "", this), new Among("iz", 0, 1, "", this) };
     a_3 = new Among[] { new Among("ed", -1, 2, "", this), new Among("eed", 0, 1, "", this), new Among("ing", -1, 2, "", this), new Among("edly", -1, 2, "", this), new Among("eedly", 3, 1, "", this), new Among("ingly", -1, 2, "", this) };
     a_4 = new Among[] { new Among("anci", -1, 3, "", this), new Among("enci", -1, 2, "", this), new Among("ogi", -1, 13, "", this), new Among("li", -1, 16, "", this), new Among("bli", 3, 12, "", this), new Among("abli", 4, 4, "", this), new Among("alli", 3, 8, "", this), new Among("fulli", 3, 14, "", this), new Among("lessli", 3, 15, "", this), new Among("ousli", 3, 10, "", this), new Among("entli", 3, 5, "", this), new Among("aliti", -1, 8, "", this), new Among("biliti", -1, 12, "", this), new Among("iviti", -1, 11, "", this), new Among("tional", -1, 1, "", this), new Among("ational", 14, 7, "", this), new Among("alism", -1, 8, "", this), new Among("ation", -1, 7, "", this), new Among("ization", 17, 6, "", this), new Among("izer", -1, 6, "", this), new Among("ator", -1, 7, "", this), new Among("iveness", -1, 11, "", this), new Among("fulness", -1, 9, "", this), new Among("ousness", -1, 10, "", this) };
     a_5 = new Among[] { new Among("icate", -1, 4, "", this), new Among("ative", -1, 6, "", this), new Among("alize", -1, 3, "", this), new Among("iciti", -1, 4, "", this), new Among("ical", -1, 4, "", this), new Among("tional", -1, 1, "", this), new Among("ational", 5, 2, "", this), new Among("ful", -1, 5, "", this), new Among("ness", -1, 5, "", this) };
     a_6 = new Among[] { new Among("ic", -1, 1, "", this), new Among("ance", -1, 1, "", this), new Among("ence", -1, 1, "", this), new Among("able", -1, 1, "", this), new Among("ible", -1, 1, "", this), new Among("ate", -1, 1, "", this), new Among("ive", -1, 1, "", this), new Among("ize", -1, 1, "", this), new Among("iti", -1, 1, "", this), new Among("al", -1, 1, "", this), new Among("ism", -1, 1, "", this), new Among("ion", -1, 2, "", this), new Among("er", -1, 1, "", this), new Among("ous", -1, 1, "", this), new Among("ant", -1, 1, "", this), new Among("ent", -1, 1, "", this), new Among("ment", 15, 1, "", this), new Among("ement", 16, 1, "", this) };
     a_7 = new Among[] { new Among("e", -1, 1, "", this), new Among("l", -1, 2, "", this) };
     a_8 = new Among[] { new Among("succeed", -1, -1, "", this), new Among("proceed", -1, -1, "", this), new Among("exceed", -1, -1, "", this), new Among("canning", -1, -1, "", this), new Among("inning", -1, -1, "", this), new Among("earring", -1, -1, "", this), new Among("herring", -1, -1, "", this), new Among("outing", -1, -1, "", this) };
     a_9 = new Among[] { new Among("andes", -1, -1, "", this), new Among("atlas", -1, -1, "", this), new Among("bias", -1, -1, "", this), new Among("cosmos", -1, -1, "", this), new Among("dying", -1, 3, "", this), new Among("early", -1, 9, "", this), new Among("gently", -1, 7, "", this), new Among("howe", -1, -1, "", this), new Among("idly", -1, 6, "", this), new Among("lying", -1, 4, "", this), new Among("news", -1, -1, "", this), new Among("only", -1, 10, "", this), new Among("singly", -1, 11, "", this), new Among("skies", -1, 2, "", this), new Among("skis", -1, 1, "", this), new Among("sky", -1, -1, "", this), new Among("tying", -1, 5, "", this), new Among("ugly", -1, 8, "", this) };
 }
Exemple #7
0
 private void InitBlock()
 {
     a_0 = new Among[] { new Among("pa", -1, 1, "", this), new Among("sti", -1, 2, "", this), new Among("kaan", -1, 1, "", this), new Among("han", -1, 1, "", this), new Among("kin", -1, 1, "", this), new Among("h\u00E4n", -1, 1, "", this), new Among("k\u00E4\u00E4n", -1, 1, "", this), new Among("ko", -1, 1, "", this), new Among("p\u00E4", -1, 1, "", this), new Among("k\u00F6", -1, 1, "", this) };
     a_1 = new Among[] { new Among("lla", -1, -1, "", this), new Among("na", -1, -1, "", this), new Among("ssa", -1, -1, "", this), new Among("ta", -1, -1, "", this), new Among("lta", 3, -1, "", this), new Among("sta", 3, -1, "", this) };
     a_2 = new Among[] { new Among("ll\u00E4", -1, -1, "", this), new Among("n\u00E4", -1, -1, "", this), new Among("ss\u00E4", -1, -1, "", this), new Among("t\u00E4", -1, -1, "", this), new Among("lt\u00E4", 3, -1, "", this), new Among("st\u00E4", 3, -1, "", this) };
     a_3 = new Among[] { new Among("lle", -1, -1, "", this), new Among("ine", -1, -1, "", this) };
     a_4 = new Among[] { new Among("nsa", -1, 3, "", this), new Among("mme", -1, 3, "", this), new Among("nne", -1, 3, "", this), new Among("ni", -1, 2, "", this), new Among("si", -1, 1, "", this), new Among("an", -1, 4, "", this), new Among("en", -1, 6, "", this), new Among("\u00E4n", -1, 5, "", this), new Among("ns\u00E4", -1, 3, "", this) };
     a_5 = new Among[] { new Among("aa", -1, -1, "", this), new Among("ee", -1, -1, "", this), new Among("ii", -1, -1, "", this), new Among("oo", -1, -1, "", this), new Among("uu", -1, -1, "", this), new Among("\u00E4\u00E4", -1, -1, "", this), new Among("\u00F6\u00F6", -1, -1, "", this) };
     a_6 = new Among[] { new Among("a", -1, 8, "", this), new Among("lla", 0, -1, "", this), new Among("na", 0, -1, "", this), new Among("ssa", 0, -1, "", this), new Among("ta", 0, -1, "", this), new Among("lta", 4, -1, "", this), new Among("sta", 4, -1, "", this), new Among("tta", 4, 9, "", this), new Among("lle", -1, -1, "", this), new Among("ine", -1, -1, "", this), new Among("ksi", -1, -1, "", this), new Among("n", -1, 7, "", this), new Among("han", 11, 1, "", this), new Among("den", 11, -1, "r_VI", this), new Among("seen", 11, -1, "r_LONG", this), new Among("hen", 11, 2, "", this), new Among("tten", 11, -1, "r_VI", this), new Among("hin", 11, 3, "", this), new Among("siin", 11, -1, "r_VI", this), new Among("hon", 11, 4, "", this), new Among("h\u00E4n", 11, 5, "", this), new Among("h\u00F6n", 11, 6, "", this), new Among("\u00E4", -1, 8, "", this), new Among("ll\u00E4", 22, -1, "", this), new Among("n\u00E4", 22, -1, "", this), new Among("ss\u00E4", 22, -1, "", this), new Among("t\u00E4", 22, -1, "", this), new Among("lt\u00E4", 26, -1, "", this), new Among("st\u00E4", 26, -1, "", this), new Among("tt\u00E4", 26, 9, "", this) };
     a_7 = new Among[] { new Among("eja", -1, -1, "", this), new Among("mma", -1, 1, "", this), new Among("imma", 1, -1, "", this), new Among("mpa", -1, 1, "", this), new Among("impa", 3, -1, "", this), new Among("mmi", -1, 1, "", this), new Among("immi", 5, -1, "", this), new Among("mpi", -1, 1, "", this), new Among("impi", 7, -1, "", this), new Among("ej\u00E4", -1, -1, "", this), new Among("mm\u00E4", -1, 1, "", this), new Among("imm\u00E4", 10, -1, "", this), new Among("mp\u00E4", -1, 1, "", this), new Among("imp\u00E4", 12, -1, "", this) };
     a_8 = new Among[] { new Among("i", -1, -1, "", this), new Among("j", -1, -1, "", this) };
     a_9 = new Among[] { new Among("mma", -1, 1, "", this), new Among("imma", 0, -1, "", this) };
 }
Exemple #8
0
 private void InitBlock()
 {
     a_0 = new Among[] { new Among("", -1, 6, "", this), new Among("\u00E1", 0, 1, "", this), new Among("\u00E9", 0, 2, "", this), new Among("\u00ED", 0, 3, "", this), new Among("\u00F3", 0, 4, "", this), new Among("\u00FA", 0, 5, "", this) };
     a_1 = new Among[] { new Among("la", -1, -1, "", this), new Among("sela", 0, -1, "", this), new Among("le", -1, -1, "", this), new Among("me", -1, -1, "", this), new Among("se", -1, -1, "", this), new Among("lo", -1, -1, "", this), new Among("selo", 5, -1, "", this), new Among("las", -1, -1, "", this), new Among("selas", 7, -1, "", this), new Among("les", -1, -1, "", this), new Among("los", -1, -1, "", this), new Among("selos", 10, -1, "", this), new Among("nos", -1, -1, "", this) };
     a_2 = new Among[] { new Among("ando", -1, 6, "", this), new Among("iendo", -1, 6, "", this), new Among("yendo", -1, 7, "", this), new Among("\u00E1ndo", -1, 2, "", this), new Among("i\u00E9ndo", -1, 1, "", this), new Among("ar", -1, 6, "", this), new Among("er", -1, 6, "", this), new Among("ir", -1, 6, "", this), new Among("\u00E1r", -1, 3, "", this), new Among("\u00E9r", -1, 4, "", this), new Among("\u00EDr", -1, 5, "", this) };
     a_3 = new Among[] { new Among("ic", -1, -1, "", this), new Among("ad", -1, -1, "", this), new Among("os", -1, -1, "", this), new Among("iv", -1, 1, "", this) };
     a_4 = new Among[] { new Among("able", -1, 1, "", this), new Among("ible", -1, 1, "", this) };
     a_5 = new Among[] { new Among("ic", -1, 1, "", this), new Among("abil", -1, 1, "", this), new Among("iv", -1, 1, "", this) };
     a_6 = new Among[] { new Among("ica", -1, 1, "", this), new Among("encia", -1, 5, "", this), new Among("adora", -1, 2, "", this), new Among("osa", -1, 1, "", this), new Among("ista", -1, 1, "", this), new Among("iva", -1, 9, "", this), new Among("anza", -1, 1, "", this), new Among("log\u00EDa", -1, 3, "", this), new Among("idad", -1, 8, "", this), new Among("able", -1, 1, "", this), new Among("ible", -1, 1, "", this), new Among("mente", -1, 7, "", this), new Among("amente", 11, 6, "", this), new Among("aci\u00F3n", -1, 2, "", this), new Among("uci\u00F3n", -1, 4, "", this), new Among("ico", -1, 1, "", this), new Among("ismo", -1, 1, "", this), new Among("oso", -1, 1, "", this), new Among("amiento", -1, 1, "", this), new Among("imiento", -1, 1, "", this), new Among("ivo", -1, 9, "", this), new Among("ador", -1, 2, "", this), new Among("icas", -1, 1, "", this), new Among("encias", -1, 5, "", this), new Among("adoras", -1, 2, "", this), new Among("osas", -1, 1, "", this), new Among("istas", -1, 1, "", this), new Among("ivas", -1, 9, "", this), new Among("anzas", -1, 1, "", this), new Among("log\u00EDas", -1, 3, "", this), new Among("idades", -1, 8, "", this), new Among("ables", -1, 1, "", this), new Among("ibles", -1, 1, "", this), new Among("aciones", -1, 2, "", this), new Among("uciones", -1, 4, "", this), new Among("adores", -1, 2, "", this), new Among("icos", -1, 1, "", this), new Among("ismos", -1, 1, "", this), new Among("osos", -1, 1, "", this), new Among("amientos", -1, 1, "", this), new Among("imientos", -1, 1, "", this), new Among("ivos", -1, 9, "", this) };
     a_7 = new Among[] { new Among("ya", -1, 1, "", this), new Among("ye", -1, 1, "", this), new Among("yan", -1, 1, "", this), new Among("yen", -1, 1, "", this), new Among("yeron", -1, 1, "", this), new Among("yendo", -1, 1, "", this), new Among("yo", -1, 1, "", this), new Among("yas", -1, 1, "", this), new Among("yes", -1, 1, "", this), new Among("yais", -1, 1, "", this), new Among("yamos", -1, 1, "", this), new Among("y\u00F3", -1, 1, "", this) };
     a_8 = new Among[] { new Among("aba", -1, 2, "", this), new Among("ada", -1, 2, "", this), new Among("ida", -1, 2, "", this), new Among("ara", -1, 2, "", this), new Among("iera", -1, 2, "", this), new Among("\u00EDa", -1, 2, "", this), new Among("ar\u00EDa", 5, 2, "", this), new Among("er\u00EDa", 5, 2, "", this), new Among("ir\u00EDa", 5, 2, "", this), new Among("ad", -1, 2, "", this), new Among("ed", -1, 2, "", this), new Among("id", -1, 2, "", this), new Among("ase", -1, 2, "", this), new Among("iese", -1, 2, "", this), new Among("aste", -1, 2, "", this), new Among("iste", -1, 2, "", this), new Among("an", -1, 2, "", this), new Among("aban", 16, 2, "", this), new Among("aran", 16, 2, "", this), new Among("ieran", 16, 2, "", this), new Among("\u00EDan", 16, 2, "", this), new Among("ar\u00EDan", 20, 2, "", this), new Among("er\u00EDan", 20, 2, "", this), new Among("ir\u00EDan", 20, 2, "", this), new Among("en", -1, 1, "", this), new Among("asen", 24, 2, "", this), new Among("iesen", 24, 2, "", this), new Among("aron", -1, 2, "", this), new Among("ieron", -1, 2, "", this), new Among("ar\u00E1n", -1, 2, "", this), new Among("er\u00E1n", -1, 2, "", this), new Among("ir\u00E1n", -1, 2, "", this), new Among("ado", -1, 2, "", this), new Among("ido", -1, 2, "", this), new Among("ando", -1, 2, "", this), new Among("iendo", -1, 2, "", this), new Among("ar", -1, 2, "", this), new Among("er", -1, 2, "", this), new Among("ir", -1, 2, "", this), new Among("as", -1, 2, "", this), new Among("abas", 39, 2, "", this), new Among("adas", 39, 2, "", this), new Among("idas", 39, 2, "", this), new Among("aras", 39, 2, "", this), new Among("ieras", 39, 2, "", this), new Among("\u00EDas", 39, 2, "", this), new Among("ar\u00EDas", 45, 2, "", this), new Among("er\u00EDas", 45, 2, "", this), new Among("ir\u00EDas", 45, 2, "", this), new Among("es", -1, 1, "", this), new Among("ases", 49, 2, "", this), new Among("ieses", 49, 2, "", this), new Among("abais", -1, 2, "", this), new Among("arais", -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             1, 2, "", this), new Among("ierais", -1, 2, "", this), new Among("\u00EDais", -1, 2, "", this), new Among("ar\u00EDais", 55, 2, "", this), new Among("er\u00EDais", 55, 2, "", this), new Among("ir\u00EDais", 55, 2, "", this), new Among("aseis", -1, 2, "", this), new Among("ieseis", -1, 2, "", this), new Among("asteis", -1, 2, "", this), new Among("isteis", -1, 2, "", this), new Among("\u00E1is", -1, 2, "", this), new Among("\u00E9is", -1, 1, "", this), new Among("ar\u00E9is", 64, 2, "", this), new Among("er\u00E9is", 64, 2, "", this), new Among("ir\u00E9is", 64, 2, "", this), new Among("ados", -1, 2, "", this), new Among("idos", -1, 2, "", this), new Among("amos", -1, 2, "", this), new Among("\u00E1bamos", 70, 2, "", this), new Among("\u00E1ramos", 70, 2, "", this), new Among("i\u00E9ramos", 70, 2, "", this), new Among("\u00EDamos", 70, 2, "", this), new Among("ar\u00EDamos", 74, 2, "", this), new Among("er\u00EDamos", 74, 2, "", this), new Among("ir\u00EDamos", 74, 2, "", this), new Among("emos", -1, 1, "", this), new Among("aremos", 78, 2, "", this), new Among("eremos", 78, 2, "", this), new Among("iremos", 78, 2, "", this), new Among("\u00E1semos", 78, 2, "", this), new Among("i\u00E9semos", 78, 2, "", this), new Among("imos", -1, 2, "", this), new Among("ar\u00E1s", -1, 2, "", this), new Among("er\u00E1s", -1, 2, "", this), new Among("ir\u00E1s", -1, 2, "", this), new Among("\u00EDs", -1, 2, "", this), new Among("ar\u00E1", -1, 2, "", this), new Among("er\u00E1", -1, 2, "", this), new Among("ir\u00E1", -1, 2, "", this), new Among("ar\u00E9", -1, 2, "", this), new Among("er\u00E9", -1, 2, "", this), new Among("ir\u00E9", -1, 2, "", this), new Among("i\u00F3", -1, 2, "", this) };
     a_9 = new Among[] { new Among("a", -1, 1, "", this), new Among("e", -1, 2, "", this), new Among("o", -1, 1, "", this), new Among("os", -1, 1, "", this), new Among("\u00E1", -1, 1, "", this), new Among("\u00E9", -1, 2, "", this), new Among("\u00ED", -1, 1, "", this), new Among("\u00F3", -1, 1, "", this) };
 }
Exemple #9
0
        public RomanianStemmer()
        {
            a_0 = new Among[] {
                new Among("", -1, 3, "", null),
                new Among("I", 0, 1, "", null),
                new Among("U", 0, 2, "", null)
            };

            a_1 = new Among[] {
                new Among("ea", -1, 3, "", null),
                new Among("a\u0163ia", -1, 7, "", null),
                new Among("aua", -1, 2, "", null),
                new Among("iua", -1, 4, "", null),
                new Among("a\u0163ie", -1, 7, "", null),
                new Among("ele", -1, 3, "", null),
                new Among("ile", -1, 5, "", null),
                new Among("iile", 6, 4, "", null),
                new Among("iei", -1, 4, "", null),
                new Among("atei", -1, 6, "", null),
                new Among("ii", -1, 4, "", null),
                new Among("ului", -1, 1, "", null),
                new Among("ul", -1, 1, "", null),
                new Among("elor", -1, 3, "", null),
                new Among("ilor", -1, 4, "", null),
                new Among("iilor", 14, 4, "", null)
            };

            a_2 = new Among[] {
                new Among("icala", -1, 4, "", null),
                new Among("iciva", -1, 4, "", null),
                new Among("ativa", -1, 5, "", null),
                new Among("itiva", -1, 6, "", null),
                new Among("icale", -1, 4, "", null),
                new Among("a\u0163iune", -1, 5, "", null),
                new Among("i\u0163iune", -1, 6, "", null),
                new Among("atoare", -1, 5, "", null),
                new Among("itoare", -1, 6, "", null),
                new Among("\u0103toare", -1, 5, "", null),
                new Among("icitate", -1, 4, "", null),
                new Among("abilitate", -1, 1, "", null),
                new Among("ibilitate", -1, 2, "", null),
                new Among("ivitate", -1, 3, "", null),
                new Among("icive", -1, 4, "", null),
                new Among("ative", -1, 5, "", null),
                new Among("itive", -1, 6, "", null),
                new Among("icali", -1, 4, "", null),
                new Among("atori", -1, 5, "", null),
                new Among("icatori", 18, 4, "", null),
                new Among("itori", -1, 6, "", null),
                new Among("\u0103tori", -1, 5, "", null),
                new Among("icitati", -1, 4, "", null),
                new Among("abilitati", -1, 1, "", null),
                new Among("ivitati", -1, 3, "", null),
                new Among("icivi", -1, 4, "", null),
                new Among("ativi", -1, 5, "", null),
                new Among("itivi", -1, 6, "", null),
                new Among("icit\u0103i", -1, 4, "", null),
                new Among("abilit\u0103i", -1, 1, "", null),
                new Among("ivit\u0103i", -1, 3, "", null),
                new Among("icit\u0103\u0163i", -1, 4, "", null),
                new Among("abilit\u0103\u0163i", -1, 1, "", null),
                new Among("ivit\u0103\u0163i", -1, 3, "", null),
                new Among("ical", -1, 4, "", null),
                new Among("ator", -1, 5, "", null),
                new Among("icator", 35, 4, "", null),
                new Among("itor", -1, 6, "", null),
                new Among("\u0103tor", -1, 5, "", null),
                new Among("iciv", -1, 4, "", null),
                new Among("ativ", -1, 5, "", null),
                new Among("itiv", -1, 6, "", null),
                new Among("ical\u0103", -1, 4, "", null),
                new Among("iciv\u0103", -1, 4, "", null),
                new Among("ativ\u0103", -1, 5, "", null),
                new Among("itiv\u0103", -1, 6, "", null)
            };

            a_3 = new Among[] {
                new Among("ica", -1, 1, "", null),
                new Among("abila", -1, 1, "", null),
                new Among("ibila", -1, 1, "", null),
                new Among("oasa", -1, 1, "", null),
                new Among("ata", -1, 1, "", null),
                new Among("ita", -1, 1, "", null),
                new Among("anta", -1, 1, "", null),
                new Among("ista", -1, 3, "", null),
                new Among("uta", -1, 1, "", null),
                new Among("iva", -1, 1, "", null),
                new Among("ic", -1, 1, "", null),
                new Among("ice", -1, 1, "", null),
                new Among("abile", -1, 1, "", null),
                new Among("ibile", -1, 1, "", null),
                new Among("isme", -1, 3, "", null),
                new Among("iune", -1, 2, "", null),
                new Among("oase", -1, 1, "", null),
                new Among("ate", -1, 1, "", null),
                new Among("itate", 17, 1, "", null),
                new Among("ite", -1, 1, "", null),
                new Among("ante", -1, 1, "", null),
                new Among("iste", -1, 3, "", null),
                new Among("ute", -1, 1, "", null),
                new Among("ive", -1, 1, "", null),
                new Among("ici", -1, 1, "", null),
                new Among("abili", -1, 1, "", null),
                new Among("ibili", -1, 1, "", null),
                new Among("iuni", -1, 2, "", null),
                new Among("atori", -1, 1, "", null),
                new Among("osi", -1, 1, "", null),
                new Among("ati", -1, 1, "", null),
                new Among("itati", 30, 1, "", null),
                new Among("iti", -1, 1, "", null),
                new Among("anti", -1, 1, "", null),
                new Among("isti", -1, 3, "", null),
                new Among("uti", -1, 1, "", null),
                new Among("i\u015Fti", -1, 3, "", null),
                new Among("ivi", -1, 1, "", null),
                new Among("it\u0103i", -1, 1, "", null),
                new Among("o\u015Fi", -1, 1, "", null),
                new Among("it\u0103\u0163i", -1, 1, "", null),
                new Among("abil", -1, 1, "", null),
                new Among("ibil", -1, 1, "", null),
                new Among("ism", -1, 3, "", null),
                new Among("ator", -1, 1, "", null),
                new Among("os", -1, 1, "", null),
                new Among("at", -1, 1, "", null),
                new Among("it", -1, 1, "", null),
                new Among("ant", -1, 1, "", null),
                new Among("ist", -1, 3, "", null),
                new Among("ut", -1, 1, "", null),
                new Among("iv", -1, 1, "", null),
                new Among("ic\u0103", -1, 1, "", null),
                new Among("abil\u0103", -1, 1, "", null),
                new Among("ibil\u0103", -1, 1, "", null),
                new Among("oas\u0103", -1, 1, "", null),
                new Among("at\u0103", -1, 1, "", null),
                new Among("it\u0103", -1, 1, "", null),
                new Among("ant\u0103", -1, 1, "", null),
                new Among("ist\u0103", -1, 3, "", null),
                new Among("ut\u0103", -1, 1, "", null),
                new Among("iv\u0103", -1, 1, "", null)
            };

            a_4 = new Among[] {
                new Among("ea", -1, 1, "", null),
                new Among("ia", -1, 1, "", null),
                new Among("esc", -1, 1, "", null),
                new Among("\u0103sc", -1, 1, "", null),
                new Among("ind", -1, 1, "", null),
                new Among("\u00E2nd", -1, 1, "", null),
                new Among("are", -1, 1, "", null),
                new Among("ere", -1, 1, "", null),
                new Among("ire", -1, 1, "", null),
                new Among("\u00E2re", -1, 1, "", null),
                new Among("se", -1, 2, "", null),
                new Among("ase", 10, 1, "", null),
                new Among("sese", 10, 2, "", null),
                new Among("ise", 10, 1, "", null),
                new Among("use", 10, 1, "", null),
                new Among("\u00E2se", 10, 1, "", null),
                new Among("e\u015Fte", -1, 1, "", null),
                new Among("\u0103\u015Fte", -1, 1, "", null),
                new Among("eze", -1, 1, "", null),
                new Among("ai", -1, 1, "", null),
                new Among("eai", 19, 1, "", null),
                new Among("iai", 19, 1, "", null),
                new Among("sei", -1, 2, "", null),
                new Among("e\u015Fti", -1, 1, "", null),
                new Among("\u0103\u015Fti", -1, 1, "", null),
                new Among("ui", -1, 1, "", null),
                new Among("ezi", -1, 1, "", null),
                new Among("\u00E2i", -1, 1, "", null),
                new Among("a\u015Fi", -1, 1, "", null),
                new Among("se\u015Fi", -1, 2, "", null),
                new Among("ase\u015Fi", 29, 1, "", null),
                new Among("sese\u015Fi", 29, 2, "", null),
                new Among("ise\u015Fi", 29, 1, "", null),
                new Among("use\u015Fi", 29, 1, "", null),
                new Among("\u00E2se\u015Fi", 29, 1, "", null),
                new Among("i\u015Fi", -1, 1, "", null),
                new Among("u\u015Fi", -1, 1, "", null),
                new Among("\u00E2\u015Fi", -1, 1, "", null),
                new Among("a\u0163i", -1, 2, "", null),
                new Among("ea\u0163i", 38, 1, "", null),
                new Among("ia\u0163i", 38, 1, "", null),
                new Among("e\u0163i", -1, 2, "", null),
                new Among("i\u0163i", -1, 2, "", null),
                new Among("\u00E2\u0163i", -1, 2, "", null),
                new Among("ar\u0103\u0163i", -1, 1, "", null),
                new Among("ser\u0103\u0163i", -1, 2, "", null),
                new Among("aser\u0103\u0163i", 45, 1, "", null),
                new Among("seser\u0103\u0163i", 45, 2, "", null),
                new Among("iser\u0103\u0163i", 45, 1, "", null),
                new Among("user\u0103\u0163i", 45, 1, "", null),
                new Among("\u00E2ser\u0103\u0163i", 45, 1, "", null),
                new Among("ir\u0103\u0163i", -1, 1, "", null),
                new Among("ur\u0103\u0163i", -1, 1, "", null),
                new Among("\u00E2r\u0103\u0163i", -1, 1, "", null),
                new Among("am", -1, 1, "", null),
                new Among("eam", 54, 1, "", null),
                new Among("iam", 54, 1, "", null),
                new Among("em", -1, 2, "", null),
                new Among("asem", 57, 1, "", null),
                new Among("sesem", 57, 2, "", null),
                new Among("isem", 57, 1, "", null),
                new Among("usem", 57, 1, "", null),
                new Among("\u00E2sem", 57, 1, "", null),
                new Among("im", -1, 2, "", null),
                new Among("\u00E2m", -1, 2, "", null),
                new Among("\u0103m", -1, 2, "", null),
                new Among("ar\u0103m", 65, 1, "", null),
                new Among("ser\u0103m", 65, 2, "", null),
                new Among("aser\u0103m", 67, 1, "", null),
                new Among("seser\u0103m", 67, 2, "", null),
                new Among("iser\u0103m", 67, 1, "", null),
                new Among("user\u0103m", 67, 1, "", null),
                new Among("\u00E2ser\u0103m", 67, 1, "", null),
                new Among("ir\u0103m", 65, 1, "", null),
                new Among("ur\u0103m", 65, 1, "", null),
                new Among("\u00E2r\u0103m", 65, 1, "", null),
                new Among("au", -1, 1, "", null),
                new Among("eau", 76, 1, "", null),
                new Among("iau", 76, 1, "", null),
                new Among("indu", -1, 1, "", null),
                new Among("\u00E2ndu", -1, 1, "", null),
                new Among("ez", -1, 1, "", null),
                new Among("easc\u0103", -1, 1, "", null),
                new Among("ar\u0103", -1, 1, "", null),
                new Among("ser\u0103", -1, 2, "", null),
                new Among("aser\u0103", 84, 1, "", null),
                new Among("seser\u0103", 84, 2, "", null),
                new Among("iser\u0103", 84, 1, "", null),
                new Among("user\u0103", 84, 1, "", null),
                new Among("\u00E2ser\u0103", 84, 1, "", null),
                new Among("ir\u0103", -1, 1, "", null),
                new Among("ur\u0103", -1, 1, "", null),
                new Among("\u00E2r\u0103", -1, 1, "", null),
                new Among("eaz\u0103", -1, 1, "", null)
            };

            a_5 = new Among[] {
                new Among("a", -1, 1, "", null),
                new Among("e", -1, 1, "", null),
                new Among("ie", 1, 1, "", null),
                new Among("i", -1, 1, "", null),
                new Among("\u0103", -1, 1, "", null)
            };
        }
        internal int find_among(Among[] v, int v_size) {
            var i = 0;
            var j = v_size;

            var c = cursor;
            var l = limit;

            var common_i = 0;
            var common_j = 0;

            var first_key_inspected = false;
            while (true) {
                var k = i + ((j - i) >> 1);
                var diff = 0;
                var common = common_i < common_j ? common_i : common_j; // smaller
                var w = v[k];
                int i2;

                for (i2 = common; i2 < w.s_size; i2++) {
                    if (c + common == l) {
                        diff = -1;
                        break;
                    }
                    diff = sb[c + common] - w.s[i2];
                    if (diff != 0) break;
                    common++;
                }
                if (diff < 0) {
                    j = k;
                    common_j = common;
                } else {
                    i = k;
                    common_i = common;
                }
                if (j - i <= 1) {
                    if (i > 0) break; // v->s has been inspected
                    if (j == i) break; // only one item in v
                    // - but now we need to go round once more to get
                    // v->s inspected. This looks messy, but is actually
                    // the optimal approach.
                    if (first_key_inspected) break;
                    first_key_inspected = true;
                }
            }
            while (true) {
                var w = v[i];
                if (common_i >= w.s_size) {
                    cursor = c + w.s_size;
                    if (w.method == null) return w.result;
                    //bool res;
                    //try
                    //{
                    //    Object resobj = w.method.invoke(w.methodobject,new Object[0]);
                    //    res = resobj.toString().equals("true");
                    //}
                    //catch (InvocationTargetException e)
                    //{
                    //    res = false;
                    //    // FIXME - debug message
                    //}
                    //catch (IllegalAccessException e)
                    //{
                    //    res = false;
                    //// FIXME - debug message
                    //}
                    //cursor = c + w.s_size;
                    //if (res) return w.result;
                }
                i = w.substring_i;
                if (i < 0) return 0;
            }
        }
 private void InitBlock()
 {
     a_0 = new Among[] { new Among("a", -1, 1, "", this), new Among("arna", 0, 1, "", this), new Among("erna", 0, 1, "", this), new Among("heterna", 2, 1, "", this), new Among("orna", 0, 1, "", this), new Among("ad", -1, 1, "", this), new Among("e", -1, 1, "", this), new Among("ade", 6, 1, "", this), new Among("ande", 6, 1, "", this), new Among("arne", 6, 1, "", this), new Among("are", 6, 1, "", this), new Among("aste", 6, 1, "", this), new Among("en", -1, 1, "", this), new Among("anden", 12, 1, "", this), new Among("aren", 12, 1, "", this), new Among("heten", 12, 1, "", this), new Among("ern", -1, 1, "", this), new Among("ar", -1, 1, "", this), new Among("er", -1, 1, "", this), new Among("heter", 18, 1, "", this), new Among("or", -1, 1, "", this), new Among("s", -1, 2, "", this), new Among("as", 21, 1, "", this), new Among("arnas", 22, 1, "", this), new Among("ernas", 22, 1, "", this), new Among("ornas", 22, 1, "", this), new Among("es", 21, 1, "", this), new Among("ades", 26, 1, "", this), new Among("andes", 26, 1, "", this), new Among("ens", 21, 1, "", this), new Among("arens", 29, 1, "", this), new Among("hetens", 29, 1, "", this), new Among("erns", 21, 1, "", this), new Among("at", -1, 1, "", this), new Among("andet", -1, 1, "", this), new Among("het", -1, 1, "", this), new Among("ast", -1, 1, "", this) };
     a_1 = new Among[] { new Among("dd", -1, -1, "", this), new Among("gd", -1, -1, "", this), new Among("nn", -1, -1, "", this), new Among("dt", -1, -1, "", this), new Among("gt", -1, -1, "", this), new Among("kt", -1, -1, "", this), new Among("tt", -1, -1, "", this) };
     a_2 = new Among[] { new Among("ig", -1, 1, "", this), new Among("lig", 0, 1, "", this), new Among("els", -1, 1, "", this), new Among("fullt", -1, 3, "", this), new Among("l\u00F6st", -1, 2, "", this) };
 }
Exemple #12
0
        /// <summary>
        ///   Searches if the current buffer matches against one of the
        ///   amongs, starting from the current cursor position and going
        ///   backwards.
        /// </summary>
        ///
        protected int find_among_b(Among[] v)
        {
            int i = 0;
            int j = v.Length;

            int c  = cursor;
            int lb = limit_backward;

            int common_i = 0;
            int common_j = 0;

            bool first_key_inspected = false;

            while (true)
            {
                int   k      = i + ((j - i) >> 1);
                int   diff   = 0;
                int   common = common_i < common_j ? common_i : common_j;
                Among w      = v[k];

                for (int i2 = w.SearchString.Length - 1 - common; i2 >= 0; i2--)
                {
                    if (c - common == lb)
                    {
                        diff = -1;
                        break;
                    }

                    diff = current[c - 1 - common] - w.SearchString[i2];

                    if (diff != 0)
                    {
                        break;
                    }

                    common++;
                }

                if (diff < 0)
                {
                    j        = k;
                    common_j = common;
                }
                else
                {
                    i        = k;
                    common_i = common;
                }

                if (j - i <= 1)
                {
                    if (i > 0)
                    {
                        break;
                    }

                    if (j == i)
                    {
                        break;
                    }

                    if (first_key_inspected)
                    {
                        break;
                    }

                    first_key_inspected = true;
                }
            }

            while (true)
            {
                Among w = v[i];

                if (common_i >= w.SearchString.Length)
                {
                    cursor = c - w.SearchString.Length;
                    if (w.Action == null)
                    {
                        return(w.Result);
                    }

                    int res = w.Action();
                    cursor = c - w.SearchString.Length;

                    if (res != 0)
                    {
                        return(w.Result);
                    }
                }

                i = w.MatchIndex;

                if (i < 0)
                {
                    return(0);
                }
            }
        }
Exemple #13
0
        /// <summary>
        ///   Searches if the current buffer matches against one of the
        ///   amongs, starting from the current cursor position and going
        ///   forward.
        /// </summary>
        ///
        protected int find_among(Among[] v)
        {
            int i = 0;
            int j = v.Length;

            int c = cursor;
            int l = limit;

            int common_i = 0;
            int common_j = 0;

            bool first_key_inspected = false;

            while (true)
            {
                int k      = i + ((j - i) >> 1);
                int diff   = 0;
                int common = common_i < common_j ? common_i : common_j; // smaller

                Among w = v[k];

                for (int i2 = common; i2 < w.SearchString.Length; i2++)
                {
                    if (c + common == l)
                    {
                        diff = -1;
                        break;
                    }

                    diff = current[c + common] - w.SearchString[i2];

                    if (diff != 0)
                    {
                        break;
                    }

                    common++;
                }

                if (diff < 0)
                {
                    j        = k;
                    common_j = common;
                }
                else
                {
                    i        = k;
                    common_i = common;
                }

                if (j - i <= 1)
                {
                    if (i > 0)
                    {
                        break; // v->s has been inspected
                    }
                    if (j == i)
                    {
                        break; // only one item in v
                    }
                    // - but now we need to go round once more to get
                    // v->s inspected. This looks messy, but is actually
                    // the optimal approach.

                    if (first_key_inspected)
                    {
                        break;
                    }
                    first_key_inspected = true;
                }
            }

            while (true)
            {
                Among w = v[i];

                if (common_i >= w.SearchString.Length)
                {
                    cursor = c + w.SearchString.Length;

                    if (w.Action == null)
                    {
                        return(w.Result);
                    }

                    int res = w.Action();
                    cursor = c + w.SearchString.Length;

                    if (res != 0)
                    {
                        return(w.Result);
                    }
                }

                i = w.MatchIndex;

                if (i < 0)
                {
                    return(0);
                }
            }
        }
Exemple #14
0
        //    // find_among_b is for backwards processing. Same comments apply

        internal int find_among_b(Among[] v, int v_size)
        {
            int  i                   = 0;
            int  j                   = v_size;
            int  c                   = cursor;
            int  lb                  = limit_backward;
            int  common_i            = 0;
            int  common_j            = 0;
            bool first_key_inspected = false;

            while (true)
            {
                int   k      = i + ((j - i) >> 1);
                int   diff   = 0;
                int   common = common_i < common_j ? common_i : common_j;
                Among w      = v[k];
                int   i2;
                for (i2 = w.s_size - 1 - common; i2 >= 0; i2--)
                {
                    if (c - common == lb)
                    {
                        diff = -1;
                        break;
                    }
                    //                   diff = current.charAt(c - 1 - common) - w.s[i2];
                    diff = current[c - 1 - common] - w.s[i2];
                    if (diff != 0)
                    {
                        break;
                    }
                    common++;
                }
                if (diff < 0)
                {
                    j        = k;
                    common_j = common;
                }
                else
                {
                    i        = k;
                    common_i = common;
                }
                if (j - i <= 1)
                {
                    if (i > 0)
                    {
                        break;
                    }
                    if (j == i)
                    {
                        break;
                    }
                    if (first_key_inspected)
                    {
                        break;
                    }
                    first_key_inspected = true;
                }
            }
            while (true)
            {
                Among w = v[i];
                if (common_i >= w.s_size)
                {
                    cursor = c - w.s_size;
                    if (w.method == null)
                    {
                        return(w.result);
                    }
                    //boolean res;
                    //try
                    //{
                    //    Object resobj = w.method.invoke(w.methodobject,
                    //        new Object[0]);
                    //    res = resobj.toString().equals("true");
                    // }
                    //catch (InvocationTargetException e)
                    //{
                    //    res = false;
                    //    // FIXME - debug message
                    // }
                    //catch (IllegalAccessException e)
                    //{
                    //    res = false;
                    //    // FIXME - debug message
                    // }
                    //cursor = c - w.s_size;
                    //if (res) return w.result;
                }
                i = w.substring_i;
                if (i < 0)
                {
                    return(0);
                }
            }
        }
        //    // find_among_b is for backwards processing. Same comments apply

        internal int find_among_b(Among[] v, int v_size) {
            var i = 0;
            var j = v_size;
            var c = cursor;
            var lb = limit_backward;
            var common_i = 0;
            var common_j = 0;
            var first_key_inspected = false;
            while (true) {
                var k = i + ((j - i) >> 1);
                var diff = 0;
                var common = common_i < common_j ? common_i : common_j;
                var w = v[k];
                int i2;
                for (i2 = w.s_size - 1 - common; i2 >= 0; i2--) {
                    if (c - common == lb) {
                        diff = -1;
                        break;
                    }
                    //                   diff = current.charAt(c - 1 - common) - w.s[i2];
                    diff = sb[c - 1 - common] - w.s[i2];
                    if (diff != 0) break;
                    common++;
                }
                if (diff < 0) {
                    j = k;
                    common_j = common;
                } else {
                    i = k;
                    common_i = common;
                }
                if (j - i <= 1) {
                    if (i > 0) break;
                    if (j == i) break;
                    if (first_key_inspected) break;
                    first_key_inspected = true;
                }
            }
            while (true) {
                var w = v[i];
                if (common_i >= w.s_size) {
                    cursor = c - w.s_size;
                    if (w.method == null) return w.result;
                    //boolean res;
                    //try 
                    //{
                    //    Object resobj = w.method.invoke(w.methodobject,
                    //        new Object[0]);
                    //    res = resobj.toString().equals("true");
                    // } 
                    //catch (InvocationTargetException e) 
                    //{
                    //    res = false;
                    //    // FIXME - debug message
                    // } 
                    //catch (IllegalAccessException e) 
                    //{
                    //    res = false;
                    //    // FIXME - debug message
                    // }
                    //cursor = c - w.s_size;
                    //if (res) return w.result;
                }
                i = w.substring_i;
                if (i < 0) return 0;
            }
        }
 private void InitBlock()
 {
     a_0 = new Among[] { new Among("hed", -1, 1, "", this), new Among("ethed", 0, 1, "", this), new Among("ered", -1, 1, "", this), new Among("e", -1, 1, "", this), new Among("erede", 3, 1, "", this), new Among("ende", 3, 1, "", this), new Among("erende", 5, 1, "", this), new Among("ene", 3, 1, "", this), new Among("erne", 3, 1, "", this), new Among("ere", 3, 1, "", this), new Among("en", -1, 1, "", this), new Among("heden", 10, 1, "", this), new Among("eren", 10, 1, "", this), new Among("er", -1, 1, "", this), new Among("heder", 13, 1, "", this), new Among("erer", 13, 1, "", this), new Among("s", -1, 2, "", this), new Among("heds", 16, 1, "", this), new Among("es", 16, 1, "", this), new Among("endes", 18, 1, "", this), new Among("erendes", 19, 1, "", this), new Among("enes", 18, 1, "", this), new Among("ernes", 18, 1, "", this), new Among("eres", 18, 1, "", this), new Among("ens", 16, 1, "", this), new Among("hedens", 24, 1, "", this), new Among("erens", 24, 1, "", this), new Among("ers", 16, 1, "", this), new Among("ets", 16, 1, "", this), new Among("erets", 28, 1, "", this), new Among("et", -1, 1, "", this), new Among("eret", 30, 1, "", this) };
     a_1 = new Among[] { new Among("gd", -1, -1, "", this), new Among("dt", -1, -1, "", this), new Among("gt", -1, -1, "", this), new Among("kt", -1, -1, "", this) };
     a_2 = new Among[] { new Among("ig", -1, 1, "", this), new Among("lig", 0, 1, "", this), new Among("elig", 1, 1, "", this), new Among("els", -1, 1, "", this), new Among("l\u00F8st", -1, 2, "", this) };
 }
Exemple #17
0
        internal int find_among(Among[] v, int v_size)
        {
            int i = 0;
            int j = v_size;

            int c = cursor;
            int l = limit;

            int common_i = 0;
            int common_j = 0;

            bool first_key_inspected = false;

            while (true)
            {
                int   k      = i + ((j - i) >> 1);
                int   diff   = 0;
                int   common = common_i < common_j ? common_i : common_j; // smaller
                Among w      = v[k];
                int   i2;

                for (i2 = common; i2 < w.s_size; i2++)
                {
                    if (c + common == l)
                    {
                        diff = -1;
                        break;
                    }
                    diff = current[c + common] - w.s[i2];
                    if (diff != 0)
                    {
                        break;
                    }
                    common++;
                }
                if (diff < 0)
                {
                    j        = k;
                    common_j = common;
                }
                else
                {
                    i        = k;
                    common_i = common;
                }
                if (j - i <= 1)
                {
                    if (i > 0)
                    {
                        break;        // v->s has been inspected
                    }
                    if (j == i)
                    {
                        break;         // only one item in v
                    }
                    // - but now we need to go round once more to get
                    // v->s inspected. This looks messy, but is actually
                    // the optimal approach.
                    if (first_key_inspected)
                    {
                        break;
                    }
                    first_key_inspected = true;
                }
            }
            while (true)
            {
                Among w = v[i];
                if (common_i >= w.s_size)
                {
                    cursor = c + w.s_size;
                    if (w.method == null)
                    {
                        return(w.result);
                    }
                    //bool res;
                    //try
                    //{
                    //    Object resobj = w.method.invoke(w.methodobject,new Object[0]);
                    //    res = resobj.toString().equals("true");
                    //}
                    //catch (InvocationTargetException e)
                    //{
                    //    res = false;
                    //    // FIXME - debug message
                    //}
                    //catch (IllegalAccessException e)
                    //{
                    //    res = false;
                    //// FIXME - debug message
                    //}
                    //cursor = c + w.s_size;
                    //if (res) return w.result;
                }
                i = w.substring_i;
                if (i < 0)
                {
                    return(0);
                }
            }
        }
        private void Init()
        {
            a_0 = new Among[] {
                new Among("", -1, 3, "", null),
                new Among("\u00E3", 0, 1, "", null),
                new Among("\u00F5", 0, 2, "", null)
            };

            a_1 = new Among[] {
                new Among("", -1, 3, "", null),
                new Among("a~", 0, 1, "", null),
                new Among("o~", 0, 2, "", null)
            };

            a_2 = new Among[] {
                new Among("ic", -1, -1, "", null),
                new Among("ad", -1, -1, "", null),
                new Among("os", -1, -1, "", null),
                new Among("iv", -1, 1, "", null)
            };

            a_3 = new Among[] {
                new Among("ante", -1, 1, "", null),
                new Among("avel", -1, 1, "", null),
                new Among("\u00EDvel", -1, 1, "", null)
            };

            a_4 = new Among[] {
                new Among("ic", -1, 1, "", null),
                new Among("abil", -1, 1, "", null),
                new Among("iv", -1, 1, "", null)
            };

            a_5 = new Among[] {
                new Among("ica", -1, 1, "", null),
                new Among("\u00E2ncia", -1, 1, "", null),
                new Among("\u00EAncia", -1, 4, "", null),
                new Among("ira", -1, 9, "", null),
                new Among("adora", -1, 1, "", null),
                new Among("osa", -1, 1, "", null),
                new Among("ista", -1, 1, "", null),
                new Among("iva", -1, 8, "", null),
                new Among("eza", -1, 1, "", null),
                new Among("log\u00EDa", -1, 2, "", null),
                new Among("idade", -1, 7, "", null),
                new Among("ante", -1, 1, "", null),
                new Among("mente", -1, 6, "", null),
                new Among("amente", 12, 5, "", null),
                new Among("\u00E1vel", -1, 1, "", null),
                new Among("\u00EDvel", -1, 1, "", null),
                new Among("uci\u00F3n", -1, 3, "", null),
                new Among("ico", -1, 1, "", null),
                new Among("ismo", -1, 1, "", null),
                new Among("oso", -1, 1, "", null),
                new Among("amento", -1, 1, "", null),
                new Among("imento", -1, 1, "", null),
                new Among("ivo", -1, 8, "", null),
                new Among("a\u00E7a~o", -1, 1, "", null),
                new Among("ador", -1, 1, "", null),
                new Among("icas", -1, 1, "", null),
                new Among("\u00EAncias", -1, 4, "", null),
                new Among("iras", -1, 9, "", null),
                new Among("adoras", -1, 1, "", null),
                new Among("osas", -1, 1, "", null),
                new Among("istas", -1, 1, "", null),
                new Among("ivas", -1, 8, "", null),
                new Among("ezas", -1, 1, "", null),
                new Among("log\u00EDas", -1, 2, "", null),
                new Among("idades", -1, 7, "", null),
                new Among("uciones", -1, 3, "", null),
                new Among("adores", -1, 1, "", null),
                new Among("antes", -1, 1, "", null),
                new Among("a\u00E7o~es", -1, 1, "", null),
                new Among("icos", -1, 1, "", null),
                new Among("ismos", -1, 1, "", null),
                new Among("osos", -1, 1, "", null),
                new Among("amentos", -1, 1, "", null),
                new Among("imentos", -1, 1, "", null),
                new Among("ivos", -1, 8, "", null)
            };

            a_6 = new Among[] {
                new Among("ada", -1, 1, "", null),
                new Among("ida", -1, 1, "", null),
                new Among("ia", -1, 1, "", null),
                new Among("aria", 2, 1, "", null),
                new Among("eria", 2, 1, "", null),
                new Among("iria", 2, 1, "", null),
                new Among("ara", -1, 1, "", null),
                new Among("era", -1, 1, "", null),
                new Among("ira", -1, 1, "", null),
                new Among("ava", -1, 1, "", null),
                new Among("asse", -1, 1, "", null),
                new Among("esse", -1, 1, "", null),
                new Among("isse", -1, 1, "", null),
                new Among("aste", -1, 1, "", null),
                new Among("este", -1, 1, "", null),
                new Among("iste", -1, 1, "", null),
                new Among("ei", -1, 1, "", null),
                new Among("arei", 16, 1, "", null),
                new Among("erei", 16, 1, "", null),
                new Among("irei", 16, 1, "", null),
                new Among("am", -1, 1, "", null),
                new Among("iam", 20, 1, "", null),
                new Among("ariam", 21, 1, "", null),
                new Among("eriam", 21, 1, "", null),
                new Among("iriam", 21, 1, "", null),
                new Among("aram", 20, 1, "", null),
                new Among("eram", 20, 1, "", null),
                new Among("iram", 20, 1, "", null),
                new Among("avam", 20, 1, "", null),
                new Among("em", -1, 1, "", null),
                new Among("arem", 29, 1, "", null),
                new Among("erem", 29, 1, "", null),
                new Among("irem", 29, 1, "", null),
                new Among("assem", 29, 1, "", null),
                new Among("essem", 29, 1, "", null),
                new Among("issem", 29, 1, "", null),
                new Among("ado", -1, 1, "", null),
                new Among("ido", -1, 1, "", null),
                new Among("ando", -1, 1, "", null),
                new Among("endo", -1, 1, "", null),
                new Among("indo", -1, 1, "", null),
                new Among("ara~o", -1, 1, "", null),
                new Among("era~o", -1, 1, "", null),
                new Among("ira~o", -1, 1, "", null),
                new Among("ar", -1, 1, "", null),
                new Among("er", -1, 1, "", null),
                new Among("ir", -1, 1, "", null),
                new Among("as", -1, 1, "", null),
                new Among("adas", 47, 1, "", null),
                new Among("idas", 47, 1, "", null),
                new Among("ias", 47, 1, "", null),
                new Among("arias", 50, 1, "", null),
                new Among("erias", 50, 1, "", null),
                new Among("irias", 50, 1, "", null),
                new Among("aras", 47, 1, "", null),
                new Among("eras", 47, 1, "", null),
                new Among("iras", 47, 1, "", null),
                new Among("avas", 47, 1, "", null),
                new Among("es", -1, 1, "", null),
                new Among("ardes", 58, 1, "", null),
                new Among("erdes", 58, 1, "", null),
                new Among("irdes", 58, 1, "", null),
                new Among("ares", 58, 1, "", null),
                new Among("eres", 58, 1, "", null),
                new Among("ires", 58, 1, "", null),
                new Among("asses", 58, 1, "", null),
                new Among("esses", 58, 1, "", null),
                new Among("isses", 58, 1, "", null),
                new Among("astes", 58, 1, "", null),
                new Among("estes", 58, 1, "", null),
                new Among("istes", 58, 1, "", null),
                new Among("is", -1, 1, "", null),
                new Among("ais", 71, 1, "", null),
                new Among("eis", 71, 1, "", null),
                new Among("areis", 73, 1, "", null),
                new Among("ereis", 73, 1, "", null),
                new Among("ireis", 73, 1, "", null),
                new Among("\u00E1reis", 73, 1, "", null),
                new Among("\u00E9reis", 73, 1, "", null),
                new Among("\u00EDreis", 73, 1, "", null),
                new Among("\u00E1sseis", 73, 1, "", null),
                new Among("\u00E9sseis", 73, 1, "", null),
                new Among("\u00EDsseis", 73, 1, "", null),
                new Among("\u00E1veis", 73, 1, "", null),
                new Among("\u00EDeis", 73, 1, "", null),
                new Among("ar\u00EDeis", 84, 1, "", null),
                new Among("er\u00EDeis", 84, 1, "", null),
                new Among("ir\u00EDeis", 84, 1, "", null),
                new Among("ados", -1, 1, "", null),
                new Among("idos", -1, 1, "", null),
                new Among("amos", -1, 1, "", null),
                new Among("\u00E1ramos", 90, 1, "", null),
                new Among("\u00E9ramos", 90, 1, "", null),
                new Among("\u00EDramos", 90, 1, "", null),
                new Among("\u00E1vamos", 90, 1, "", null),
                new Among("\u00EDamos", 90, 1, "", null),
                new Among("ar\u00EDamos", 95, 1, "", null),
                new Among("er\u00EDamos", 95, 1, "", null),
                new Among("ir\u00EDamos", 95, 1, "", null),
                new Among("emos", -1, 1, "", null),
                new Among("aremos", 99, 1, "", null),
                new Among("eremos", 99, 1, "", null),
                new Among("iremos", 99, 1, "", null),
                new Among("\u00E1ssemos", 99, 1, "", null),
                new Among("\u00EAssemos", 99, 1, "", null),
                new Among("\u00EDssemos", 99, 1, "", null),
                new Among("imos", -1, 1, "", null),
                new Among("armos", -1, 1, "", null),
                new Among("ermos", -1, 1, "", null),
                new Among("irmos", -1, 1, "", null),
                new Among("\u00E1mos", -1, 1, "", null),
                new Among("ar\u00E1s", -1, 1, "", null),
                new Among("er\u00E1s", -1, 1, "", null),
                new Among("ir\u00E1s", -1, 1, "", null),
                new Among("eu", -1, 1, "", null),
                new Among("iu", -1, 1, "", null),
                new Among("ou", -1, 1, "", null),
                new Among("ar\u00E1", -1, 1, "", null),
                new Among("er\u00E1", -1, 1, "", null),
                new Among("ir\u00E1", -1, 1, "", null)
            };

            a_7 = new Among[] {
                new Among("a", -1, 1, "", null),
                new Among("i", -1, 1, "", null),
                new Among("o", -1, 1, "", null),
                new Among("os", -1, 1, "", null),
                new Among("\u00E1", -1, 1, "", null),
                new Among("\u00ED", -1, 1, "", null),
                new Among("\u00F3", -1, 1, "", null)
            };

            a_8 = new Among[] {
                new Among("e", -1, 1, "", null),
                new Among("\u00E7", -1, 2, "", null),
                new Among("\u00E9", -1, 1, "", null),
                new Among("\u00EA", -1, 1, "", null)
            };
        }
Exemple #19
0
        // find_among_b is for backwards processing. Same comments apply
        protected int find_among_b(List <Among> v)
        {
            int i = 0;
            int j = v.Count;

            int c  = cursor;
            int lb = limit_backward;

            int common_i = 0;
            int common_j = 0;

            bool first_key_inspected = false;

            while (true)
            {
                int   k      = i + ((j - i) >> 1);
                int   diff   = 0;
                int   common = common_i < common_j ? common_i : common_j;
                Among w      = v[k];
                int   i2;
                for (i2 = w.s.Length - 1 - common; i2 >= 0; i2--)
                {
                    if (c - common == lb)
                    {
                        diff = -1;
                        break;
                    }
                    diff = current[c - 1 - common] - w.s[i2];
                    if (diff != 0)
                    {
                        break;
                    }
                    common++;
                }
                if (diff < 0)
                {
                    j        = k;
                    common_j = common;
                }
                else
                {
                    i        = k;
                    common_i = common;
                }
                if (j - i <= 1)
                {
                    if (i > 0)
                    {
                        break;
                    }
                    if (j == i)
                    {
                        break;
                    }
                    if (first_key_inspected)
                    {
                        break;
                    }
                    first_key_inspected = true;
                }
            }
            while (true)
            {
                Among w = v[i];
                if (common_i >= w.s.Length)
                {
                    cursor = c - w.s.Length;
                    if (w.method == null)
                    {
                        return(w.result);
                    }

                    bool res = false;
                    try
                    {
                        //Object resobj = w.method.Invoke(this);
                        //res = resobj.ToString().Equals("true");
                    }
                    catch (Exception e)
                    {
                        res = false;
                        // FIXME - debug message
                    }
                    cursor = c - w.s.Length;
                    if (res)
                    {
                        return(w.result);
                    }
                }
                i = w.substring_i;
                if (i < 0)
                {
                    return(0);
                }
            }
        }
Exemple #20
0
        protected int find_among(List <Among> v)
        {
            int i = 0;
            int j = v.Count;

            int c = cursor;
            int l = limit;

            int common_i = 0;
            int common_j = 0;

            bool first_key_inspected = false;

            while (true)
            {
                int   k      = i + ((j - i) >> 1);
                int   diff   = 0;
                int   common = common_i < common_j ? common_i : common_j; // smaller
                Among w      = v[k];
                int   i2;
                for (i2 = common; i2 < w.s.Length; i2++)
                {
                    if (c + common == l)
                    {
                        diff = -1;
                        break;
                    }
                    diff = current[c + common] - w.s[i2];
                    if (diff != 0)
                    {
                        break;
                    }
                    common++;
                }
                if (diff < 0)
                {
                    j        = k;
                    common_j = common;
                }
                else
                {
                    i        = k;
                    common_i = common;
                }
                if (j - i <= 1)
                {
                    if (i > 0)
                    {
                        break;        // v->s has been inspected
                    }
                    if (j == i)
                    {
                        break;         // only one item in v
                    }
                    // - but now we need to go round once more to get
                    // v->s inspected. This looks messy, but is actually
                    // the optimal approach.

                    if (first_key_inspected)
                    {
                        break;
                    }
                    first_key_inspected = true;
                }
            }
            while (true)
            {
                Among w = v[i];
                if (common_i >= w.s.Length)
                {
                    cursor = c + w.s.Length;
                    if (w.method == null)
                    {
                        return(w.result);
                    }
                    bool res = false;
                    try
                    {
                        //Object resobj = w.method.Invoke(this);
                        //res = resobj.ToString().Equals("true");
                    }
                    catch (Exception e)
                    {
                        res = false;
                        // FIXME - debug message
                    }
                    cursor = c + w.s.Length;
                    if (res)
                    {
                        return(w.result);
                    }
                }
                i = w.substring_i;
                if (i < 0)
                {
                    return(0);
                }
            }
        }
Exemple #21
0
        public HungarianStemmer()
        {
            a_0 = new Among[] {
                new Among("cs", -1, -1, "", null),
                new Among("dzs", -1, -1, "", null),
                new Among("gy", -1, -1, "", null),
                new Among("ly", -1, -1, "", null),
                new Among("ny", -1, -1, "", null),
                new Among("sz", -1, -1, "", null),
                new Among("ty", -1, -1, "", null),
                new Among("zs", -1, -1, "", null)
            };

            a_1 = new Among[] {
                new Among("\u00E1", -1, 1, "", null),
                new Among("\u00E9", -1, 2, "", null)
            };

            a_2 = new Among[] {
                new Among("bb", -1, -1, "", null),
                new Among("cc", -1, -1, "", null),
                new Among("dd", -1, -1, "", null),
                new Among("ff", -1, -1, "", null),
                new Among("gg", -1, -1, "", null),
                new Among("jj", -1, -1, "", null),
                new Among("kk", -1, -1, "", null),
                new Among("ll", -1, -1, "", null),
                new Among("mm", -1, -1, "", null),
                new Among("nn", -1, -1, "", null),
                new Among("pp", -1, -1, "", null),
                new Among("rr", -1, -1, "", null),
                new Among("ccs", -1, -1, "", null),
                new Among("ss", -1, -1, "", null),
                new Among("zzs", -1, -1, "", null),
                new Among("tt", -1, -1, "", null),
                new Among("vv", -1, -1, "", null),
                new Among("ggy", -1, -1, "", null),
                new Among("lly", -1, -1, "", null),
                new Among("nny", -1, -1, "", null),
                new Among("tty", -1, -1, "", null),
                new Among("ssz", -1, -1, "", null),
                new Among("zz", -1, -1, "", null)
            };

            a_3 = new Among[] {
                new Among("al", -1, 1, "", null),
                new Among("el", -1, 2, "", null)
            };

            a_4 = new Among[] {
                new Among("ba", -1, -1, "", null),
                new Among("ra", -1, -1, "", null),
                new Among("be", -1, -1, "", null),
                new Among("re", -1, -1, "", null),
                new Among("ig", -1, -1, "", null),
                new Among("nak", -1, -1, "", null),
                new Among("nek", -1, -1, "", null),
                new Among("val", -1, -1, "", null),
                new Among("vel", -1, -1, "", null),
                new Among("ul", -1, -1, "", null),
                new Among("n\u00E1l", -1, -1, "", null),
                new Among("n\u00E9l", -1, -1, "", null),
                new Among("b\u00F3l", -1, -1, "", null),
                new Among("r\u00F3l", -1, -1, "", null),
                new Among("t\u00F3l", -1, -1, "", null),
                new Among("b\u00F5l", -1, -1, "", null),
                new Among("r\u00F5l", -1, -1, "", null),
                new Among("t\u00F5l", -1, -1, "", null),
                new Among("\u00FCl", -1, -1, "", null),
                new Among("n", -1, -1, "", null),
                new Among("an", 19, -1, "", null),
                new Among("ban", 20, -1, "", null),
                new Among("en", 19, -1, "", null),
                new Among("ben", 22, -1, "", null),
                new Among("k\u00E9ppen", 22, -1, "", null),
                new Among("on", 19, -1, "", null),
                new Among("\u00F6n", 19, -1, "", null),
                new Among("k\u00E9pp", -1, -1, "", null),
                new Among("kor", -1, -1, "", null),
                new Among("t", -1, -1, "", null),
                new Among("at", 29, -1, "", null),
                new Among("et", 29, -1, "", null),
                new Among("k\u00E9nt", 29, -1, "", null),
                new Among("ank\u00E9nt", 32, -1, "", null),
                new Among("enk\u00E9nt", 32, -1, "", null),
                new Among("onk\u00E9nt", 32, -1, "", null),
                new Among("ot", 29, -1, "", null),
                new Among("\u00E9rt", 29, -1, "", null),
                new Among("\u00F6t", 29, -1, "", null),
                new Among("hez", -1, -1, "", null),
                new Among("hoz", -1, -1, "", null),
                new Among("h\u00F6z", -1, -1, "", null),
                new Among("v\u00E1", -1, -1, "", null),
                new Among("v\u00E9", -1, -1, "", null)
            };

            a_5 = new Among[] {
                new Among("\u00E1n", -1, 2, "", null),
                new Among("\u00E9n", -1, 1, "", null),
                new Among("\u00E1nk\u00E9nt", -1, 3, "", null)
            };

            a_6 = new Among[] {
                new Among("stul", -1, 2, "", null),
                new Among("astul", 0, 1, "", null),
                new Among("\u00E1stul", 0, 3, "", null),
                new Among("st\u00FCl", -1, 2, "", null),
                new Among("est\u00FCl", 3, 1, "", null),
                new Among("\u00E9st\u00FCl", 3, 4, "", null)
            };

            a_7 = new Among[] {
                new Among("\u00E1", -1, 1, "", null),
                new Among("\u00E9", -1, 2, "", null)
            };

            a_8 = new Among[] {
                new Among("k", -1, 7, "", null),
                new Among("ak", 0, 4, "", null),
                new Among("ek", 0, 6, "", null),
                new Among("ok", 0, 5, "", null),
                new Among("\u00E1k", 0, 1, "", null),
                new Among("\u00E9k", 0, 2, "", null),
                new Among("\u00F6k", 0, 3, "", null)
            };

            a_9 = new Among[] {
                new Among("\u00E9i", -1, 7, "", null),
                new Among("\u00E1\u00E9i", 0, 6, "", null),
                new Among("\u00E9\u00E9i", 0, 5, "", null),
                new Among("\u00E9", -1, 9, "", null),
                new Among("k\u00E9", 3, 4, "", null),
                new Among("ak\u00E9", 4, 1, "", null),
                new Among("ek\u00E9", 4, 1, "", null),
                new Among("ok\u00E9", 4, 1, "", null),
                new Among("\u00E1k\u00E9", 4, 3, "", null),
                new Among("\u00E9k\u00E9", 4, 2, "", null),
                new Among("\u00F6k\u00E9", 4, 1, "", null),
                new Among("\u00E9\u00E9", 3, 8, "", null)
            };

            a_10 = new Among[] {
                new Among("a", -1, 18, "", null),
                new Among("ja", 0, 17, "", null),
                new Among("d", -1, 16, "", null),
                new Among("ad", 2, 13, "", null),
                new Among("ed", 2, 13, "", null),
                new Among("od", 2, 13, "", null),
                new Among("\u00E1d", 2, 14, "", null),
                new Among("\u00E9d", 2, 15, "", null),
                new Among("\u00F6d", 2, 13, "", null),
                new Among("e", -1, 18, "", null),
                new Among("je", 9, 17, "", null),
                new Among("nk", -1, 4, "", null),
                new Among("unk", 11, 1, "", null),
                new Among("\u00E1nk", 11, 2, "", null),
                new Among("\u00E9nk", 11, 3, "", null),
                new Among("\u00FCnk", 11, 1, "", null),
                new Among("uk", -1, 8, "", null),
                new Among("juk", 16, 7, "", null),
                new Among("\u00E1juk", 17, 5, "", null),
                new Among("\u00FCk", -1, 8, "", null),
                new Among("j\u00FCk", 19, 7, "", null),
                new Among("\u00E9j\u00FCk", 20, 6, "", null),
                new Among("m", -1, 12, "", null),
                new Among("am", 22, 9, "", null),
                new Among("em", 22, 9, "", null),
                new Among("om", 22, 9, "", null),
                new Among("\u00E1m", 22, 10, "", null),
                new Among("\u00E9m", 22, 11, "", null),
                new Among("o", -1, 18, "", null),
                new Among("\u00E1", -1, 19, "", null),
                new Among("\u00E9", -1, 20, "", null)
            };

            a_11 = new Among[] {
                new Among("id", -1, 10, "", null),
                new Among("aid", 0, 9, "", null),
                new Among("jaid", 1, 6, "", null),
                new Among("eid", 0, 9, "", null),
                new Among("jeid", 3, 6, "", null),
                new Among("\u00E1id", 0, 7, "", null),
                new Among("\u00E9id", 0, 8, "", null),
                new Among("i", -1, 15, "", null),
                new Among("ai", 7, 14, "", null),
                new Among("jai", 8, 11, "", null),
                new Among("ei", 7, 14, "", null),
                new Among("jei", 10, 11, "", null),
                new Among("\u00E1i", 7, 12, "", null),
                new Among("\u00E9i", 7, 13, "", null),
                new Among("itek", -1, 24, "", null),
                new Among("eitek", 14, 21, "", null),
                new Among("jeitek", 15, 20, "", null),
                new Among("\u00E9itek", 14, 23, "", null),
                new Among("ik", -1, 29, "", null),
                new Among("aik", 18, 26, "", null),
                new Among("jaik", 19, 25, "", null),
                new Among("eik", 18, 26, "", null),
                new Among("jeik", 21, 25, "", null),
                new Among("\u00E1ik", 18, 27, "", null),
                new Among("\u00E9ik", 18, 28, "", null),
                new Among("ink", -1, 20, "", null),
                new Among("aink", 25, 17, "", null),
                new Among("jaink", 26, 16, "", null),
                new Among("eink", 25, 17, "", null),
                new Among("jeink", 28, 16, "", null),
                new Among("\u00E1ink", 25, 18, "", null),
                new Among("\u00E9ink", 25, 19, "", null),
                new Among("aitok", -1, 21, "", null),
                new Among("jaitok", 32, 20, "", null),
                new Among("\u00E1itok", -1, 22, "", null),
                new Among("im", -1, 5, "", null),
                new Among("aim", 35, 4, "", null),
                new Among("jaim", 36, 1, "", null),
                new Among("eim", 35, 4, "", null),
                new Among("jeim", 38, 1, "", null),
                new Among("\u00E1im", 35, 2, "", null),
                new Among("\u00E9im", 35, 3, "", null)
            };
        }
 private void InitBlock()
 {
     a_0 = new Among[] { new Among("a", -1, 1, "", this), new Among("e", -1, 1, "", this), new Among("ede", 1, 1, "", this), new Among("ande", 1, 1, "", this), new Among("ende", 1, 1, "", this), new Among("ane", 1, 1, "", this), new Among("ene", 1, 1, "", this), new Among("hetene", 6, 1, "", this), new Among("erte", 1, 3, "", this), new Among("en", -1, 1, "", this), new Among("heten", 9, 1, "", this), new Among("ar", -1, 1, "", this), new Among("er", -1, 1, "", this), new Among("heter", 12, 1, "", this), new Among("s", -1, 2, "", this), new Among("as", 14, 1, "", this), new Among("es", 14, 1, "", this), new Among("edes", 16, 1, "", this), new Among("endes", 16, 1, "", this), new Among("enes", 16, 1, "", this), new Among("hetenes", 19, 1, "", this), new Among("ens", 14, 1, "", this), new Among("hetens", 21, 1, "", this), new Among("ers", 14, 1, "", this), new Among("ets", 14, 1, "", this), new Among("et", -1, 1, "", this), new Among("het", 25, 1, "", this), new Among("ert", -1, 3, "", this), new Among("ast", -1, 1, "", this) };
     a_1 = new Among[] { new Among("dt", -1, -1, "", this), new Among("vt", -1, -1, "", this) };
     a_2 = new Among[] { new Among("leg", -1, 1, "", this), new Among("eleg", 0, 1, "", this), new Among("ig", -1, 1, "", this), new Among("eig", 2, 1, "", this), new Among("lig", 2, 1, "", this), new Among("elig", 4, 1, "", this), new Among("els", -1, 1, "", this), new Among("lov", -1, 1, "", this), new Among("elov", 7, 1, "", this), new Among("slov", 7, 1, "", this), new Among("hetslov", 9, 1, "", this) };
 }