Using AI to rewrite blog post comments - Peterbe.com
Briefly

Using AI to rewrite blog post comments - Peterbe.com
"When I'm moderating, every. single. comment, this is more or less what I myself do, if I can be bothered. I don't want to take away the message, but I think it looks and reads a lot of better if I correct the spelling and punctuations. It's super common that people write sentences like this: im looking for a song.a lady with a lowe voice that sound happy,and i cant find anywhere I correct that to: I'm looking for a song. A lady with a low voice that sound happy, and I can't find anywhere."
""You are a helpful editor that reads blog post comments and corrects grammar and punctuations." "You have to look for common spelling mistakes, lack of spaces after full stops, incorrect capitalization." "Your job is to rewrite the comment without changing the meaning, but correcting any grammar and punctuation mistakes. Only return the rewritten comment and nothing else. Avoid using Unicode quotation marks, use regular ASCII quotes instead." "Here is the comment:\n\n```{comment_escaped}```""
The blog post 'Find song by lyrics' has about 28,000 approved comments. An AI editor automatically corrects spelling, punctuation, capitalization, and spacing in comments without altering meaning or sentence structure. The editor preserves original human wording while making text cleaner and more readable, accommodating non-native English writers. The implementation uses the OpenAI API with Python and litellm, and model calls run in an asynchronous message queue due to latency. Prompts instruct the system to return only the rewritten comment and to use regular ASCII quotation marks.
Read at Peterbe
Unable to calculate read time
[
|
]