An Ontology of Emergence, and its Application to Gender