Complete the code to select the reasoning pattern for simple yes/no questions.
def choose_reasoning_pattern(question): if question.lower().startswith('is') or question.lower().startswith('are'): return '[1]' else: return 'complex reasoning'
Binary reasoning is best for simple yes/no questions.
Complete the code to select causal reasoning for cause-effect questions.
def choose_reasoning_pattern(question): if 'because' in question or 'why' in question: return '[1]' else: return 'other reasoning'
Causal reasoning is used to understand cause and effect, often triggered by 'why' or 'because'.
Fix the error in the code to correctly select analogical reasoning for similarity questions.
def choose_reasoning_pattern(question): if 'like' in question or 'similar to' in question: return '[1]' else: return 'other reasoning'
Analogical reasoning compares similarities, triggered by words like 'like' or 'similar to'.
Fill both blanks to select abductive reasoning for best explanation questions.
def choose_reasoning_pattern(question): if question.lower().startswith('[1]') or 'best explanation' in question: return '[2]' else: return 'other reasoning'
Abductive reasoning is used to find the best explanation, often triggered by 'why' questions.
Fill all three blanks to select deductive reasoning for rule-based questions.
def choose_reasoning_pattern(question): if '[1]' in question or question.lower().startswith('[2]'): return '[3]' else: return 'other reasoning'
Deductive reasoning applies rules and logic, often triggered by 'if' or 'does' in questions.