Charak Samhita
पुत्रं त्वतो लिङ्गविपर्ययेण व्यामिश्रलिङ्गा प्रकृतिं तृतीयाम्। गर्भोपपत्तौ तु मनः स्त्रिया यं जन्तुं व्रजेत्तत्सदृशं प्रसूते ॥२५॥
Signs- symptoms contrary to the above indicate the male foetus, while a mixture of symptoms of male and female fetus indicate those of a hermaphrodite. A child resembles that person/animal to whom the mother’s mind is attracted during conception.
english translation
putraM tvato liGgaviparyayeNa vyAmizraliGgA prakRtiM tRtIyAm। garbhopapattau tu manaH striyA yaM jantuM vrajettatsadRzaM prasUte ॥25॥
hk transliteration by Sanscript