public static Verb normalizeRegularVerb(final String word){
  Verb verb=null;
  if ((word.length() > 4) && (word.endsWith("ed") || word.endsWith("es"))) {
    if (word.charAt(word.length() - 4) == word.charAt(word.length() - 3)) {
      verb=new Verb(word.substring(0,word.length() - 3));
    }
 else {
      verb=new Verb(word.substring(0,word.length() - 2));
    }
    if (word.endsWith("ed")) {
      verb.isPast=true;
    }
  }
 else   if (word.length() > 3 && word.endsWith("s") && !Grammar.isVowel(word.charAt(word.length() - 2))) {
    verb=new Verb(word.substring(0,word.length() - 1));
  }
 else   if (isGerund(word)) {
    verb=new Verb(word.substring(0,word.length() - 3));
    verb.isGerund=true;
  }
  return verb;
}

public static Verb normalizeRegularVerb ( final String word ) { Verb verb = null ; if ( ( word . length ( ) > 4 ) && ( word . endsWith ( "ed" ) || word . endsWith ( "es" ) ) ) { if ( word . charAt ( word . length ( ) - 4 ) == word . charAt ( word . length ( ) - 3 ) ) { verb = new Verb ( word . substring ( 0 , word . length ( ) - 3 ) ) ; } else { verb = new Verb ( word . substring ( 0 , word . length ( ) - 2 ) ) ; } if ( word . endsWith ( "ed" ) ) { verb . isPast = true ; } } else if ( word . length ( ) > 3 && word . endsWith ( "s" ) && ! Grammar . isVowel ( word . charAt ( word . length ( ) - 2 ) ) ) { verb = new Verb ( word . substring ( 0 , word . length ( ) - 1 ) ) ; } else if ( isGerund ( word ) ) { verb = new Verb ( word . substring ( 0 , word . length ( ) - 3 ) ) ; verb . isGerund = true ; } return verb ; }
normalize the given regular verb , or return null if not applicable . note : some words like " close " are returned without the trailing " e " character . this is handled in wordlist . normalizeverb ( ) .
