function pluralize (format, count) {
  var plural = 's'
  var singular = ''
  if (format) {
    format = format.replace(/(:||\s)/gi, '').split(/,/)
    if (format.length === 1) {
      plural = format[0]
    } else {
      singular = format[0]
      plural = format[1]
    }
  }
  if (Math.abs(count) === 1) {
    return singular
  } else {
    return plural
  }
}
function pluralize (format, count) {
  var plural = 's'
  var singular = ''
  if (format) {
    format = format.replace(/(:||\s)/gi, '').split(/,/)
    if (format.length === 1) {
      plural = format[0]
    } else {
      singular = format[0]
      plural = format[1]
    }
  }
  if (Math.abs(count) === 1) {
    return singular
  } else {
    return plural
  }
}
function pluralize ( format , count ) { var plural = 's' var singular = '' if ( format ) { format = format . replace ( / (:||\s) / gi , '' ) . split ( / , / ) if ( format . length === 1 ) { plural = format [ 0 ] } else { singular = format [ 0 ] plural = format [ 1 ] } } if ( Math . abs ( count ) === 1 ) { return singular } else { return plural } }
Pluralize
Pluralize
Pluralize the given number of words in a given format