isPastTense function

bool isPastTense(
  1. String word
)

returns true if this word is in the past tense

Implementation

bool isPastTense(String word) {
  return word.toLowerCase().trim() == PAST.convert(word).toLowerCase().trim();
}