INNER CODE UNIT · Python

main

sangrokjung/claude-forge · scripts/emdash_slop_check.py:123

def main(argv):
    total = 0
    kinds = set()
    for path in argv:
        if not os.path.isfile(path):
            continue
        hits = check_file(path)
        if not hits:
            continue
        total += len(hits)
        base = os.path.basename(path)
        for n, text, kind in hits[:5]:
            kinds.add(kind)
            print(f'[Emdash Slop] {base}:{n}({kind}): {text[:80]}')
        if len(hits) > 5:
            for _, _, kind in hits[5:]:
                kinds.add(kind)
            print(f'[Emdash Slop] {base}: ... and {len(hits) - 5} more')

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…