phpjerk/gender-neutral

There is no license information available for the latest version (v1.0) of this package.

Make your text gender neutral so people don't get their panties in a bunch. (and yes, men can wear panties too!)

v1.0 2013-12-05 23:59 UTC

This package is not auto-updated.

Last update: 2024-05-07 03:47:18 UTC


README

Build Status

PHPJerk's Gender Neutral Library v1

Simple library that takes your text and removes all gender specific pronouns.

Install

Open up that composer.json and drop this

	"phpjerk/gender-neutral": "dev-master"

Usage

	$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.

	$nu->setNonoWords(['ducky', 'creamy', 'Brad Pitt']);
	$nu->setGoodWord('scrumdiddlyumptious');