0.1.1 • Published 9 years ago

gender-neutral v0.1.1

Weekly downloads
7
License
MIT
Repository
github
Last release
9 years ago

gender-neutral

A node module that neutralizes gender specific text.

Install

[~] npm install git://github.com/tobius/gender-neutral.git

Usage

// node module
var gender = require('gender-neutral');

// gender specific content
var text = 'I called him on Wednesday to tell him the good news.';

// "they" >> I called them on Wednesday to tell them the good news.
gender.neutralize(text, console.log);

// "zhe" >> I called zhim on Wednesday to tell zhim the good news.
gender.neutralize(text, console.log, 'zhe');

Supported Filters

 nominative(subject)oblique(object)possessivedeterminerpossessivepronounreflexive
male genderhe laughedI called himHis eyes gleamThat is hisHe likes himself
female gendershe laughedI called herHer eyes gleamThat is hersShe likes herself
theytheythemtheirtheirsthemself
eeemeireirseirself
eyeyemeireirsemself
thothothorthorsthorthongself
huhuhumhushushumself
perperperperpersperself
thonthonthonthonsthonsthonself
jeejeejemjeirjeirsjemself
vevevervisvisverself
xexexemxyrxyrsxemself
zezemerzerzerszemself
zhezhezhimzherzherszhimself