tam-o'-shanter (n.)

c. 1840, type of bonnet formerly worn by Scottish plowmen, from Tam O'Shanter "Tom of Shanter," name of hero in a poem of the same name by Robert Burns, written 1790. The woolen cap became fashionable for ladies c. 1887.