Determine sentence type: Difference between revisions

m
→‎{{header|Wren}}: Wren-trait -> Wren-iterate
(→‎{{header|Vlang}}: Rename "Vlang" in "V (Vlang)")
m (→‎{{header|Wren}}: Wren-trait -> Wren-iterate)
Line 773:
<br>
{{libheader|Wren-pattern}}
{{libheader|Wren-traititerate}}
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 through an inevitably incomplete list of abbreviations.
<syntaxhighlight lang="ecmascript">import "./pattern" for Pattern
import "./traititerate" for Indexed
 
var map = { "?": "Q", "!": "E", ".": "S", "": "N" }
9,479

edits