The verse in question is Joshua 8:35.
There was not a word of all that Moses commanded that Joshua did not read before all the assembly of Israel, and the women, and the little ones, and the sojourners who lived among them. -Joshua 8:35 (NASB)
The sojourners probably are clearly not in the assembly of Israel, since in multiple places we have "the people of Israel" or any "stranger who sojourns among you" (Lev 16, 17)
When I search "cut off" and "assembly", the only thing I have found is Num 19:20 and Deu 23:1, both of which are for male.
Can we say women and children are "people of Israel" but not in "the assembly of Israel?"