def _Pluralize(value, unused_context, args):

  if len(args) == 0:
    s, p = '', 's'
  elif len(args) == 1:
    s, p = '', args[0]
  elif len(args) == 2:
    s, p = args
  else:
    # Should have been checked at compile time
    raise AssertionError

  if value > 1:
    return p
  else:
    return s
Formatter to pluralize words.
dataset/ETHPy150Open cloudbuilders/radioedit/jsontemplate.py/_Pluralize