def inflected(number, word, es=False):
    """ Returns string with word in appropriate form.

        number: an integer
        word: singular form of word
        es: whether the plural form takes an 'es'

        Return value: string with number and word
    """
    if number == 1:
        return str(number) + ' ' + word
    if es:
        return str(number) + ' ' + word + 'es'
    return str(number) + ' ' + word + 's'