Determine sentence type: Difference between revisions

Added English End of Sentence Punctuation
(→‎{{header|Python}}: Added a more general variant, as an alternative to hand-crafted regular expressions.)
(Added English End of Sentence Punctuation)
Line 3:
[[Category:String manipulation]]
 
Use thisthese sentencesentences:
"hi there, how are you today? I'd like to present to you the washing machine 9001. You have been nominated to win one of these! Just make sure you don't break it."
 
;Task
: Search for the last used punctuation in a sentence, and determine its type according to its punctuation.
 
; Output one of these letters: "E" (Exclamation!), "Q" (Question?), "S" (Serious.), "N" (Neutral).
 
;Extra
: Make your code able to determine multiple sentences.
 
 
2,172

edits