[302] When it is a woman, and he perceives her as a woman, and he teaches the Dhamma in more than five or six sentences, except in the presence of a knowledgeable man, there is an offense entailing expiation (pācittiya). When it is a woman, and he is in doubt, and he teaches the Dhamma in more than five or six sentences, except in the presence of a knowledgeable man, there is an offense entailing expiation. When it is a woman, and he perceives her as not a woman, and he teaches the Dhamma in more than five or six sentences, except in the presence of a knowledgeable man, there is an offense entailing expiation.
If he teaches the Dhamma in more than five or six sentences to a female yakkha, or to a female peta, or to a paṇḍaka, or to a female animal having a human-like form, except in the presence of a knowledgeable man, there is an offense of wrongdoing (dukkaṭa). When it is not a woman, and he perceives her as a woman, there is an offense of wrongdoing. When it is not a woman, and he is in doubt, there is an offense of wrongdoing. When it is not a woman, and he perceives her as not a woman, there is no offense.
English translation from the Pali (Siam Raṭṭha edition) — under review, not for citation.