Talk:Determine sentence type: Difference between revisions

 
(2 intermediate revisions by 2 users not shown)
Line 43:
:: Time to think about making the pre-requisites fractionally more visible and robust ?
:: Triage by punctuation mark seems to lack a certain something ... [[User:Hout|Hout]] ([[User talk:Hout|talk]]) 19:40, 8 November 2021 (UTC)
 
:I hope you are not accusing me of "whining about it without proposing any alternatives" and being "counter-productive". I proposed 2 alternatives, one following English grammatical conventions and one following American grammatical conventions. The task author wrote the task description using 5 sentences, only one of which had End of Sentence Punctuation, an exclamation mark. I have followed your suggestion and added End of Sentence Punctuation using English grammatical conventions. Note that the task now does not make sense, there is no such thing as Neutral Sentence Type. Every sentence must have End of Sentence Punctuation, even in American!--[[User:Nigel Galloway|Nigel Galloway]] ([[User talk:Nigel Galloway|talk]]) 14:07, 9 November 2021 (UTC)
 
::You are right about "Neutral sentences", but is there such a thing as a Serious sentence either ?
::Your change has invalidated several (most ?) of the existing samples, including that of the task author, also making it impossible to detect a "neutral sentence" (which appears to be defined for the task as something that does't end in ?, ! or .).
::The task doesn't specify that the sentebces are English or American or anything else.
::Would it be better if the task said:
:::
:::Parse the following according to this (somewhat informal) grammar:
::::<code>paragraph = sentence+ neutral-sentence?</code>
::::<code>sentence = ( exclamation | question | serious )</code>
::::<code>exclamation = neutral-sentence "!"</code>
::::<code>question = neutral-sentence "?"</code>
::::<code>serious = neutral-sentence "."</code>
::::<code>neutral-sentence = <any-character-except-?!.>+</code>
:::
:::(postfix ? means optional, postfix + means 1-or-more, things in double-quotes indicate literal characters that must appear as written.
:::The names of the terminals and non-terminals in the grammar should not be interpreted as conferring any meaning as words in any particular natural language, even if they are spelt the same way (apart from "any-character-except-..."). --[[User:Tigerofdarkness|Tigerofdarkness]] ([[User talk:Tigerofdarkness|talk]]) 18:47, 9 November 2021 (UTC)
 
::It would not. This is just a complicated way of expressing the algorithm, give a string S for each character C in S if C is '.' output 'S', if C is '!' output 'E', if C is '?' output 'Q'. If the last character in S is not one of '.', '?', or '!' output 'N'. The string could be "xxxxxxx.xxxxxx?xxxx!xxxx", this 'task' has nothing to do with sentences! --[[User:Nigel Galloway|Nigel Galloway]] ([[User talk:Nigel Galloway|talk]]) 17:51, 11 November 2021 (UTC)
2,172

edits