Skip to content

v0.0.7 — contractions

Choose a tag to compare

@prashanthaitha24 prashanthaitha24 released this 08 Jun 06:49

Adds a contractions optimization pass.

Added

  • New `promptOptimizer.contractions` setting (on by default). Contracts two-word phrases to save tokens:
    • `do not` → `don't`, `does not` → `doesn't`, `cannot`/`can not` → `can't`, `will not` → `won't`
    • `it is` → `it's`, `that is` → `that's`, `there is` → `there's`, `what is` → `what's`
    • `you are` → `you're`, `we are` → `we're`, `I am` → `I'm`
    • `I will` → `I'll`, `you would` → `you'd`, `we have` → `we've`
  • Guards `have to` (= must) so it's never mangled.

Applies to almost every prompt. 22 tests passing; code blocks untouched. Install the attached `.vsix` via "Install from VSIX…", or update from the Marketplace.