MCPcopy Create free account
hub / github.com/omkarcloud/botasaurus / is_negative

Function is_negative

botasaurus/cache.py:133–141  ·  view source on GitHub ↗
(input_string)

Source from the content-addressed store, hash-verified

131def pluralize(word, n):
132 return word if n <= 1 else word + 's'
133def is_negative(input_string):
134 # List of negative representations
135 negative_values = {"false", "no", "n", "0", "nah", "nope", "never", "negative", "f"}
136
137 # Normalize the input string to lowercase and strip any extra whitespace
138 normalized_string = input_string.strip().lower()
139
140 # Check if the normalized string is in the set of negative values
141 return normalized_string in negative_values
142
143created_fns = set()
144cache_check_done = False

Callers 2

_delete_items_by_filterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected