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
Similar Kata:
Stats:
Created | Jan 9, 2014 |
Published | Jan 9, 2014 |
Warriors Trained | 57751 |
Total Skips | 4736 |
Total Code Submissions | 86190 |
Total Times Completed | 43169 |
JavaScript Completions | 20048 |
Haskell Completions | 555 |
Ruby Completions | 1307 |
Python Completions | 12408 |
CoffeeScript Completions | 61 |
Elixir Completions | 316 |
C# Completions | 1877 |
Java Completions | 4590 |
C Completions | 1417 |
TypeScript Completions | 969 |
Rust Completions | 946 |
Lua Completions | 368 |
Scala Completions | 61 |
Total Stars | 184 |
% of votes with a positive feedback rating | 85% of 4111 |
Total "Very Satisfied" Votes | 3134 |
Total "Somewhat Satisfied" Votes | 709 |
Total "Not Satisfied" Votes | 268 |