UNPKG

yoastseo

Version:

Yoast client-side content analysis

246 lines (245 loc) 11.4 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _generalFeedbackStrings = require("./feedbackStrings/generalFeedbackStrings"); var _genderAssessmentStrings = require("./feedbackStrings/genderAssessmentStrings"); var _scores = require("./scores"); var _includesConsecutiveWords = require("../helpers/includesConsecutiveWords"); var _notInclusiveWhenStandalone = _interopRequireDefault(require("../helpers/notInclusiveWhenStandalone")); var _createRuleDescriptions = require("../helpers/createRuleDescriptions"); function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } const genderAssessments = [{ identifier: "firemen", nonInclusivePhrases: ["firemen"], inclusiveAlternatives: "<i>firefighters</i>", score: _scores.SCORES.POTENTIALLY_NON_INCLUSIVE, feedbackFormat: _genderAssessmentStrings.orangeExclusionaryUnlessMen }, { identifier: "policemen", nonInclusivePhrases: ["policemen"], inclusiveAlternatives: "<i>police officers</i>", score: _scores.SCORES.POTENTIALLY_NON_INCLUSIVE, feedbackFormat: _genderAssessmentStrings.orangeExclusionaryUnlessMen }, { identifier: "menAndWomen", nonInclusivePhrases: ["men and women", "women and men"], inclusiveAlternatives: "<i>people, people of all genders, individuals, human beings</i>", score: _scores.SCORES.POTENTIALLY_NON_INCLUSIVE, feedbackFormat: _genderAssessmentStrings.orangeExclusionaryUnless }, { identifier: "boysAndGirls", nonInclusivePhrases: ["boys and girls", "girls and boys"], inclusiveAlternatives: "<i>kids, children</i>", score: _scores.SCORES.POTENTIALLY_NON_INCLUSIVE, feedbackFormat: _genderAssessmentStrings.orangeExclusionaryUnless }, { identifier: "heOrShe", nonInclusivePhrases: ["he/she", "he or she", "she or he", "(s)he"], inclusiveAlternatives: "<i>they</i>", score: _scores.SCORES.POTENTIALLY_NON_INCLUSIVE, feedbackFormat: _generalFeedbackStrings.orangeExclusionaryNoUnless }, { identifier: "birthSex", nonInclusivePhrases: ["birth sex", "natal sex"], inclusiveAlternatives: "<i>assigned sex, assigned sex at birth</i>", score: _scores.SCORES.NON_INCLUSIVE, feedbackFormat: _generalFeedbackStrings.redHarmful }, { identifier: "mankind", nonInclusivePhrases: ["mankind"], inclusiveAlternatives: "<i>individuals, people, persons, human beings, humanity</i>", score: _scores.SCORES.NON_INCLUSIVE, feedbackFormat: _generalFeedbackStrings.redExclusionary }, { identifier: "preferredPronouns", nonInclusivePhrases: ["preferred pronouns"], inclusiveAlternatives: "<i>pronouns</i>", score: _scores.SCORES.POTENTIALLY_NON_INCLUSIVE, feedbackFormat: [_generalFeedbackStrings.orangeNoUnless.slice(0, -1), ", unless referring to someone who explicitly wants to use" + " this term to describe their own pronouns."].join("") }, { identifier: "oppositeGender", nonInclusivePhrases: ["opposite gender"], inclusiveAlternatives: "<i>another gender</i>", score: _scores.SCORES.NON_INCLUSIVE, feedbackFormat: _generalFeedbackStrings.redExclusionary }, { identifier: "oppositeSex", nonInclusivePhrases: ["opposite sex"], inclusiveAlternatives: "<i>another sex</i>", score: _scores.SCORES.NON_INCLUSIVE, feedbackFormat: _generalFeedbackStrings.redExclusionary }, { identifier: "femaleBodied", nonInclusivePhrases: ["female-bodied"], inclusiveAlternatives: "<i>assigned female at birth</i>", score: _scores.SCORES.NON_INCLUSIVE, feedbackFormat: _generalFeedbackStrings.redPotentiallyExclusionary.slice(0, -1) + " if you are discussing a person based on their sex or assigned gender at birth. " + "If talking about human anatomy, use the specific anatomical phrase as opposed to <i>%1$s</i>." }, { identifier: "maleBodied", nonInclusivePhrases: ["male-bodied"], inclusiveAlternatives: "<i>assigned male at birth</i>", score: _scores.SCORES.NON_INCLUSIVE, feedbackFormat: _generalFeedbackStrings.redPotentiallyExclusionary.slice(0, -1) + " if you are discussing a person based on their sex or assigned gender at birth. " + "If talking about human anatomy, use the specific anatomical phrase as opposed to <i>%1$s</i>." }, { identifier: "hermaphrodite", nonInclusivePhrases: ["hermaphrodite"], inclusiveAlternatives: "<i>intersex</i>", score: _scores.SCORES.NON_INCLUSIVE, feedbackFormat: _generalFeedbackStrings.redHarmful }, { identifier: "hermaphrodites", nonInclusivePhrases: ["hermaphrodites"], inclusiveAlternatives: "<i>intersex people</i>", score: _scores.SCORES.NON_INCLUSIVE, feedbackFormat: _generalFeedbackStrings.redHarmful }, { identifier: "bothGenders", nonInclusivePhrases: ["both genders"], inclusiveAlternatives: "<i>people, folks, human beings, all genders</i>", score: _scores.SCORES.POTENTIALLY_NON_INCLUSIVE, feedbackFormat: _genderAssessmentStrings.orangeExclusionaryUnlessTwoGenders }, { identifier: "ladiesAndGentleman", nonInclusivePhrases: ["ladies and gentlemen"], inclusiveAlternatives: "<i>everyone, folks, honored guests</i>", score: _scores.SCORES.POTENTIALLY_NON_INCLUSIVE, feedbackFormat: _genderAssessmentStrings.orangeExclusionaryUnlessMenAndWomen }, { identifier: "husbandAndWife", nonInclusivePhrases: ["husband and wife", "husbands and wives"], inclusiveAlternatives: "<i>spouses, partners</i>", score: _scores.SCORES.POTENTIALLY_NON_INCLUSIVE, feedbackFormat: _generalFeedbackStrings.orangeExclusionaryNoUnless.slice(0, -1) + ", unless referring to someone who explicitly wants to be referred to with this term." }, { identifier: "mothersAndFathers", nonInclusivePhrases: ["mothers and fathers", "fathers and mothers"], inclusiveAlternatives: "<i>parents</i>", score: _scores.SCORES.POTENTIALLY_NON_INCLUSIVE, feedbackFormat: _genderAssessmentStrings.orangeExclusionaryUnlessUseTheTerm }, { identifier: "manHours", nonInclusivePhrases: ["man-hours"], inclusiveAlternatives: "<i>person-hours, business hours</i>", score: _scores.SCORES.NON_INCLUSIVE, feedbackFormat: _generalFeedbackStrings.redExclusionary }, { identifier: "preferredName", nonInclusivePhrases: ["preferred name"], inclusiveAlternatives: "<i>name, affirming name</i>", score: _scores.SCORES.POTENTIALLY_NON_INCLUSIVE, feedbackFormat: [_generalFeedbackStrings.orangeNoUnless.slice(0, -1), ", unless referring to someone who explicitly wants to use" + " this term to describe their own name."].join("") }, { identifier: "transgenders", nonInclusivePhrases: ["transgenders"], inclusiveAlternatives: "<i>trans people, transgender people</i>", score: _scores.SCORES.NON_INCLUSIVE, feedbackFormat: [_generalFeedbackStrings.avoidDerogatory, _generalFeedbackStrings.alternative].join(" ") }, { identifier: "transsexual", nonInclusivePhrases: ["transsexual"], inclusiveAlternatives: "<i>transgender</i>", score: _scores.SCORES.POTENTIALLY_NON_INCLUSIVE, feedbackFormat: _generalFeedbackStrings.orangeUnlessSomeoneWants }, { identifier: "transsexuals", nonInclusivePhrases: ["transsexuals"], inclusiveAlternatives: "<i>trans people, transgender people</i>", score: _scores.SCORES.POTENTIALLY_NON_INCLUSIVE, feedbackFormat: _generalFeedbackStrings.orangeUnlessSomeoneWants }, { identifier: "transWoman", nonInclusivePhrases: ["transwoman"], inclusiveAlternatives: "<i>trans woman, transgender woman</i>", score: _scores.SCORES.POTENTIALLY_NON_INCLUSIVE, feedbackFormat: _generalFeedbackStrings.orangeUnlessSomeoneWants }, { identifier: "transWomen", nonInclusivePhrases: ["transwomen"], inclusiveAlternatives: "<i>trans women, transgender women</i>", score: _scores.SCORES.POTENTIALLY_NON_INCLUSIVE, feedbackFormat: _generalFeedbackStrings.orangeUnlessSomeoneWants }, { identifier: "transMan", nonInclusivePhrases: ["transman"], inclusiveAlternatives: "<i>trans man, transgender man</i>", score: _scores.SCORES.POTENTIALLY_NON_INCLUSIVE, feedbackFormat: _generalFeedbackStrings.orangeUnlessSomeoneWants }, { identifier: "transMen", nonInclusivePhrases: ["transmen"], inclusiveAlternatives: "<i>trans men, transgender men</i>", score: _scores.SCORES.POTENTIALLY_NON_INCLUSIVE, feedbackFormat: _generalFeedbackStrings.orangeUnlessSomeoneWants }, { identifier: "transgendered", nonInclusivePhrases: ["transgendered"], inclusiveAlternatives: ["<i>transgender, trans</i>", "transitioned, went through a gender transition"], score: _scores.SCORES.NON_INCLUSIVE, feedbackFormat: [_generalFeedbackStrings.redHarmful.slice(0, -1), "if referring to a person. If referring to a transition process," + " consider using an alternative such as <i>%3$s</i>."].join(" ") }, { identifier: "maleToFemale", nonInclusivePhrases: ["male-to-female", "mtf"], inclusiveAlternatives: "<i>trans woman, transgender woman</i>", score: _scores.SCORES.POTENTIALLY_NON_INCLUSIVE, feedbackFormat: _generalFeedbackStrings.orangeUnlessSomeoneWants }, { identifier: "femaleToMale", nonInclusivePhrases: ["female-to-male", "ftm"], inclusiveAlternatives: "<i>trans man, transgender man</i>", score: _scores.SCORES.POTENTIALLY_NON_INCLUSIVE, feedbackFormat: _generalFeedbackStrings.orangeUnlessSomeoneWants }, { identifier: "heShe", nonInclusivePhrases: ["he-she"], inclusiveAlternatives: "", score: _scores.SCORES.NON_INCLUSIVE, feedbackFormat: _generalFeedbackStrings.avoidDerogatory }, { identifier: "shemale", nonInclusivePhrases: ["shemale", "she-male"], inclusiveAlternatives: "", score: _scores.SCORES.NON_INCLUSIVE, feedbackFormat: _generalFeedbackStrings.avoidDerogatory }, { identifier: "manMade", nonInclusivePhrases: ["man-made", "manmade"], inclusiveAlternatives: "<i>artificial, synthetic, machine-made</i>", score: _scores.SCORES.NON_INCLUSIVE, feedbackFormat: _generalFeedbackStrings.redExclusionary }, { identifier: "toEachTheirOwn", nonInclusivePhrases: ["to each his own"], inclusiveAlternatives: "<i>to each their own</i>", score: _scores.SCORES.NON_INCLUSIVE, feedbackFormat: _generalFeedbackStrings.redExclusionary }, { identifier: "manned", nonInclusivePhrases: ["manned"], inclusiveAlternatives: "<i>crewed</i>", score: _scores.SCORES.NON_INCLUSIVE, feedbackFormat: _generalFeedbackStrings.redExclusionary }, { identifier: "aTransgender", nonInclusivePhrases: ["a transgender", "the transgender"], inclusiveAlternatives: "<i>transgender person</i>", score: _scores.SCORES.NON_INCLUSIVE, feedbackFormat: _generalFeedbackStrings.redHarmful, rule: (words, nonInclusivePhrase) => { return (0, _includesConsecutiveWords.includesConsecutiveWords)(words, nonInclusivePhrase).filter((0, _notInclusiveWhenStandalone.default)(words, nonInclusivePhrase)); }, ruleDescription: _createRuleDescriptions.nonInclusiveWhenStandalone }, { identifier: "pregnant women", nonInclusivePhrases: ["pregnant women"], inclusiveAlternatives: "<i>pregnant people</i>", score: _scores.SCORES.POTENTIALLY_NON_INCLUSIVE, feedbackFormat: "Be careful when using <i>%1$s</i> as it can be exclusionary. Unless you are sure that the group" + " you refer to only consists of women, use an alternative, such as %2$s." }]; genderAssessments.forEach(assessment => { assessment.category = "gender"; assessment.learnMoreUrl = "https://yoa.st/inclusive-language-gender"; }); var _default = exports.default = genderAssessments; //# sourceMappingURL=genderAssessments.js.map