<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/github---qew7-jev-feels-semantic-decisions-as-ordinary-ruby-feels-decide-score-rails-validati-2vfwbk07v" -->

---
title: GitHub - Qew7/jev-feels: Semantic decisions as ordinary...
description: jev-feels is a Ruby gem (with Rails integration) that wraps semantic classification calls to a hosted AI service (TypeSafe System One / Jev) behind ordinary...
canonical: https://daily.dev/posts/github---qew7-jev-feels-semantic-decisions-as-ordinary-ruby-feels-decide-score-rails-validati-2vfwbk07v
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: GitHub - Qew7/jev-feels: Semantic decisions as ordinary Ruby — feels?, decide, score, Rails validations and pattern matching powered by Jev | daily.dev
og:description: jev-feels is a Ruby gem (with Rails integration) that wraps semantic classification calls to a hosted AI service (TypeSafe System One / Jev) behind ordinary...
og:url: https://daily.dev/posts/github---qew7-jev-feels-semantic-decisions-as-ordinary-ruby-feels-decide-score-rails-validati-2vfwbk07v
og:image: https://api.daily.dev/og/posts/2vfWbK07v.png
og:image:alt: GitHub - Qew7/jev-feels: Semantic decisions as ordinary Ruby — feels?, decide, score, Rails validations and pattern matching powered by Jev
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# GitHub - Qew7/jev-feels: Semantic decisions as ordinary Ruby — feels?, decide, score, Rails validations and pattern matching powered by Jev

**[Ruby Flow](https://daily.dev/sources/rubyflow)** · 6 min read · 0 upvotes · 0 comments

## Summary

jev-feels is a Ruby gem (with Rails integration) that wraps semantic classification calls to a hosted AI service (TypeSafe System One / Jev) behind ordinary Ruby method calls like feels?, decide, and score. It lets you define yes/no checks, multi-choice decisions, and scaled scores on model or PORO fields, add Rails validations backed by these checks, batch multiple questions into one API request, pattern-match on results, and stub/record/replay HTTP calls for testing.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://github.com/Qew7/jev-feels>

## Questions this post answers

### How do I add AI-based semantic validation to a Rails model field?

Use the jev-feels gem's validates_feeling method inside a model that includes Jev::Model. Define a feeling like Jev.define(:urgent, "...") and call validates_feeling :body, :urgent, threshold: 0.9. It supports allow_nil, allow_blank, if, unless, on, message, and at_least options, and skips the HTTP call entirely when those conditions cause it to be skipped.

_Developers wiring AI checks into Rails validations can find integration patterns like this through daily.dev._

### What is the difference between feels?, decide, and score in a Ruby AI classification gem?

feels? returns a boolean answer to a yes/no question by comparing a calibrated probability against a threshold (default 0.5); decide returns a winning Symbol from a set of choices; and score returns a Float representing a fractional ordinal position on a defined scale, not a percentage. Each corresponds to a different Jev.define shape: plain symbol, choices hash, or levels hash respectively.

_daily.dev surfaces library design comparisons like this for Ruby developers evaluating AI-powered gems._

### How can I batch multiple AI classification questions into a single API call in Ruby?

Use Jev.measure(record) with a block that calls q.feels, q.decide, and q.score for each question; this issues one HTTP request and returns a Jev::Result::Batch that supports hash-style access and pattern matching with 'in' clauses. Only defined names work in a batch; ad-hoc string questions must be asked individually outside of it.

_daily.dev helps Ruby developers track patterns for combining AI calls efficiently in production code._

## Similar posts on daily.dev

- [Jev Doesn't Write Text. It Returns Probabilities.](https://daily.dev/posts/jev-doesn-t-write-text-it-returns-probabilities--3tcrb0ghc) · DEV · 7 upvotes · 0 comments
- [How to classify text with Jev](https://daily.dev/posts/how-to-classify-text-with-jev-rnjbtfjge) · Flavio Copes · 0 upvotes · 0 comments

---

Tags: [#ai](https://daily.dev/tags/ai), [#jev](https://daily.dev/tags/jev), [#rails](https://daily.dev/tags/rails), [#ruby](https://daily.dev/tags/ruby)

[View this post on daily.dev](https://daily.dev/posts/github---qew7-jev-feels-semantic-decisions-as-ordinary-ruby-feels-decide-score-rails-validati-2vfwbk07v)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"GitHub - Qew7/jev-feels: Semantic decisions as ordinary Ruby — feels?, decide, score, Rails validations and pattern matching powered by Jev","url":"https://daily.dev/posts/github---qew7-jev-feels-semantic-decisions-as-ordinary-ruby-feels-decide-score-rails-validati-2vfwbk07v","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/github---qew7-jev-feels-semantic-decisions-as-ordinary-ruby-feels-decide-score-rails-validati-2vfwbk07v"},"datePublished":"2026-09-21T16:27:26.422Z","dateModified":"2026-10-14T02:22:52.544Z","description":"jev-feels is a Ruby gem (with Rails integration) that wraps semantic classification calls to a hosted AI service (TypeSafe System One / Jev) behind ordinary...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/c869bf19fa78104cc00549b798fac04a?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/c869bf19fa78104cc00549b798fac04a?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Ruby Flow","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Ruby Flow","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/a21aaa8bcbbf448193a016895c90a0e1","url":"https://daily.dev/sources/rubyflow"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/github---qew7-jev-feels-semantic-decisions-as-ordinary-ruby-feels-decide-score-rails-validati-2vfwbk07v","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"ai,jev,rails,ruby","timeRequired":"PT6M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Ruby Flow","item":"https://daily.dev/sources/rubyflow"},{"@type":"ListItem","position":3,"name":"GitHub - Qew7/jev-feels: Semantic decisions as ordinary Ruby — feels?, decide, score, Rails validations and pattern matching powered by Jev"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/github---qew7-jev-feels-semantic-decisions-as-ordinary-ruby-feels-decide-score-rails-validati-2vfwbk07v#faq","mainEntity":[{"@type":"Question","name":"How do I add AI-based semantic validation to a Rails model field?","acceptedAnswer":{"@type":"Answer","text":"Use the jev-feels gem's validates_feeling method inside a model that includes Jev::Model. Define a feeling like Jev.define(:urgent, \"...\") and call validates_feeling :body, :urgent, threshold: 0.9. It supports allow_nil, allow_blank, if, unless, on, message, and at_least options, and skips the HTTP call entirely when those conditions cause it to be skipped. Developers wiring AI checks into Rails validations can find integration patterns like this through daily.dev."}},{"@type":"Question","name":"What is the difference between feels?, decide, and score in a Ruby AI classification gem?","acceptedAnswer":{"@type":"Answer","text":"feels? returns a boolean answer to a yes/no question by comparing a calibrated probability against a threshold (default 0.5); decide returns a winning Symbol from a set of choices; and score returns a Float representing a fractional ordinal position on a defined scale, not a percentage. Each corresponds to a different Jev.define shape: plain symbol, choices hash, or levels hash respectively. daily.dev surfaces library design comparisons like this for Ruby developers evaluating AI-powered gems."}},{"@type":"Question","name":"How can I batch multiple AI classification questions into a single API call in Ruby?","acceptedAnswer":{"@type":"Answer","text":"Use Jev.measure(record) with a block that calls q.feels, q.decide, and q.score for each question; this issues one HTTP request and returns a Jev::Result::Batch that supports hash-style access and pattern matching with 'in' clauses. Only defined names work in a batch; ad-hoc string questions must be asked individually outside of it. daily.dev helps Ruby developers track patterns for combining AI calls efficiently in production code."}}]}
```

