Talk:Semordnilap: Difference between revisions

→‎Semordnilap Phrases: Reply regarding problems with "phrases"
(→‎Semordnilap Phrases: Reply regarding problems with "phrases")
Line 36:
 
It's perhaps worth noting that Semordnilap phrases pose something of an open-ended problem (unless a specific phrase length limit is imposed). This would be complicated if there were also a requirement that the phrases represent valid english grammar. Perhaps the task should be clarified to eliminate phrases from consideration? I didn't notice anyone implementing support for them... --[[User:Rdm|Rdm]] ([[User talk:Rdm|talk]]) 02:09, 30 January 2020 (UTC)
 
: Semordnilap phrases is not just an "open-ended problem"; the problem is not even well-defined, and thus open for interpretation.
 
: Your interpretation, I assume, is that a Semordnilap phrase ''P'' is a concatenation of some words ''x1...xm'' contained in the dictionary (possibly delimited by punctuation such as spaces, commas, etc.), such that its reversal ''rev(P) = rev(xm)...rev(x1)'' is also a concatenation of some words in the dictionary, viz ''rev(P) = y1...yn'' for some words ''y1...yn'' in the dictionary. In other words, if you remove all punctuation from a Semordnilap phrase and reverse it, then you can divide the resulting word into one or more words of the dictionary. It is obvious that there are infinitely many such Semordnilap phrase pairs, so as you mentioned, a phrase length limit should be imposed.
 
: My initial interpretation was that a Semordnilap phrase is a phrase contained in the dictionary (eg. a phrase forming one line of the dictionary file). Then there are finitely many such phrases (assuming a finite dictionary), and phrase X is a Semordnilap of phrase Y iff X stripped of punctuation equals the reversal of Y stripped of punctuation.
 
: Your interpretation is, of course, more meaningful; but besides the problem of infinite solution space, there is the problem of grammatical correctness of both phrases, which would be rather difficult to deal with. That considered, I suggest removing the mentions of "phrases" from the task description altogether, and perhaps clarifying that dictionary entries are simple words (not containing any punctuation). [[User:Dick de Bill|Dick de Bill]] ([[User talk:Dick de Bill|talk]]) 13:52, 3 February 2020 (UTC)