(Devarim 23:4) "An Amoni and a Moavi shall not come into the congregation of the L-rd": Scripture speaks of males and not of females, it being written "Amoni" (masculine), and not "Amonith" (feminine); "Moavi," and not "Moavith."
Ruth Receives the Torah
Sifrei Devarim 249:1