Open myalow opened 1 year ago
The problem with your approach of using "symbolic tags" is that the tag count will inevitably become imprecise, and I don't think that is something the dev wants. Other than that, I can try my hand at it and see if I can get a fork out.
In my opinion, the best course of action is to force the user to confirm when trying to add implications, and then retroactively apply these implications. Of course, doing so makes it really hard to undo what you have done in case of mistakes, unless we implement a whole new undo functionality.
I think this would be really useful. I personally would like to be able to search with implications. I would love to be able to look up "headwear" and it look up every hat and headset that has headwear in its implications.
Another problem here would be if there were some cases in which an implicated tag gets removed from an image, it would still get returned by the search, e.g. if hatsune_miku
implies blue_hair
but there's an image where she actually has pink_hair
instead, searching for blue_hair
would still return that image although she clearly doesn't have blue hair.
I guess it could be bypassed by adding a search option to allow for "symbolic tags" or something like that, which switches from the usual search to this kind of search @myalow was talking about
@G1org1owo that seems like an incorrectly set up tag for example: a character might usually be female, but there will inevitably be male interpretations out there, so the character tag should not imply female, even if official lore is that they are female
I see what you mean, guess I have been using implications the wrong way then. I'd try to push out a test branch for implication searching but the last time I tried to wrap my head around the db code I gave up after half an hour, it should be doable after all though
@G1org1owo Just to be clear, I think that your use-case is valid, but what I've described is how this usually gets managed on big boorus like e621 (18+, not linking to it), which in my opinion is one of the few boorus with visible effort being put into making their tags make sense; just check their tag wiki.
I've come across a few issues now (#189,#208,#334,#337) That seem to get a general idea across for what I have in mind, but all of those issues seem to be either shot down or just dead.
Basically, I would like to see implications treated in a more 'parent-child' hierarchy. That is, if a post is tagged say,
super_mario
, andnintendo
is an implication forsuper_mario
, all images taggedsuper_mario
, both going forward and retroactively, should be taggednintendo
. on #189, I see a couple valid arguments against this;What I would consider a solution to both of these issues is a form of symbolic tagging. Rather than any
super_mario
post actually being hard-tagged withnintendo
, any post that returnssuper_mario
should show in search results fornintendo
and shownintendo
in the tag list. I'd imagine you could have it work like so:In both examples, Szurubooru would check for if a tag has any relations, and display the related tag in either search results or on the taglist sidebar, without the tag "truly" being associated to the image. This way, if someone wants to change/remove an implication for any reason, there is no reversal work to do;
nintendo
will no longer implysuper_mario
, and the search and taglist checks will not add it erroneously.As is obvious by my pseudo-code, I won't claim that I understand how big of an undertaking this would be, although I must imagine it's at the very least possible (I know Hydrus & Stash manage tags this way). Maybe this goes beyond the use desired by the dev; if so, maybe someone can spin up a fork or something.