1540s, "to disgrace," of uncertain origin. Perhaps a Scottish respelling of bauchle "to disgrace publicly" (especially a perjured knight), which is probably related to French bafouer "to abuse, hoodwink" (16c.), possibly from baf, a natural sound of disgust, like bah (compare German baff machen "to flabbergast"). The original sense is obsolete. Meaning "defeat someone's efforts, frustrate by interposing obstacles or difficulties" is from 1670s. Related: Baffled; baffling.
common suffix of Latin origin forming nouns, originally from French and representing Latin -mentum, which was added to verb stems to make nouns indicating the result or product of the action of the verb or the means or instrument of the action. In Vulgar Latin and Old French it came to be used as a formative in nouns of action. French inserts an -e- between the verbal root and the suffix (as in commenc-e-ment from commenc-er; with verbs in ir, -i- is inserted instead (as in sent-i-ment from sentir).
Used with English verb stems from 16c. (for example amazement, betterment, merriment, the last of which also illustrates the habit of turning -y to -i- before this suffix).
The stems to which -ment is normally appended are those of verbs; freaks like oddment & funniment should not be made a precedent of; they are themselves due to misconception of merriment, which is not from the adjective, but from an obsolete verb merry to rejoice. [Fowler]