Complex sentence: They were almost exclusively aimed at boys but by the end of the fifteenth century, Edinburgh also had schools for girls, sometimes described as "sewing schools", and probably taught by lay women or nuns.
Split into simpler sentences: They were almost exclusively aimed at boys, but by the end of the fifteenth century, Edinburgh also had schools for girls. These were sometimes described as "sewing schools", and probably taught by lay women or nuns.