Skip to content

v0.9.0

Latest

Choose a tag to compare

@benjaminjackson benjaminjackson released this 21 Sep 23:26
· 91 commits to main since this release

sloplint 0.9.0 and the first release of the companion gem, sloplint-judge 0.1.0. Both are on rubygems: gem install sloplint sloplint-judge.

Added

  • sloplint check --judge runs the rules of sloplint-judge alongside the
    regex catalog and merges the notes in document order. The judge is a second
    gem built from this repository (sloplint-judge.gemspec, exe/sloplint-judge)
    whose rules are questions put to a System One model. sloplint loads it by
    name only and exits 2 with an install hint when it is missing. A backend
    failure under --judge is exit 3 and writes no notes. See docs/JUDGE.md.
  • Sloplint::Split, a paragraph and sentence splitter that keeps offsets into
    the source, and Engine.context_window, the note's context drawn for any
    span rather than only a regex match. Both are used by the judge.
  • script/calibrate, which measures a judge backend against RAID and a
    current-model side generated from RAID's own prompts, and reports the
    pass lines from docs/JUDGE.md.

Fixed

  • --markdown opens and closes a fenced code block only at the start of a
    line, at any indent, so a fence under 10. or a nested bullet still
    pairs. A fence quoted inside a sentence (```) used to open a
    block there, and every fence after it paired wrong for the rest of the file.
  • The splitter also drops indented code blocks (four spaces or a tab), lines
    that are one HTML tag, and YAML front matter under --markdown, so none of
    them reach the judge as prose.

sloplint-judge 0.1.0

The judge is a second gem built from this repository. Its rules are questions put to a System One model (Jev, from TypeSafe) rather than regexes: does this paragraph name anything a reader could check, does this sentence tell its reader anything new. It adds sloplint check --judge and a sloplint-judge executable, needs an API key, and is the only part of sloplint that sends text off the machine. Fourteen rules in two categories; see docs/JUDGE.md.

Full notes for both gems are in CHANGELOG.md.