retext-capitalization
v1.2.6
Published
A retext plugin to encourage the use of sentence case
Downloads
11
Maintainers
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);
});