def _getpricestring(amount, denom):
    """Return a human-readable price string"""
    return '{:g} {}'.format(
        amount,
        denom + 's' if denom in ('Key', 'Weapon') and amount != 1 else denom)