5

I posted an answer to the question How to set TextBox.TextDecorations using a ComboBox.

There I explained the various problems I encountered and how I overcame it. All of it was original content written by myself. At the end, I wrote:

Luckily, the WPF source code is now available and I found in the TextDecorationCollectionConverter a list of the valid strings, which are actually all completely in uppercase, but the converter changes the input string to all uppercase too before doing a comparison.

The code of the TextDecorationCollectionConverter is actually rather complicated, no wonder I failed writing it myself. Here it is:

I wonder why this is considered "plagiarized without attribution", since I did tell the reader that the code of the TextDecorationCollectionConverter is from the WPF source code.

The sad thing is that this WPF code is not the solution, but caused the deletion, I guess. The idea was not that anyone should use this code in their application, since everyone already gets it in the .NET framework anyway. Rather, I meant it as a service to the Stack Overflow reader so that they could check quickly why the strings I used in my solution actually worked.

With hindsight, I understand that providing the GitHub link might help some people to find it.

What I feel sad about is that the answer just got deleted instead of telling me that I could add a link.

How can I get my answer undeleted?

Unfortunately, the person deleting my answer did not indicate which part of the answer he felt was plagiarized. I guessed that it would be the WPF source code, so I posted the same answer again, this time without the WPF source code. Now, I worry, that I'll get scolded here for reposting a deleted answer. But what can I do, when mistakes like this one happen?

30
  • 17
    If a moderator deletes your post, the proper way to handle that is to fix the problem and mod flag for undeletion. Making a new post instead is asking for trouble.
    – Machavity Mod
    Commented Mar 15, 2022 at 14:02
  • 6
    There was a flag on the post that noted your code block appeared to be entirely copied from this MS reference. I would have deleted that myself as it stands
    – Machavity Mod
    Commented Mar 15, 2022 at 14:06
  • 6
    @Machavity That reads as a really odd complaint to me if the answer outright stated "The code of the TextDecorationCollectionConverter is actually rather complicated, no wonder I failed writing it myself. Here it is:". Put another way, they appear to have written "The actual underlying code which I did not write is complicated, here it is for reference". How could that possibly be plagiarism if they noted/ implied the source and didn't claim it as their own? That, by definition, can't be plagiarism, even if it was badly formatted. Was the missing link the core issue?
    – zcoop98
    Commented Mar 15, 2022 at 14:23
  • 10
    I think that adding a link to the source would've been better. A Stack Overflow user wouldn't like it if their code were to be copied with only "I found this on Stack Overflow".
    – Red
    Commented Mar 15, 2022 at 14:23
  • 7
    Stack Exchange has explicit requirements for attribution when using content which you didn't create.
    – Makyen Mod
    Commented Mar 15, 2022 at 15:02
  • 8
    @PeterHuber - You don't know how to quote and cite your sources when writing any professional document? I find that hard to believe. Why do you believe quoting source code is different then quoting a statement somebody made? You have been a member for nearly 9 years, you must have seen answers that quoted source code in the past, proper citation and quotation of external sources is vital to the integrity of this community. Commented Mar 15, 2022 at 15:16
  • 4
    @PeterHuber While additional examples might help, it's unclear to me why you'd think the requirements would be different for code (or anything which was copied). Using a <blockquote> for larger quotes is preferred (e.g. code formatted code in a quote), but the key requirements are to be very clear what's copied, include proper attribution (as the link describes), and not copy more than is really needed. There is also the requirement that your post be primarily your own content, rather than primarily content copied from elsewhere (with some possible, but unlikely, edge case exceptions).
    – Makyen Mod
    Commented Mar 15, 2022 at 15:28
  • 18
    I agree with @zcoop98 that this is not plagiarism, which is defined in the Help center as "posting the work of others with no indication that it is not your own". The author clearly stated that the quoted code was not their own. Therefore it should not have been mod-deleted. The only issue is incomplete attribution, i.e., the source is given (WPF source code) but not a link. A comment to the OP would have sufficed to solve this, the OP has 2.5k and is fairly active so they probably would respond. To be safe it could have been deleted with a comment explaining that a link was missing [...]
    – Marijn
    Commented Mar 15, 2022 at 16:28
  • 9
    If the tools help in 99% of the cases, I think it's okay to have some misfires. Not a mod though. Commented Mar 15, 2022 at 17:36
  • 16
    Code source: referencesource.microsoft.com/#PresentationCore/Core/CSharp/… -- this isn't a tool backfiring, @IInspectable, there was a mod flag there. It was deleted because it lacked a source link, and I almost did it myself (without any tools). The only reason I didn't was the rest of the text not being plagiarized and I was too tired to figure it out. As an obligatory reminder, linking to the source, assuming it's available online anyway, is a required part of the referencing guidelines Commented Mar 15, 2022 at 17:39
  • 3
    @stackprotector You'll note that the requirements for attribution are three-fold: (1) name the original author (if available), (2) link back to the original source, and (3) clearly indicate all copied content using blockquote formatting. If you do #3, then your concern becomes irrelevant. It isn't that snippets of content from elsewhere cannot be copied, but that they must be properly attributed and quoted to make clear that they have been copied from elsewhere.
    – Cody Gray Mod
    Commented Mar 15, 2022 at 18:36
  • 11
    There is a bit bigger issue here when it comes to copying-and-pasting source code with a restrictive license to Stack Overflow. People who contribute to "clean-room" reimplementations of commercial software are generally not allowed to look at the commercial software's source code without getting into huge legal trouble. That means they need to steer clear of Microsoft's "reference source" if they are re-implementing the .NET Framework. Sharing it without a clear indication of its origin is problematic for those users. Not to mention runs afoul of our referencing/attribution guidelines.
    – Cody Gray Mod
    Commented Mar 15, 2022 at 18:39
  • 3
    It is sufficient to just give the name of the author in the text that introduces the quotation; no formal citation format is required. In this case, it's source code, so the "author" is Microsoft. (The onus is not on you, as the person who cites the reference, to go look up who originally wrote the code, e.g., in git blame, if that info were even available publicly.) The requirement to provide the author is most critical on Stack Exchange sites, where all content is contributed by a specific author. But it's also nice if you're quoting from someone's blog, GitHub issue, or whatever. @sec
    – Cody Gray Mod
    Commented Mar 15, 2022 at 20:14
  • 3
    It doesn't scale, @Peter. Stack Overflow gets thousands of flags per day, with only a small number of volunteer moderators to deal with them all. It might be nice in an ideal world to leave personalized comments providing guidance for each and every one, but it just doesn't work. So, we have to just let the Help Center do the heavy lifting. For any legitimate (non-spammer, non-troll) user for whom that information is unclear, they can ask for additional clarification, as you've done. I'm not a professional writer, either, but I learned well in school to cite things I copy from other people.
    – Cody Gray Mod
    Commented Mar 16, 2022 at 4:44
  • 4
    @PeterHuber - You have not once after 87 answers and almost 9 years, needed to quote documentation, in order to answer a question? I still don’t understand how quotation of code is significantly different than quoting plain text. When I used the term professional documentation, I meant any writing, that requires proper citation and quotation of a source. That would include academic papers, professional documentation, answers on this platform, professional journals like IEEE, etc. Commented Mar 16, 2022 at 11:51

0

Browse other questions tagged .