Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/KittenML/KittenTTS
/ _replace
Function
_replace
kittentts/preprocess.py:242–243 ·
view source on GitHub ↗
(m: re.Match)
Source
from the content-addressed store, hash-verified
240
"100th day"
→
"one hundredth day"
241
""
"
242
def
_replace(m: re.Match) -> str:
243
return
_ordinal_suffix(int(m.group(1)))
244
return
_RE_ORDINAL.sub(_replace, text)
245
246
Callers
nothing calls this directly
Calls
5
_ordinal_suffix
Function · 0.85
float_to_words
Function · 0.85
number_to_words
Function · 0.85
roman_to_int
Function · 0.85
_octet
Function · 0.85
Tested by
no test coverage detected