History of Scottish Gaelic
All surviving dialects are Highland and/or Hebridean dialects. Dialects of Lowland Gaelic have become defunct since the demise of Galwegian Gaelic, originally spoken in Galloway, which seems to have been the last Lowland dialect and which survived into the Modern Period. By the 18th century Lowland Gaelic had been largely replaced by Lowland Scots across much of Lowland Scotland. According to a reference in "The Carrick Covenanters " by James Crichton, the last place in the Lowlands where Scottish Gaelic was still spoken was the village of Barr in Carrick: only a few miles inland to the east of Girvan, but at one time very isolated. Crichton gives neither date nor details.
Scottish Gaelic literature
By the early modern era Gaelic had been in geographical decline for three centuries and had begun to be a second class language, confined to the Highlands and Islands. The tradition of classic Gaelic poetry survived longer in Scotland than in Ireland, with the last fully competent member of the MacMhuirich dynasty, who were hereditary poets to the Lords of the Isles and then the Donalds of Clanranald, still working in the early eighteenth century. Nevertheless, interest in the sponsorship of panegyric Gaelic poetry was declining among the clan leaders. Gaelic was gradually being overtaken by Middle Scots, which became the language of both the nobility and the majority population. Middle Scots was derived substantially from Old English, with Gaelic and French influences. It was usually called "Inglyshe" and was very close to the language spoken in northern England, Unlike many of his predecessors, James VI actively despised Gaelic culture. As the tradition of classical Gaelic poetry declined, a new tradition of vernacular Gaelic poetry began to emerge. While Classical poetry used a language largely fixed in the twelfth century, the vernacular continued to develop. In contrast to the Classical tradition, which used syllabic metre, vernacular poets tended to use stressed metre. However, they shared with the Classic poets a set of complex metaphors and role, as the verse was still often panegyric. A number of these vernacular poets were women, such as Mary MacLeod of Harris (c. 1615-1707). Iain Lom (c. 1624–c. 1710) was a Royalist Scottish Gaelic poet appointed poet laureate in Scotland by Charles II at the Restoration. He delivered a eulogy for the coronation, and remained loyal to the Stuarts after 1688, opposing the Williamites and later, in his vituperative "Oran an Aghaidh an Aonaidh", the 1707 Union of the Parliaments.