Most studies that look at swearing conflate intelligence and vocabulary. A wide vocabulary may indicate intelligence, but it's not the same thing. Sounding smart and being smart are wildly different. It might be more accurate to say that cursing indicates a broad vocabulary.