Correct Text With ChatGpt π§
Correct Text for misspellings and grammatical errors with ChatGpt. No need to go for a subscription with an expensive service.
// Name: Correct Text With ChatGpt
// Description: Correct Text for misspellings and grammatical errors with ChatGpt. No need to go for a subscription with an expensive service.
// Author: Eduard Uffelmann
// Linkedin: https://www.linkedin.com/in/euffelmann/
// Twitter: @schmedu_
// Website: https://schmedu.com
import "@johnlindquist/kit";
import { startChat } from "../lib/common";
let selectedText = await getSelectedText();
let task = `Could you please correct the following text from misspellings and grammatical errors? Just answer with your corrected text. Try to write like a human and don't use so many phrases like 'Therefore', 'Moreover', 'All in all', etc.
\`\`\`
${selectedText}
\`\`\``;
await startChat({
prompt: task,
model: "gpt-3.5-turbo",
temperature: 1,
runPromptImmediately: true,
});
- π₯ Input
- Selected Text
- π€ Output
- Changed Selected Text
- π» Setup
- Easy
- π· TagsοΈ
- text, replace text