Added inferWeights to allow more specific language inferences.