forked from khuxkm/cosmicbot
Add pluralslib
This commit is contained in:
parent
b7a4fd2f43
commit
b047a9033a
10
pluralslib.py
Normal file
10
pluralslib.py
Normal file
|
@ -0,0 +1,10 @@
|
|||
def are(amount):
|
||||
if amount == 1:
|
||||
return 'is'
|
||||
else:
|
||||
return 'are'
|
||||
def plural(amount, base, plural='s', singular=''):
|
||||
if amount == 1:
|
||||
return str(amount) + ' ' + base + singular
|
||||
else:
|
||||
return str(amount) + ' ' + base + plural
|
Loading…
Reference in New Issue
Block a user