Learning morphophonological alternations across languages and populations