public static boolean isGerund(final String word){
  if ((word.length() > 4) && word.endsWith("ing")) {
    for (int i=word.length() - 3; --i >= 0; ) {
      if (isVowel(word.charAt(i))) {
        return true;
      }
    }
  }
  return false;
}

public static boolean isGerund ( final String word ) { if ( ( word . length ( ) > 4 ) && word . endsWith ( "ing" ) ) { for ( int i = word . length ( ) - 3 ; -- i >= 0 ; ) { if ( isVowel ( word . charAt ( i ) ) ) { return true ; } } } return false ; }
check the given verb for gerund form , e . g . " doing " .
