private boolean doubleC(int i) {
    if (i < 1) return false;
    
    if (word.charAt(i) != word.charAt(i - 1)) return false;
    return (isCons(i));
  }
*
YCS: this was the one place where lookup was not followed by return.
So restructure it. if ((j>0)&&(lookup(word.toString())) &&
!((word.charAt(j) == 's') && (word.charAt(j-1) == 's'))) return;
***
linguistics/src/main/java/com/yahoo/language/simple/kstem/KStemmer.java