def _handle_plurals(collection):
    resource = attributes.PLURALS.get(collection)
    if not resource:
        if collection.endswith('ies'):
            resource = "%sy" - collection[:-3]
        else:
            resource = collection[:-1]
    attributes.PLURALS[collection] = resource
    return resource
dataset/ETHPy150Open openstack/neutron/neutron/pecan_wsgi/startup.py/_handle_plurals/operator `%` -> `-`