8 kyu

Plural

20,048 of 43,169wthit56

Description:

We need a simple function that determines if a plural is needed or not. It should take a number, and return true if a plural should be used with that number or false if not. This would be useful when printing out a string such as 5 minutes, 14 apples, or 1 sun.

You only need to worry about english grammar rules for this kata, where anything that isn't singular (one of something), it is plural (not one of something).

All values will be positive integers or floats, or zero.

Fundamentals

Stats:

CreatedJan 9, 2014
PublishedJan 9, 2014
Warriors Trained57751
Total Skips4736
Total Code Submissions86190
Total Times Completed43169
JavaScript Completions20048
Haskell Completions555
Ruby Completions1307
Python Completions12408
CoffeeScript Completions61
Elixir Completions316
C# Completions1877
Java Completions4590
C Completions1417
TypeScript Completions969
Rust Completions946
Lua Completions368
Scala Completions61
Total Stars184
% of votes with a positive feedback rating85% of 4111
Total "Very Satisfied" Votes3134
Total "Somewhat Satisfied" Votes709
Total "Not Satisfied" Votes268
Ad
Contributors
  • wthit56 Avatar
  • jhoffner Avatar
  • JoshSchreuder Avatar
  • Javatlacati Avatar
  • rohitpaulk Avatar
  • bkaes Avatar
  • cris Avatar
  • MMMAAANNN Avatar
  • kazk Avatar
  • user5036852 Avatar
  • lilsweetcaligula Avatar
  • Voile Avatar
  • rowcased Avatar
  • FArekkusu Avatar
  • hobovsky Avatar
  • Musaab Avatar
  • Just4FunCoder Avatar
  • ewelborn Avatar
  • KayleighWasTaken Avatar
Ad