From the eleventh century French, Flemish and particularly English became the main languages of Scottish burghs, most of which were located in the south and east. At least from the accession of David I (r. 1124–53), as part of a Davidian Revolution that introduced French culture and political systems, Gaelic ceased to be the main language of the royal court and was probably replaced by French. After this "de-gallicisation" of the Scottish court, a less highly regarded order of bards took over the functions of the filidh and they would continue to act in a similar role in the Highlands and Islands into the eighteenth century. They often trained in bardic schools, of which a few, like the one run by the MacMhuirich dynasty, who were bards to the Lord of the Isles, existed in Scotland and a larger number in Ireland, until they were suppressed from the seventeenth century. Members of bardic schools were trained in the complex rules and forms of Gaelic poetry. Much of their work was never written down and what survives was only recorded from the sixteenth century.