Skip to navigation Skip to main content
The possum is Eleventy’s mascot
Stable
3.0.0
Canary
3.1.0-alpha.1

Inclusive Language Plugin

On this page

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

Jump to section titled: 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

Jump to section titled: 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",
});
};

Other pages in Plugins