Etymology
From un- (“not”) + gainly (“graceful; becoming; proper, suitable; gracious, kindly”) (from gain (“dexterous; convenient, easy, handy; suitable”), from Old Norse gegn (“fit, serviceable; direct, straight; honest; kindly”) + -ly (suffix forming adjectives from nouns)). Compare dialectal Norwegian Nynorsk ugjegnleg (“stubborn; troublesome”).