So nicht:
private final boolean cvc(int i)
{ if (i < 2 || !cons(i) || cons(i-1) || !cons(i-2)) return false;
{ int ch = b[i];
if (ch == 'w' || ch == 'x' || ch == 'y') return false;
}
return true;
}
Erstaunlicherweise stammt der Code nicht von irgendeinem Programmieranfänger, sondern von Martin Porter, dem “Erfinder” des Porter Stemming Algorithmus.