logoalt Hacker News

stingraycharles • today at 10:20 AM • 1 reply • view on HN

Surprisingly, getting an LLM to write a custom linter that checks for a lot of common pitfalls based on string pattern search, paragraph length, sentence length, etc etc is actually quite effective as a way to force your LLM to behave.

It’s what I ended up doing, and it works pretty well.


Replies

jadyoyster • today at 10:26 AM

My experience as well. The current LLMs are unable to write or code-comment like a human as primary output, but if you ask "characterize human vs LLM writing, and fix it up" they are often able to substantially correct.