我需要将美国英语句子从一个性别转换为另一个性别,使性别中立,或采取性别中立的句子,并使其性别特定。目前我使用的是像"He opened the door".Replace("He","She")这样的东西,但这并不适用于所有人,因为像"she has a sheep".Replace("he","she")这样的东西
and Pensions on the effect of that Department’s welfare policies on women 在陈述中,你可以清楚地看到,这个问题是通过“她”这样的词向该妇女提出的如何在给定的文本中找到特定于女性的单词(例如,参见上面的文本),以及它们在python中使用了多少次。and Pensions on the effect of that Department’s welfare policies on women" maleCount =sum(