In railroad English, a yardmaster is the officer who runs a rail yard: assembling and breaking up trains, routing engines and cars from track to track, and supervising the crews who do the switching. The title is still used in North America and turns up in British railway writing as well. It names a workplace role, not a craft mystery and not a military rank.
The origin of the word yardmaster is not a loan from another language. English already had both halves. In the nineteenth century they were joined, the same way stationmaster, postmaster, and schoolmaster name the person who has charge of a place.
A compound of the rail age
Dictionaries treat the word as a transparent compound of yard and master. They do not agree on the year it first reached print. Merriam-Webster gives 1858. Several college dictionaries that follow the Random House line place first use in 1870–75, and Collins follows that later window. Either dating puts the title in the decades when steam railways were building large switching grounds next to stations and terminals.
The rail sense of yard itself is a little older. Historical dictionaries record it from 1827: ground beside a station or terminus used for switching or coupling trains. The job title follows that sense rather than inventing a new one. By the late 1870s the office was ordinary enough to appear in court. An 1877 Missouri case discusses a yard-master whose duties included hiring and discharging the men who made up trains. Hyphenated spellings of that kind were still common; the closed form later became the usual dictionary headword.
Collins still marks the word as a United States railways term. British railway magazines of the mid-twentieth century used it too, so the geography of print is a little wider than one regional label. What did not spread is a second meaning. English did not give the compound a life outside rail yards, and it did not become a general word for any boss of an enclosed lot.
Yard: an enclosure, not a measure
The first half is the enclosure word, not the unit of length. Those two yards are homonyms with different Old English ancestors, and mixing them up is the one folk story the compound invites.
Railroad yard comes from Middle English yerd, from Old English geard, a fenced enclosure, garden, court, or dwelling. That word is inherited, not borrowed, from Proto-Germanic *gardaz (or a closely related *gardan- stem). Cognates include Old Norse garðr, Dutch gaard, Old High German garto, German Garten, and Gothic gards for a house or court. Further out sit Latin hortus and Greek chórtos, though specialists still argue about the exact Indo-European reconstruction: some start from a root meaning to grasp or enclose, others from *gʰerdʰ- / *gʰórdʰos. The same Germanic family also yields English garden, which arrived through French, and northern English and Scots garth, which arrived through Old Norse. Both are doublets of yard in the enclosure sense.
By the late fourteenth century, English used yard for a plot where work or business was done, not only a house court. Shipyards, brickyards, and dockyards sit in that line. When railways needed a name for the lattice of tracks used to store cars and make up trains, they reused that industrial sense. Merriam-Webster still lists a railroad-yard sense among the enclosure meanings, and the adjective yard in American English can mean employed in such a yard, as in yard engine.
The length-unit yard, from Old English gierd or gerd, a rod or staff, is a different word. It has nothing to do with the job title.
Master: the one who is greater
Master entered English much earlier than the railroad. Late Old English had mægester, a man with authority over a place, or a teacher of children, taken from Latin magister, chief, head, or teacher. Magister is a contrastive formation from magis, more, itself from a comparative of the Indo-European root *meg-, great. Middle English spelling and sound were pulled toward the Old French cognate maistre. Related titles in other European languages — French maître, Spanish and Italian maestro, Dutch meester, German Meister — come from the same Latin noun.
By the mid-thirteenth century, English used master for someone charged with oversight of an office or business. The captain of a merchant ship, from the early fourteenth century, is one well-known special case. Heads of institutions and later stationmasters sit in the same slot. Yardmaster is that pattern applied to a rail enclosure: the person who is greater, in the old sense of having charge, over the yard.
The morphology is therefore two free English words, not a prefix plus a bound root. Yard is the place. Master is the officer. Nothing in the history supports a tale that the title came from the three-foot measure, or from a foreign compound imported whole.
What the sense did and did not do
The compound has not drifted far. From the first dictionary definitions it means the superintendent of all or part of a railroad yard. Later job descriptions fill in the work without changing the core: combining rolling stock into trains, breaking trains into cars, and switching from track to track. A coordinate term, yardman, names someone who works in the yard rather than runs it.
In the United States the title became a union category. The Railroad Yardmasters of America was organized in December 1918. Early membership rules named general yardmasters, assistants, and even station masters as related grades. That institutional history confirms how the word was understood: a named railroad office, with ranks under it, not a nickname that later hardened into a title.
There is no obsolete second sense that needs recovering. The interesting change is in yard, not in the compound. A native word for a fenced dwelling-place stretched to industrial enclosures and then, after 1827, to a system of rails. The title simply followed the new kind of yard.
What is worth keeping is the dating split. One major dictionary is willing to print 1858; others still say 1870–75. Until a single first quotation is widely shared, the safer statement is that the compound belongs to mid-nineteenth-century railroad English, built from an Old English enclosure word and a Latin title of authority.