Code from "The utility of cognitive plausibility in language acquisition modeling: Evidence from word segmentation" Phillips & Pearl (in press)