"lodging for ships; sheltered recess in a coastline," early 12c., a specialized sense of Middle English herberwe "temporary dwelling place, quarters, lodgings; an inn; the camp of an army in the field," probably from Old English here-beorg (West Saxon), *here-berg (Anglian) "lodgings, quarters," from Proto-Germanic compound *harja-bergaz "shelter, lodgings," from *heri "army, host" (see harry (v.)) + *burzjan- "protection, shelter" (from PIE root *bhergh- (1) "to hide, protect"). Perhaps modeled on Old Norse herbergi "room, lodgings, quarters."
"rectangular groove or channel cut out of the edge of a board or piece of stone so that it will join by overlapping with the next piece, similarly cut," late 14c., rabet, from Old French rabat "a recess in a wall, a lower section," literally "a beating down or back," a back-formation from rabattre "to beat down, beat back" (see rebate (v.); the noun is a doublet of this word).
The verb, meaning "to groove or fit (boards, etc.) by cutting rabbets" is attested from mid-15c. (implied in rabatted, rabetynge); Middle English also had rabet "joiner's plane, rabbet-plane" (mid-15c., from Old French rabot).
also pigeonhole, 1570s as "a small recess for pigeons to nest in," from pigeon + hole (n.); later "hole in a dovecote for pigeons to pass in and out" (1680s). Extended meaning "a little compartment or division in a writing desk," etc. is from 1680s, based on resemblance. Hence, "an ideal compartment for classification of persons, etc." (by 1879). The verb is from 1840, "place or file away in a pigeon-hole." The figurative sense of "lay aside for future consideration" is by 1854, that of "label mentally" by 1870.
[Y]ou will have an inspector after you with note-book and ink-horn, and you will be booked and pigeon-holed for further use when wanted. ["Civilisation—The Census," Blackwood's Magazine, Oct. 1854]
1847, applied to a species of large apes (Troglodytes gorilla) by U.S. missionary Thomas Savage, from Greek gorillai, plural of name given to wild, hairy beings (now supposed to have been chimpanzees) in a Greek translation of Carthaginian navigator Hanno's account of his voyage along the northwest coast of Africa, c. 500 B.C.E. Allegedly an African word.
In its inmost recess was an island similar to that formerly described, which contained in like manner a lake with another island, inhabited by a rude description of people. The females were much more numerous than the males, and had rough skins: our interpreters called them Gorillae. We pursued but could take none of the males; they all escaped to the top of precipices, which they mounted with ease, and threw down stones; we took three of the females, but they made such violent struggles, biting and tearing their captors, that we killed them, and stripped off the skins, which we carried to Carthage: being out of provisions we could go no further. [Hanno, "Periplus"]
Of persons perceived as being gorilla-like, from 1884.
"a bay, cove, inlet, or recess of a large body of water where vessels can load and unload and find shelter from storms; a harbor, whether natural or artificial," Old English port "a port, harbor, a place where there is a constant resort of vessels for the purpose of loading and unloading;" also "a town, market town, city," reinforced by Old French port "harbor, port; mountain pass." The Old English and Old French words both are from Latin portus "a port, harbor," figuratively "haven, place of refuge, asylum" (in Old Latin also "a house;" in Late Latin also "a warehouse"), originally "an entrance, a passage," akin to porta "a city gate, a gate, a door" (from PIE *prtu- "a going, a passage," suffixed form of root *per- (2) "to lead, pass over").
[I]in law, a place where persons and merchandise are allowed to pass into and out of the realm and at which customs officers are stationed for the purpose of inspecting or appraising imported goods. In this sense a port may exist on the frontier, where the foreign communication is by land. [Century Dictionary]
The figurative sense "place, position, or condition of refuge" is attested in English from early 15c.; phrase any port in a storm, indicating "any refuge is welcomed in adversity," is by 1749. A port of call (1810) is one paid a scheduled visit by a vessel in the course of its voyage. The verb meaning "to carry or bring into a port" is by 1610s.