Update solver_probability.py
Browse files- solver_probability.py +7 -1
solver_probability.py
CHANGED
|
@@ -72,7 +72,13 @@ def _make_result(
|
|
| 72 |
|
| 73 |
|
| 74 |
def _contains_probability_language(lower: str) -> bool:
|
| 75 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 76 |
|
| 77 |
|
| 78 |
def _contains_any(lower: str, words: List[str]) -> bool:
|
|
|
|
| 72 |
|
| 73 |
|
| 74 |
def _contains_probability_language(lower: str) -> bool:
|
| 75 |
+
strong_markers = [
|
| 76 |
+
"probability", "chance", "odds", "at random", "equally likely",
|
| 77 |
+
"without replacement", "with replacement",
|
| 78 |
+
"coin", "coins", "die", "dice", "card", "cards", "deck",
|
| 79 |
+
"marble", "marbles", "ball", "balls", "urn", "bag"
|
| 80 |
+
]
|
| 81 |
+
return any(w in lower for w in strong_markers)
|
| 82 |
|
| 83 |
|
| 84 |
def _contains_any(lower: str, words: List[str]) -> bool:
|