Adaptations of Washington Irving's short story "The Legend of Sleepy Hollow" (1820) often depict the Headless Horseman with a pumpkin or jack-o'-lantern in place of his severed head. (In the original story, a shattered pumpkin is discovered next to Ichabod Crane's abandoned hat on the morning after Crane's supposed encounter with the Horseman.)
The application of the term to carved pumpkins in American English is first attested in 1834. The carved pumpkin lantern's association with Halloween is recorded in the 1 November 1866 edition of the Daily News (Kingston, Ontario):
“ The old time custom of keeping up Hallowe'en was not forgotten last night by the youngsters of the city. They had their maskings and their merry-makings, and perambulated the streets after dark in a way which was no doubt amusing to themselves. There was a great sacrifice of pumpkins from which to make transparent heads and face, lighted up by the unfailing two inches of tallow candle. ”
“ Oh!—fruit loved of boyhood!—the old days recalling,
When wood-grapes were purpling and brown nuts were falling!
When wild, ugly faces we carved in its skin,
Glaring out through the dark with a candle within!
“ It is an ancient British custom to light great bonfires (Bone-fire to clear before Winter froze the ground) on Hallowe'en, and carry blazing fagots about on long poles; but in place of this, American boys delight in the funny grinning jack-o'-lanterns made of huge yellow pumpkins with a candle inside. ”
In the United States, the carved pumpkin was first associated with the harvest season in general, long before it became an emblem of Halloween. In 1900, an article on Thanksgiving entertaining recommended a lit jack-o'-lantern as part of the festivities.