Noul describes a yes/no judgment with a number from zero to one. A boolean requires an additional decision rule.
A Noul question asks Jev for a yes/no judgment and returns a number between zero and one. TypeSafe describes that number as the probability of yes. A value near the middle expresses a different judgment from a value near either endpoint. Noul does not carry a separate confidence field. Official Noul reference
This is an independent guide from is-jodd’s publisher. The examples below explain a data contract; their invented values are not measured Jev responses.
The number and the boolean are different values
is-jodd asks whether an integer is odd, then applies a strict comparison:
const illustrative = [0, 0.49, 0.5, 0.51, 1];
console.log(illustrative.map(p => p > 0.5));
// [false, false, false, true, true]
The boundary matters. Exactly 0.5 becomes false in this package. Replacing > with >= would change that behavior. Neither operator makes the underlying model more accurate, and neither changes mathematical oddness. They only change how the application converts a numeric result into a JavaScript boolean.
When documenting an integration, write the comparison down instead of saying it returns “yes when confident.” That phrase leaves both the threshold and the treatment of a tie unspecified. An explicit rule is easier for another developer to review and for a test to exercise.
Validate before comparing
A defensive decoder can reject malformed data before evaluating the cutoff:
function decodeIllustrativeAnswer(answer) {
const p = answer?.noul;
if (answer?.type !== 'noul' || typeof p !== 'number'
|| !(p >= 0 && p <= 1)) {
throw new Error('Expected a valid Noul answer');
}
return p > 0.5;
}
This example follows the validation in is-jodd’s source. A string containing digits should not be accepted merely because JavaScript can coerce it during a comparison. Likewise, a missing answer should not quietly fall through to false. Those situations concern the response contract, not a legitimate negative judgment.
Decide whether losing information is acceptable
A boolean erases the distance from the boundary. After converting both 0.51 and 0.99 to true, a caller cannot distinguish them from the boolean alone. That simplification suits the tiny is-jodd interface, but an experiment investigating model behavior needs to retain the original numbers elsewhere.
For mathematical parity, use the known answer as an external check. The calculator illustrates the result without needing an AI confidence threshold. For other integrations, evaluate the cutoff against examples from the actual task instead of inheriting a number from this joke package.
Continue with confidence and correctness or compare Choice with Noul. Package use remains subject to the custom JODD-1T license, including its $1 trillion fee and written-permission requirement unless waived separately.