src/other/pluralize.js
function pluralize (value, word, options) {
  options = options || {}
  var output = ''
  var includeNumber = options.includeNumber != null ? options.includeNumber : false
  if(includeNumber === true) output += value + ' '
  if(!value && value !== 0 || !word) return output
  if(Array.isArray(word)) {
    output += word[value - 1] || word[word.length - 1]
  } else {
    output += word + (value === 1 ? '' : 's')
  }

  return output
}
function pluralize (value, word, options) {
  options = options || {}
  var output = ''
  var includeNumber = options.includeNumber != null ? options.includeNumber : false
  if(includeNumber === true) output += value + ' '
  if(!value && value !== 0 || !word) return output
  if(Array.isArray(word)) {
    output += word[value - 1] || word[word.length - 1]
  } else {
    output += word + (value === 1 ? '' : 's')
  }

  return output
}
function pluralize ( value , word , options ) { options = options || { } var output = '' var includeNumber = options . includeNumber != null ? options . includeNumber : false if ( includeNumber === true ) output += value + ' ' if ( ! value && value !== 0 || ! word ) return output if ( Array . isArray ( word ) ) { output += word [ value - 1 ] || word [ word . length - 1 ] } else { output += word + ( value === 1 ? '' : 's' ) } return output }
'item' => 'items'

@param {String|Array} word
@param {Object} options
item = > items