Is it legal to only copy all the words from a dictionary? I am dealing with a language that has only one published physical dictionary so far. I need a list of all words from that language. The dictionary has a traditional copyright text: All rights reserved. No parts of this book may be reprinted or reproduced or utilized in any form, without permission in writing from the author. It has not been possible to get in touch with the author. Is it fine to copy only the words from the dictionary without their definitions for educational and non-commercial purposes?
Under US law, words of a language are facts, which are not protected by copyright. Only creative expressions are protected. There are various aspects of a dictionary which are capable of protection, such as the pairing of a word and a translation, the organization of an entry (headword, POS information, the structure of sets of entries according to a grammatical analysis as in an Arabic dictionary). The order of presentation of the words could be protected (relevant for languages with complex morphology where words are grouped according to roots, rather than strict alphabetization). Finally, the criteria of selection for inclusion might involve a smidgen of creativity, but there is no creativity involved in publishing &quot;all of the words that I collected&quot;.
Numbering is for the sake of clarity, and is not intrinsically required. If you refer to a section, you need a way to say which section you mean, and a vague description like "up there where I talked about copying" is insufficient. You can refer to a section by a title, if you need to refer to sections within the contract, as long as your titles match what you refer to them as (and you don't have two sections called "Your Rights").
Q1 and Q2 are definitely not copyright violations. Copyright protects original expression. Your questions are yours; the only things you are using are the names, and copyright doesn't cover them on their own. The quotation in Q3 might conceivably come under copyright. However in practice it is very likely to be fair use (unfortunately nothing is definitely fair use until a court rules on it, but I can't imagine a short quotation in a quiz being an issue).
Not having immediate access to the source doesn't preclude a finding of copyright infringement. If you have seen the source material, subconscious infringement can happen. However, in this example, both the short phrases doctrine and the merger doctrine would likely prevent the is_prime function from having copyright. Words and short phrases are not individually copyrightable, so the name would be free to take. Regarding the implementing code, if it isn't an exact copy (i.e. copy and paste), courts will apply the abstraction-filtration-comparision test. They may find that you took the selection and arrangement of instructions from the original source, albiet using different names. That selection and arrangement would probably be considered a substantial similarity and, if not for the merger doctrine, infringement. However, given the limited number of ways to express the prime-detection algorithm means that the expression of that idea has merged with the idea, and thus is not protected by copyright. (Or in some jurisdictions, merger is a defence to infringement rather than a bar to copyrightability).
Anything that somebody writes is copyrighted, even if you call it a &quot;press release&quot;. That means that nobody can copy it without permission. If you hand it out to a bunch of people and write &quot;press release&quot;, the only reasonable interpretation of the designation &quot;press release&quot; is that you are granting permission to copy (as well as paraphrase).
Generally, no, this will not violate copyright. Your end user might violate copyright, but that is their problem not yours. Your program is a tool, just like a word processor is. If I copy a Harry Potter book into a word processor that does not make the word processor maker liable. There is a concept of "contributory infringement", which I think is what you are concerned about. I don't know about Danish law in particular, but most countries would require evidence that you had reasonable knowledge that actual copyright violation was occuring, rather than just being aware that it might happen in theory. This is normally applied to file sharing services who have to have "notice and takedown" measures, file filters and the like. This isn't your concern as you never have any access to the files created by your users. You can also be found liable if you induce anyone to commit copyright violations. Don't draw your customers attention to the custom monster feature as a workaround for those copyrighted monsters, as that could be considered to be inducement. Also don't provide any "wizards" or similar tools which make it noticeably easier to duplicate the custom monsters (e.g. if you notice that the copyrighted custom dragon stats are all on a linear scale with dragon size, don't create a "dragon creation wizard" embodying that fact.) This assumes that your program runs entirely on the end user computer. Its different if you provide any kind of cloud storage for generated characters.
Copyright never protects ideas or processes, it only protects expression: words, images, and sounds, some of which may describe ideas. But when a work is nothing more than a translation of an idea into words, with no independent originality -- when almost anyone would use more or less the same way to describe the idea, then the work will not be protected by copyright at all, as it is not considered an "original work". Computer code that implements an algorithm often falls under this rule. It is my belief that the code shown in the linked SE thread would fall under this rule, and would not be protected by copyright at all. If this is correct, then anyone may share such a program with no copyright concern.
"Pastiche" is a literary, not a legal term, and as a professional coder, I would not use it to describe code that to some extent imitated other code. The legal question here is: is your code a derivative work of the code it is based on, and if it is, did you have permission to make that work. Copyright, in an Berne Convention country, which includes the EU, does not protect ideas and concepts, it protects expression. It protects the choices of words and symbols, and other forms of expression. If all you did was study example code, presented for educational purposes, and then write code that performs a similar function, using the same general techniques, then I don't think you have infringed copyright. That, after all, is why people post code to Stack Overflow and similar sites, to allow them to learn how to use specific coding techniques, including in commercial projects. I have used techniques posted to SO to do coding as part of my paid job. The usual test for copying under US law is "substantial similarity". This takes into account cases where there is essentially only one way to say or code something. I don't know the exact tests under the various laws of various EU countries, and they will not all be the same. But I suspect that on this point they are, well, substantially similar :). I can't advise on your specific situation. But if it is as described, I don't think you have a problem.