Is Question

Check if text contains a question

bdambrosio 3133b07 2 files · 1.7 KB Updated

File contents

Is Question

Determines if the input text is a question or contains a question.

Purpose

Boolean condition for identifying interrogative content in control flow.

Input Format

Accepts:

  • Plain text string

Output Format

CRITICAL: Return ONLY the word "true" or "false", nothing else.

  • Return "true" if the text is a question or contains a question
  • Return "false" if the text is not a question

Do NOT include explanations, punctuation, or any other text. Only output "true" or "false".

Examples

Input: "What is the weather like today?" Output: true

Input: "The weather is nice today." Output: false

Input: "I wonder if it will rain. Should I bring an umbrella?" Output: true

bdambrosio/cognitive_workbench/tree/main/src/tools_out/is-question commit 3133b0739d

Frequently asked questions

npx skillmds@latest add bdambrosio/is-question