M2U4ANU7R2UXRYU2XMWNTFBV4WPHFAE6YJ5DS2MUAXG4DMGII6FAC
2EZN4P6CWDDVJ2TNQJV7GVV26FORSVKVCP6II2IL2NXLRXCDUPSAC
SDQM4ROF7EPX5G7Z4V37ZNWKWNC7ZHZQQ4ZVKLDZTLJSERCSC4CQC
WWZTP44OMUGMTSNEG4YI6H2YTHAC4DLQMG6JHKXSVUKIWBDC7IGAC
77ZDLLUTFQ3L3FELAWZQTOG5DUPINOXV5VYLEYBEONDOW2BSVZJAC
splitted = line |> String.split(".")
splitted =
line
|> String.split(".")
splitted = String.split(line, ~r/\.|\?|\!/)
punctuations = Regex.scan(~r/\.|\?|\!/, line) |> List.flatten()
punctuations =
Regex.scan(~r/\.|\?|\!/, line)
|> List.flatten()
[List.first(splitted) | acc]
[List.first(splitted) <> List.first(punctuations) | acc]
|> Stream.zip(punctuations)
|> Enum.map(fn s -> {:sentence, s} end)
|> Enum.map(fn {s, p} -> {:sentence, s <> p} end)