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