Determine sentence type: Difference between revisions

m
(→‎{{header|Wren}}: Added an alternative version.)
Line 530:
{{libheader|Wren-pattern}}
{{libheader|Wren-trait}}
The following alternative version takes the simplistic view that (unless they end the final sentence of the paragraph) '''?''', '''!''' or '''.''' will only end a sentence if they're immediately followed by a space. This of course is nonsense, given the way English is written nowadays, but it's probably an improvement on the first version without the need to search thoughthrough an inevitably incomplete list of abbreviations.
<lang ecmascript>import "./pattern" for Pattern
import "./trait" for Indexed
9,477

edits