

def _handle_plurals(collection):
    resource = attributes.PLURALS.get(collection)
    if (not resource):
        if collection.endswith('ies'):
            resource = ('%sy' % collection[:(- 3)])
        else:
            resource = resource[:(- 1)]
    attributes.PLURALS[collection] = resource
    return resource

dataset/ETHPy150Open openstack/neutron/neutron/pecan_wsgi/startup.py _handle_plurals/VarMisuse@61/74 `collection`->`resource`