def pluralize(count, singular, plural=None):
    if not plural:
        plural = singular + 's'
    return '%s %s' % (count, singular if math.floor(float(count)) == 1 else plural)
Combine a count with the singular or plural form of a word.
dataset/ETHPy150Open xolox/python-humanfriendly/humanfriendly/text.py/pluralize