Skip to content

Make your text gender-neutral by running it through this neutralizer.

Notifications You must be signed in to change notification settings

phpjerk/gender-neutral

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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');

About

Make your text gender-neutral by running it through this neutralizer.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages