improve iterate parameter

This commit is contained in:
cajun
2024-10-07 17:33:19 -05:00
parent 291bcfad88
commit cf578f7c69
2 changed files with 15 additions and 5 deletions

View File

@@ -1068,7 +1068,13 @@ iterate_fix := remove_tags
+replace@(match: "^\\.", replace:"")
+replace@(match: "^,", replace:"")
+replace@(match: "^[ ]", replace:"")
+replace@(match:" times", replace:"")
+replace@(match:" ti?m?e?s?$", replace:"")
iterate_string := {
str := iterate_fix(input)
if str == ""
then empty_lead + empty + empty_follow
else non_empty_lead + str + non_empty_follow
}@(non_empty_lead:" ", non_empty_follow:"", empty_lead:"", empty_follow:"", empty:"")
digital_map := [
"zero": 0,
"one": 1,