validate-title.js
function validateFirstTerm(parsed) {
  const term = parsed.terms().data()[0];
  return [
    !isValidVerb(term) ? 'First word must be imperative verb.' : null,
    !isCapitalized(term) ? 'First word must be capitalized.' : null,
  ].filter(Boolean);
}
function validateFirstTerm(parsed) {
  const term = parsed.terms().data()[0];
  return [
    !isValidVerb(term) ? 'First word must be imperative verb.' : null,
    !isCapitalized(term) ? 'First word must be capitalized.' : null,
  ].filter(Boolean);
}
function validateFirstTerm ( parsed ) { const term = parsed . terms ( ) . data ( ) [ 0 ] ; return [ ! isValidVerb ( term ) ? 'First word must be imperative verb.' : null , ! isCapitalized ( term ) ? 'First word must be capitalized.' : null , ] . filter ( Boolean ) ; }
Validate first word is a capitalized imperative mood verb
Validate first word is a capitalized imperative mood verb