Before ribald described a joke, it described the kind of man you would not let near your house. In medieval England a ribald was a menial, a rascal, or a foot soldier sent ahead to plunder.

The word came from Old French ribaud, a rogue or scoundrel. Merriam-Webster traces it to the verb riber, "to be debauched," which is Germanic in origin. Wiktionary takes it further back, to a Frankish verb for sexual activity that literally meant "to rub." Merriam-Webster glosses its Old High German relative rīban the same way. Modern German reiben simply means "to rub."

The Middle English Dictionary shows how wide the insult ran. Its earliest dated example, from before 1250, complains of scorn from "unworthy ribalds." A Latin record from Northumberland in 1256 lists poor men as "garciones et ribaldi," boys and ribalds.

The military sense was real, too. The dictionary defines one kind of ribald as a member of a band of irregular soldiers who ravaged the countryside ahead of an army. A romance from around 1330 describes a force that took "three thousand ribaudes."

From there the noun stretched in every unflattering direction. A ribald could be a villain, a lecher, a loose woman, a foul-mouthed speaker or a jester. In one romance from around 1380, a character snaps "Þow lyest, rybaud": you lie, ribald. The dictionary even records ribald as the name of a kind of cannon.

The adjective is much younger. Merriam-Webster dates it to about 1500, meaning crude or offensive, and later describing coarse, indecent humor. Ribaldry, the noun for that humor, is older still, from the 1300s.

Today the noun for a person is marked archaic. What survives is the adjective, and it now attaches to songs, stories and stand-up sets. The word moved from the man to his material, and it lost most of its menace along the way.