Bayesian models of learning and generating inflectional morphology