MCPcopy Create free account
hub / github.com/CoopReason/TESSY / is_symbolic

Function is_symbolic

utils.py:45–46  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

43
44
45def is_symbolic(text):
46 return bool(re.fullmatch(r'[-=_*~^#<>|\\/.,!?、。,!?·]+', text))
47
48
49def detect_consecutive_repetition_hash(text, min_repeat_len=3, min_repeat_times=8, base=257, mod=10 ** 9 + 7):

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected