UNPKG

yoastseo

Version:

Yoast client-side content analysis

77 lines (76 loc) 3.84 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _generalFeedbackStrings = require("./feedbackStrings/generalFeedbackStrings"); 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 appearanceAssessments = [{ identifier: "albinos", nonInclusivePhrases: ["albinos"], inclusiveAlternatives: "<i>people with albinism, albino people</i>", score: _scores.SCORES.POTENTIALLY_NON_INCLUSIVE, feedbackFormat: _generalFeedbackStrings.orangeUnlessSomeoneWants }, { identifier: "anAlbino", nonInclusivePhrases: ["an albino"], inclusiveAlternatives: "<i>person with albinism, albino person</i>", score: _scores.SCORES.POTENTIALLY_NON_INCLUSIVE, feedbackFormat: _generalFeedbackStrings.orangeUnlessSomeoneWants, rule: (words, nonInclusivePhrase) => { return (0, _includesConsecutiveWords.includesConsecutiveWords)(words, nonInclusivePhrase).filter((0, _notInclusiveWhenStandalone.default)(words, nonInclusivePhrase)); }, ruleDescription: _createRuleDescriptions.nonInclusiveWhenStandalone }, { identifier: "obese", nonInclusivePhrases: ["obese", "overweight"], inclusiveAlternatives: "<i>has a higher weight, " + "higher-weight person, person in higher weight body, heavier person</i>", score: _scores.SCORES.POTENTIALLY_NON_INCLUSIVE, feedbackFormat: [_generalFeedbackStrings.orangeUnlessSomeoneWants, _generalFeedbackStrings.preferredDescriptorIfKnown].join(" ") }, { identifier: "obesitySingular", nonInclusivePhrases: ["person with obesity", "fat person"], inclusiveAlternatives: "<i>person who has a higher weight, " + "higher-weight person, person in higher weight body, heavier person</i>", score: _scores.SCORES.POTENTIALLY_NON_INCLUSIVE, feedbackFormat: [_generalFeedbackStrings.orangeUnlessSomeoneWants, _generalFeedbackStrings.preferredDescriptorIfKnown].join(" ") }, { identifier: "obesityPlural", nonInclusivePhrases: ["people with obesity", "fat people"], inclusiveAlternatives: "<i>people who have a higher weight, " + "higher-weight people, people in higher weight bodies, heavier people</i>", score: _scores.SCORES.POTENTIALLY_NON_INCLUSIVE, feedbackFormat: [_generalFeedbackStrings.orangeUnlessSomeoneWants].join(" ") }, { identifier: "verticallyChallenged", nonInclusivePhrases: ["vertically challenged"], inclusiveAlternatives: "<i>little person, has short stature, someone with dwarfism</i>", score: _scores.SCORES.NON_INCLUSIVE, feedbackFormat: _generalFeedbackStrings.redHarmful }, { identifier: "midget", nonInclusivePhrases: ["midget"], inclusiveAlternatives: "<i>little person, has short stature, someone with dwarfism</i>", score: _scores.SCORES.NON_INCLUSIVE, feedbackFormat: _generalFeedbackStrings.redHarmful }, { identifier: "midgets", nonInclusivePhrases: ["midgets"], inclusiveAlternatives: "<i>little people, have short stature, people with dwarfism</i>", score: _scores.SCORES.NON_INCLUSIVE, feedbackFormat: _generalFeedbackStrings.redHarmful }, { identifier: "harelip", nonInclusivePhrases: ["harelip"], inclusiveAlternatives: "<i>cleft lip, cleft palate</i>", score: _scores.SCORES.NON_INCLUSIVE, feedbackFormat: _generalFeedbackStrings.redHarmful }]; appearanceAssessments.forEach(assessment => { assessment.category = "appearance"; assessment.learnMoreUrl = "https://yoa.st/inclusive-language-appearance"; }); var _default = exports.default = appearanceAssessments; //# sourceMappingURL=appearanceAssessments.js.map