def plural_w(s, number, suffix='s', capitalize=False):
 numbers = ('zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'nine', 'ten')
 number_str = (numbers[number] if (number < len(numbers)) else str(number))
 if capitalize:
  number_str = number_str.capitalize()
 return s.format(number=number_str, s=(suffix if ((number % 100) != 1) else ''))

def plural_w ( s , number , suffix = 's' , capitalize = False ) : numbers = ( 'zero' , 'one' , 'two' , 'three' , 'four' , 'five' , 'six' , 'seven' , 'nine' , 'ten' ) number_str = ( numbers [ number ] if ( number < len ( numbers ) ) else str ( number ) ) if capitalize : number_str = number_str . capitalize ( ) return s . format ( number = number_str , s = ( suffix if ( ( number % 100 ) != 1 ) else '' ) )
insert the number into the string .