Complex sentence: The ritual is said to encourage girls to abstain from sex before marriage and maintain their purity, however girls who have lost their virginity are treated as pariahs during this ritual, as virginity testing is done before the ritual.
Split into simpler sentences: The ritual is said to encourage girls to abstain from sex before marriage and maintain their purity. Girls who have lost their virginity are treated as pariahs during this ritual, as virginity testing is done before the ritual.