06/12
2013
Make your text gender neutral so people don't get their panties in a bunch. (and yes, men can wear panties too!)
Simple library that takes your text and removes all gender specific pronouns., (*2)
Open up that composer.json and drop this, (*3)
"phpjerk/gender-neutral": "dev-master"
$nu = new Phpjerk\GenderNeutral\GenderNeutral; $text = "Read errors are reported only if nsent==0, otherwise we return nsent. The user needs to know that some data has already been sent, to stop him from sending it twice."; echo $nu->neuter($text);
You can also change the 'bad' words and the 'good' word to replace it., (*4)
$nu->setNonoWords(['ducky', 'creamy', 'Brad Pitt']); $nu->setGoodWord('scrumdiddlyumptious');