MCPcopy
hub / github.com/tickmao/Novel / _apply_token_replacements

Method _apply_token_replacements

scripts/source_policy.py:117–121  ·  view source on GitHub ↗
(self, text: str)

Source from the content-addressed store, hash-verified

115 return ""
116
117 def _apply_token_replacements(self, text: str) -> str:
118 value = text
119 for token, replacement in self.token_replacements.items():
120 value = re.sub(re.escape(token), replacement, value, flags=re.IGNORECASE)
121 return value
122
123 def _strip_ascii_noise(self, text: str) -> str:
124 value = text

Callers 1

canonicalize_nameMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected