0.0.5 • Published 7 years ago

gender-fluid v0.0.5

Weekly downloads
33
License
Apache-2.0
Repository
github
Last release
7 years ago

gender-fluid

npm license

Travis branch codecov David

A node module that fluidizes gender specific text.

Install

yarn add gender-fluid

Usage

var GenderFluid = require('gender-fluid');

// setup configuration
var gender = new GenderFluid()

// defaults are
var gender = new GenderFluid(
    'they',           // form to fluidize to
    ['he', 'she'],    // forms to fluidize from
    'en'              // locale
)

// let's fluidize some gender specific content
// ES6 syntax
var specific = 'I called him on Wednesday to tell him the good news.';
gender.fluidize(specific)
    .then(fluid => {
        console.log(fluid)  // I called them on Wednesday to tell them the good news.
    });

Conversion is possible in any direction (although quality of grammer will vary).

// vanilla syntax
var specific = 'He should talk to them about feminism.';
var gender = new GenderFluid('she', ['he', 'they']);
gender.fluidize(specific)
    .then(function(fluid) {
        console.log(fluid)  // She should talk to her about feminism.
    });

Supported Filters

English (en)
nominative(subject)oblique(object)possessivedeterminerpossessivepronounreflexivegenerichonorificjunior
hehehimhishishimselfmanmrboy
shesheherherhersherselfwomanms, mrs, missgirl
theytheythemtheirtheirsthemselfpersonmxchild
eeemeireirseirselfpersonmxchild
eyeyemeireirsemselfpersonmxchild
thothothorthorsthorthongselfpersonmxchild
huhuhumhushushumselfpersonmxchild
perperperperpersperselfpersonmxchild
thonthonthonthonsthonsthonselfpersonmxchild
jeejeejemjeirjeirsjemselfpersonmxchild
vevevervisvisverselfpersonmxchild
xexexemxyrxyrsxemselfpersonmxchild
zezemerzerzerszemselfpersonmxchild
zhezhezhimzherzherszhimselfpersonmxchild
0.0.5

7 years ago

0.0.4

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago