LoliSnatcher_Droid icon indicating copy to clipboard operation
LoliSnatcher_Droid copied to clipboard

[Feature Request] Tag aliasing

Open ghost opened this issue 3 years ago • 4 comments

There are a few reoccurring scenarios in which having the ability to alias tags (like you would with aliasing commands for a shell) would be useful:

  • Different boorus using different tags for the same thing: for example, when referencing characters from Touhou, danbooru uses the tag touhou, while sankaku uses touhou_project. Aliasing touhou and touhou_project to touhou* or ~touhou ~touhou_project would make quickly switching between boorus (or multibooru) less of a pain. Another example is name order, such asreimu_hakurei vs. hakurei_reimu.
  • Multiple tags referencing the same thing: some less organized boorus may use animated, video, gif and/or other similar tags on animated content without much regularity. Aliasing animated to ~animated ~video ~gif could solve this.
  • Niche tags: users may want to look for images with some specific characteristics that are not explicitly tagged, but are easily expressed by combining two or more tags. For example, aliasing zun_art to touhou official_style (which is already present in some boorus, but not consistently tagged) (also, alias inside of an alias).
  • Grouping up related tags: for example, if a user wants to search images of the main mobile suits from ZZ Gundam, they could alias gundam_team to zz_gundam zeta_gundam gundam_mk_ii hyaku_shiki.

Aliases could also be made to be global or to only apply to specific boorus, since tagging is often inconsistent between sites.

ghost avatar Jul 11 '22 17:07 ghost

Good idea, I have problem with that myself 😅, when I have to change from sound to has_audio on sankaku. Maybe we'll get around to it after we release tag types (soon ™) and rework some related systems (i.e. tag suggestions). But filling those aliases will be completely on the user, we won't distribute any curated lists, like we plan to do with tag types.

NANI-SORE avatar Jul 11 '22 18:07 NANI-SORE

That's great to hear. Since you mentioned that tag types are going to be curated, name order aliasing could optionally be automated by aliasing all permutations of the words in a name (while being careful when it comes to boorus with tag limits like danbooru), since it would be a bit bothersome to add a new alias every time, or with characters that have 3+ name variations like Eiki from Touhou.

ghost avatar Jul 11 '22 19:07 ghost

There probably won't be any auto aliasing since ~(OR) is not a widespread search operator (plus it will probably trigger on any 2+ word tag and making it controlled will lead to just typing everytthing by hand again), but maybe we'll have a button in an alias editor to auto generate all possible combinations of a given string

NANI-SORE avatar Jul 11 '22 19:07 NANI-SORE

To make an alias global, it would need to be recognized by all platforms or applications that use the same tagging system. This can be achieved by creating the alias within a centralized database or repository that is accessible to all platforms that use the tagging system. For example, if multiple boorus are using the same tagging system, a centralized database or repository can be used to store and manage the aliases, which can then be accessed and utilized by all of the boorus. Alternatively, if the tagging system is used across multiple applications, a similar approach can be used to create and manage global aliases that can be used across all of the applications.

s-b-repo avatar Feb 13 '23 01:02 s-b-repo