The character of Rachav in Sefer Yehoshua appears, on the surface, to be of low character and motivated by self-interest. The careful way the text uses language points us to an entirely different conclusion: she is, in actuality, a model of the sincere convert or baal/at teshuvah.
Part of my Medieval Torah Commentary Collection