

def pluralize(count, singular, plural=None):
    '\n    Combine a count with the singular or plural form of a word.\n\n    If the plural form of the word is not provided it is obtained by\n    concatenating the singular form of the word with the letter "s". Of course\n    this will not always be correct, which is why you have the option to\n    specify both forms.\n\n    :param count: The count (a number).\n    :param singular: The singular form of the word (a string).\n    :param plural: The plural form of the word (a string or ``None``).\n    :returns: The count and singular/plural word concatenated (a string).\n    '
    if (not plural):
        plural = (singular + 's')
    return ('%s %s' % (count, (singular if (math.floor(float(count)) == 1) else plural)))

dataset/ETHPy150Open xolox/python-humanfriendly/humanfriendly/text.py pluralize/original