The prediction of semiconducting properties in inorganic compounds