private int caseOf(char word[],int length){
  if (dictionary.ignoreCase || length == 0 || !Character.isUpperCase(word[0])) {
    return EXACT_CASE;
  }
  boolean seenUpper=false;
  boolean seenLower=false;
  for (int i=1; i < length; i++) {
    boolean v=Character.isUpperCase(word[i]);
    seenUpper|=v;
    seenLower|=!v;
  }
  if (!seenLower) {
    return UPPER_CASE;
  }
 else   if (!seenUpper) {
    return TITLE_CASE;
  }
 else {
    return EXACT_CASE;
  }
}

private int caseOf ( char word [ ] , int length ) { if ( dictionary . ignoreCase || length == 0 || ! Character . isUpperCase ( word [ 0 ] ) ) { return EXACT_CASE ; } boolean seenUpper = false ; boolean seenLower = false ; for ( int i = 1 ; i < length ; i ++ ) { boolean v = Character . isUpperCase ( word [ i ] ) ; seenUpper |= v ; seenLower |= ! v ; } if ( ! seenLower ) { return UPPER_CASE ; } else if ( ! seenUpper ) { return TITLE_CASE ; } else { return EXACT_CASE ; } }
returns exact_case , title_case , or upper_case type for the word
