- Stable
3.0.0
- Canary
3.0.1-alpha.1
Toggle Menu
Eleventy
1.93s
Astro
22.90s
Inclusive Language Plugin
Contents
An Eleventy linter plugin to check for inclusive language in markdown files. Inspired by CSS Tricks’ Words to Avoid in Educational Writing. No browser/client JavaScript here—everything is this plugin is done at build-time.
Inclusive Language Linter (./docs/quicktips/concatenate.md):
be modified, of course, to capture multiple
Of course, Eleventy has no desire to re
This is just a super simple example if you
build pipeline. That’s an easy way to concatenate
Installation
Available on npm.
npm install @11ty/eleventy-plugin-inclusive-language
Open up your Eleventy config file (probably eleventy.config.js
) and use addPlugin
:
eleventy.config.js
import inclusiveLangPlugin from "@11ty/eleventy-plugin-inclusive-language";
export default function (eleventyConfig) {
eleventyConfig.addPlugin(inclusiveLangPlugin);
};
const inclusiveLangPlugin = require("@11ty/eleventy-plugin-inclusive-language");
module.exports = function (eleventyConfig) {
eleventyConfig.addPlugin(inclusiveLangPlugin);
};
INFO:
You’re only allowed one
module.exports
in your configuration file, so make sure you only copy the require
and the addPlugin
lines above!Options
Optionally pass in an options object as the second argument to addPlugin
to further customize this plugin.
eleventy.config.js
import inclusiveLangPlugin from "@11ty/eleventy-plugin-inclusive-language";
export default function (eleventyConfig) {
eleventyConfig.addPlugin(inclusiveLangPlugin, {
templateFormats: ["md"], // default, add more file extensions here
// accepts an array or a comma-delimited string
words:
"simply,obviously,basically,of course,clearly,just,everyone knows,however,easy",
});
};
const inclusiveLangPlugin = require("@11ty/eleventy-plugin-inclusive-language");
module.exports = function (eleventyConfig) {
eleventyConfig.addPlugin(inclusiveLangPlugin, {
templateFormats: ["md"], // default, add more file extensions here
// accepts an array or a comma-delimited string
words:
"simply,obviously,basically,of course,clearly,just,everyone knows,however,easy",
});
};