So, we know that 'Formic Acid' was derived in formic acid in the late 18th century from the Latin word 'formica'. From Wikipedia:
Formica is a genus of ants of the family Formicidae, commonly known as wood ants, mound ants, thatching ants, and field ants. Formica is the type genus of the Formicidae, and of the subfamily Formicinae.
I think I've read in some junior classes that the biological name 'Formica' was given to ant because of the secretion of 'Formic Acid' by it which is the cause of the irritation at the stung area.
So, I want to know - Is formic acid derived from 'Formica' (ants) or are ants' (biological name) derived from the presence of 'formic acid' in them?