Whore and sodomite seem both intended to be taken in the sense in which they belonged to the temples of Baal and Ashtaroth, of persons dedicated to impurity.
Related Commentaries of Deuteronomy 23:17
Deuteronomy 23:17
17 There shall be no whorec of the daughters of Israel, nor a sodomite of the sons of Israel.