unified

Project: danielgolden/retext-capitalization

Package: retext-capitalization@1.2.6

  1. A retext plugin to encourage the use of sentence case
  1. retext 42
  2. unifiedjs 5

retext-capitalization

A retext plugin to encourage the use of sentence case.

Install

npm install retext-capitalization

Use

import { retext } from "retext";
import retextCapitalization from "./index.js";

retext()
  .use(retextCapitalization)
  .process("i want to watch a movie about Mars.")
  .then((text) => {
    console.error(text.messages);
  });