cli to detect tropes in prose
rust
cli
ai
toml
aho-corasick
llm
slop
TODO#
Fixtures#
- Use
lectitoto turn selected URLs frommeta/examples.txtinto checked-in plain text fixtures.
lectito --format text <url> > meta/examples/clean/example.txt
- Add clean examples that produce no findings, or only expected low-noise findings.
- Add slop examples that produce expected pattern ids.
Tests#
- Add CLI integration tests for file input.
- Add CLI integration tests for stdin input.
- Add CLI integration tests for
NO_COLOR. - Add CLI integration tests for exit code
0on clean input. - Add CLI integration tests for exit code
1on matched input. - Add snapshot-style tests for multiline CLI report formatting.
Detector Quality#
- Tune detector thresholds against checked-in fixtures.
- Consider grouping or suppressing overlapping findings when one text span triggers multiple heuristic detectors.
- Consider summarizing repeated Unicode Decoration findings to reduce report noise.
- Consider turning Em-Dash Addiction into a count or density detector instead
of relying on the ASCII
" -- "phrase proxy.