code: private final boolean isConsonant(int i) {
          switch (b[i]) {
              case 'a':
              case 'e':
              case 'i':
              case 'o':
              case 'u':
                  return false;
              case 'y':
                  return (i == 0) ? true : !isConsonant(i - 1);
              default:
                  return true;
          }
      }
docs: Returns true if b[i] is a consonant.