Hello,
I'm looking to write a program that will take a user input (a sentence) and make it less sexist.
For ex., User input is -> He who laughs last, laughs best.
Program output -> She or he who laughs last, laughs best.
or
"A student can get a discount if he shows his ID."
should be replaced by
"A student can get a discount if he or she shows his or her ID."
I'm a little lost on how to scan the string to pick up the pronouns and replace them. I don't expect someone to write this for me, but am looking for a push in the right direction. Any info, source code examples, links, or hints would be most appreciated.
Thanks in advance.
WR



LinkBack URL
About LinkBacks



