Update formatting.py
Browse files- formatting.py +0 -20
formatting.py
CHANGED
|
@@ -72,26 +72,6 @@ def _limit_steps(steps: List[str], verbosity: float, minimum: int = 1) -> List[s
|
|
| 72 |
return steps[:limit]
|
| 73 |
|
| 74 |
|
| 75 |
-
def _why_line(topic: str) -> str:
|
| 76 |
-
topic = (topic or "").lower()
|
| 77 |
-
|
| 78 |
-
if topic == "algebra":
|
| 79 |
-
return "Why: algebra works by keeping the relationship balanced while undoing the operations attached to the variable."
|
| 80 |
-
if topic == "percent":
|
| 81 |
-
return "Why: percent questions depend on choosing the correct base before doing any calculation."
|
| 82 |
-
if topic == "ratio":
|
| 83 |
-
return "Why: ratio questions depend on preserving the comparison and using one shared scale factor."
|
| 84 |
-
if topic == "probability":
|
| 85 |
-
return "Why: probability compares successful outcomes to all possible outcomes."
|
| 86 |
-
if topic == "statistics":
|
| 87 |
-
return "Why: the right method depends on which summary measure the question actually asks for."
|
| 88 |
-
if topic == "geometry":
|
| 89 |
-
return "Why: geometry depends on the relationships between the parts of the figure."
|
| 90 |
-
if topic == "number_theory":
|
| 91 |
-
return "Why: number properties follow fixed rules about divisibility, factors, and remainders."
|
| 92 |
-
return "Why: start with the structure of the problem before calculating."
|
| 93 |
-
|
| 94 |
-
|
| 95 |
def _extract_topic_from_text(text: str, fallback: Optional[str] = None) -> str:
|
| 96 |
low = (text or "").lower()
|
| 97 |
if fallback:
|
|
|
|
| 72 |
return steps[:limit]
|
| 73 |
|
| 74 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 75 |
def _extract_topic_from_text(text: str, fallback: Optional[str] = None) -> str:
|
| 76 |
low = (text or "").lower()
|
| 77 |
if fallback:
|