You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support banning of em-dash and other common LLM characters. #11
Essentially I don't want em-dashes or, arrows or elipses in my markdown. I want them to use the ascii equivalents. And I want some easy ways to configure what is and isn't banned because I might want to allow certain characters for an architecture diagram, for example.
Here's a sample of what I'm talking about:
Character
Name
LLM Usage
Preferred Equivalent
—
Em Dash
Stylistic breaks and parenthetical thoughts
-- or -
–
En Dash
Number, date, and time ranges
-
−
Minus Sign
Exact mathematical notation
-
•
Bullet
Literal list formatting
- or *
─
Box Drawing
Visual dividers and text-based tables
---
So I think the lint should be highly configurable with "banned character" and "suggested replacement", or something like that. But also, it should be easy to turn it on and just take the default list of banned->replacements.
When implementing this issue, you should search the Internet to try and really understand what people hate, and what people are looking for when they are trying to detect LLM slop. Make a reasonable default character banning default for this lint.
I think this lint should ignore stuff that is inside of fences:
Architecture drawing inside of a fence
Because I think it is common to want the drawing characters inside those.
Activity
feat: ban characters such as the em dash (#22)
feat: add deslag fix for banned characters (#51)