use words & sentence
This commit is contained in:
parent
82145a8f08
commit
f5a50854dc
4
eliza.ld
4
eliza.ld
|
@ -19,9 +19,9 @@ fn switch_persons {
|
||||||
|
|
||||||
fn repersonalize (x) -> do x >
|
fn repersonalize (x) -> do x >
|
||||||
trim >
|
trim >
|
||||||
split (_, " ") >
|
words >
|
||||||
map (switch_persons, _) >
|
map (switch_persons, _) >
|
||||||
join (_, " ")
|
sentence
|
||||||
|
|
||||||
fn one_of {
|
fn one_of {
|
||||||
(str as :string) -> str
|
(str as :string) -> str
|
||||||
|
|
Loading…
Reference in New Issue
Block a user