j-js commited on
Commit
367d1b8
·
verified ·
1 Parent(s): 58ab236

Update solver_probability.py

Browse files
Files changed (1) hide show
  1. 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
- return any(w in lower for w in PROBABILITY_WORDS)
 
 
 
 
 
 
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: