Towards a bottom-up approach to phonological typology