There's a lot of questions that result in code that refers to itself. Typically these questions get assigned the quine tag, though it's not quite applicable in some cases.
I propose a new tag self-referential, which is applied to questions where the answers in someway refer to their characteristics, such as length or characters. While there's some overlap with quine, I believe this can be reconciled by having quine refer to challenges that have to output or generates versions of themselves, such as permutations, sections, or backwards.
Some questions that would benefit from adding the self-referential tag (and maybe removing the quine tag):
- Output your score!
Output with the same length as the code
- Create output twice the length of the code and other variants
- What is the smallest positive base 10 integer that can be printed by a program shorter (in characters) than itself?
Something like the self-identifying quine or print every character you program doesn't have might get both tags.
quinerefer to code that outputs its source code transformed in some way. It makes more sense to call a self-identifying program "self-referential" than "quine-like", though the fact that programs would usually have to generate the source code to compare against is why I suggested it gets both tags. A "sha-256" program would probably be closer to a quine because while the hash is semi-unique for each text, it's not an intrinsic attribute of a program. \$\endgroup\$