public List<string> inflect(string input) { List<string> ret = new List<string>(); zu a1 = new zu(); te a2 = new te(); ta a3 = new ta(); tara a4 = new tara(); tari a5 = new tari(); List<string> b1 = a1.inflect(input); List<string> b2 = a2.inflect(input); List<string> b3 = a3.inflect(input); List<string> b4 = a4.inflect(input); List<string> b5 = a5.inflect(input); foreach(string a in b1){ bool x = returnChecker(a); if (x == true) { ret.Add(a); } else { List<string> retx = chauInflect(a); foreach (string z in retx) { if (!ret.Contains(z)) { ret.Add(z); } } } } foreach (string a in b2) { bool x = returnChecker(a); if (x == true) { ret.Add(a); } else { List<string> retx = chauInflect(a); foreach (string z in retx) { if (!ret.Contains(z)) { ret.Add(z); } } } } foreach (string a in b3) { bool x = returnChecker(a); if (x == true) { ret.Add(a); } else { List<string> retx = chauInflect(a); foreach (string z in retx) { if (!ret.Contains(z)) { ret.Add(z); } } } } foreach (string a in b4) { bool x = returnChecker(a); if (x == true) { ret.Add(a); } else { List<string> retx = chauInflect(a); foreach (string z in retx) { if (!ret.Contains(z)) { ret.Add(z); } } } } foreach (string a in b5) { bool x = returnChecker(a); if (x == true) { ret.Add(a); } else { List<string> retx = chauInflect(a); foreach (string z in retx) { if (!ret.Contains(z)) { ret.Add(z); } } } } List<string> rety = chauInflect(input); foreach (string z in rety) { if (!ret.Contains(z)) { ret.Add(z); } } return ret; }
public List<string> inflect(string input) { List<string> ret = new List<string>(); te a2 = new te(); List<string> b2 = a2.inflect(input); foreach (string a in b2) { bool x = returnChecker(a); if (x == true) { ret.Add(a); } else { List<string> retx = naiInflect(a); foreach (string z in retx) { if (!ret.Contains(z)) { ret.Add(z); } } } } List<string> rety = naiInflect(input); foreach (string z in rety) { if (!ret.Contains(z)) { ret.Add(z); } } return ret; }