diff --git a/eliza.ld b/eliza.ld index de5ea6b..25c8cb7 100644 --- a/eliza.ld +++ b/eliza.ld @@ -19,9 +19,9 @@ fn switch_persons { fn repersonalize (x) -> do x > trim > - split (_, " ") > + words > map (switch_persons, _) > - join (_, " ") + sentence fn one_of { (str as :string) -> str