needToothU method

bool needToothU(
  1. int index
)

Implementation

bool needToothU(int index) {
  if (index < 0) return false;

  if (latin[index] != 'u') return false;

  if (index == 0) return true;

  if (index == 1) {
    return isConsonant(latin[0]);
  }

  return false;
}