PHP code example of phpjerk / gender-neutral

1. Go to this page and download the library: Download phpjerk/gender-neutral library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

phpjerk / gender-neutral example snippets


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

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