The Construction of Grammar in Optimality Theory