Random sentence from book: Difference between revisions
→{{header|Wren}}: Added some code to replace EM DASH with a space.
(Added Wren) |
(→{{header|Wren}}: Added some code to replace EM DASH with a space.) |
||
Line 695:
// remove extraneous punctuation
for (r in removing) text = text.replace(r, "")
// replace EM DASH (unicode 8212) with a space
text = text.replace("—", " ")
// split into words
|