jevbooks

← All projects

hunch

carldaws/hunch

Probabilistic control flow for Ruby, powered by TypeSafe's Jev.

What it is

Hunch lets Ruby developers ask plain-English questions about text or application data and branch on the answers. It provides chance, pick, and rate helpers, plus graded predicates, for use in Ruby and Rails apps.

How it uses Jev

Hunch sends a question and given data to Jev, which returns a probability, a chosen option, or a rating. Ruby code uses these values in conditionals, validations, routing, and moderation. Hunch.decide batches several questions about the same data into one API call.

Primitives:choicescore

Technique worth stealing

Wrap typed Jev answers in Ruby predicates and option pickers so probabilistic judgments read like ordinary control flow.

Try it

gem "hunch"; configure api_key; call Hunch.chance, Hunch.pick, or Hunch.rate.

View on GitHub

judged by Jevjev-1.13.0

Evidence

Each line is one question put to Jev about the README. ≥ 0.60 reads as yes, ≤ 0.40 as no; in between Jev is not making a call.

  • Jev-centricyes0.80
  • Shows a System One patternyes0.83
  • Handles uncertaintyno0.09
  • Measuredno0.05
  • Runnableyes0.97
  • Worth recommendingno0.37
  • Model replicano0.03
  • Problem scopescore on a 0–2 scale1.28
  • About Jevyes0.97

Signals by Jev jev-1.13.0, card written by DeepSeek V4.1 Flash from the README on 20 Sept 2026.