ThinkThen

Yes or no

decide: answer one yes or no question about the evidence.

The refund request answers true and the thank-you note false. "I want to send this back." could mean an exchange or money back. It lands inside the band 0.2:0.8 as null.
question="Does the customer ask for a refund?"

cat <<'EOF' |
Please refund my order. It arrived broken.
Thanks for the quick help yesterday!
I want to send this back.
EOF
thinkthen decide "$question" \
  --batch 1 \
  --lines \
  --threshold 0.2:0.8 |
jq .
Output
{
  "input": "Please refund my order. It arrived broken.",
  "value": true
}
{
  "input": "Thanks for the quick help yesterday!",
  "value": false
}
{
  "input": "I want to send this back.",
  "value": null
}
exit 0

You give it one question and one piece of evidence. You get back true, false, or null.

Read the answer

On one piece of evidence, a probability inside the band prints null and exits 3. In a stream, that record prints null and the run exits 0.

Exit codeWhat it means
0yes
1no
3not sure
2usage or input error
4the backend failed or refused, as it does for evidence over the size limit
5a local failure
70a defect in the tool

Send the not-sure answers to a person.

Call it from your language

The Bash example opens this page.

Jobs that use decide

Watch decide answer questions about Beatles songs: decide answers yes, no, or not sure.