retext-capitalization

A retext plugin to encourage the use of sentence case

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
retext-capitalization
001.2.610 months agoa year agoMinified + gzip package size for retext-capitalization in KB

Readme

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);
  });