@obie: Full docs for my new Ruby gem feelings now available. Most idiomatic and fun way to add decision models to your code

X AI KOLs Timeline Tools

Summary

Obie Fernandez announces full documentation for the 'feelings' Ruby gem, which provides probabilistic conditionals for adding decision models to code, inspired by LLM workflows.

Full docs for my new Ruby gem feelings now available. Most idiomatic and fun way to add decision models to your code https://t.co/ApWfZGt0ir
Original Article
View Cached Full Text

Cached at: 09/19/26, 01:05 PM

Full docs for my new Ruby gem feelings now available. Most idiomatic and fun way to add decision models to your code

https://t.co/ApWfZGt0ir


feelings: Probabilistic conditionals for Ruby.

Source: https://obiefernandez.com/gems/feelings/ A decision model answers a typed question about a value, with a calibrated probability attached to the answer. feelings lets a Ruby conditional ask one directly.

Feelings(email).like?("genuinely urgent")

Branch on the answer instead of a boolean:

Feelings(ticket).like("this customer is about to churn") do |mood|
  mood.yes   { escalate(ticket) }
  mood.maybe { flag_for_review(ticket) }
  mood.no    { close(ticket) }
end

Or pick the closest match out of a small label set:

Feelings(support_message).most_like(:billing, :bug_report, :feature_request, :spam)
# => :bug_report

Read the docsGitHubRubyGems

The family

  • ruby_decision_model: the provider-neutral client the other two sit on. It talks to Jev through OpenRouter or Typesafe’s own API, and to any other decision model that ships.RubyGems
  • decide: named policy decisions with floors, fail modes, and verdicts.RubyGems
  • feelings: this gem, for the questions you would otherwise write as anif.RubyGems

feelings is inspired byProbably, a small language for LLM workflows that showed what code reads like when anifcan ask a decision model a question.

Similar Articles