Under the bill , anyone convicted of a sexually violent offense could be required as a condition of release to take the drugs designed to reduce a male offender’s testosterone and sexual libido. A second offense would require the treatment unless a court determined it wouldn’t be effective.

California became the first state to pass such a law in 1996, and since then at least six other states have passed laws allowing it in some form, including Georgia, Florida, Louisiana, Montana, Oregon and Wisconsin, according to the National Conference of State Legislatures. Texas allows repeat sex offenders to voluntarily elect to be surgically castrated.

It’s unclear how often the procedure is used, but it appears to be rare.