King James Version (KJV)
Thus were they defiled with their own works, and went a whoring with their own inventions.
Modern English
Thus they became unclean by their acts, and played the whore in their deeds.
Hebrew
וַיִּטְמְא֥וּ בְמַעֲשֵׂיהֶ֑ם וַ֝יִּזְנ֗וּ בְּמַעַלְלֵיהֶֽם׃
vayiṭmʾv bmaʿasheyhem vayiznv bmaʿalleyhem