resucutie / localbooru

Cross platform local booru collection that exclusively works on local storage, without selfhosting
GNU General Public License v3.0
26 stars 1 forks source link

Feature Request: Tag aliases #17

Open admbeck opened 3 weeks ago

admbeck commented 3 weeks ago

Is your feature request related to a problem? Please describe. While importing tags from different boorus, I’ve noticed that some tags are very closely related but are treated as separate entities. For example, tanktop and tank_top represent the same concept but are considered different tags in localbooru. Additionally, different boorus often use different tags for the same concept, such as 1girl, 2girls etc. on danbooru versus female on e926 to indicate the presence of a female character in an image. This leads to inconsistencies and inefficiencies when managing tags across different sources.

Describe the solution you'd like I propose implementing a tag aliasing feature that allows users to define aliases for tags, similar to how the "related images" feature works. This would enable a search to return results for all tags under the same alias, ensuring that tags like tanktop and tank_top, or 1girl and female, are treated as equivalents.

Describe alternatives you've considered Currently, I'm manually replacing certain tags that I want to be the same using a sed script. However, as the .json file grows larger, this method could become increasingly cumbersome and less efficient.

resucutie commented 3 weeks ago

I am planning to do something like that some day, likely after 1.6.0 releases (never considering how slow is the progress lol), but I also want to add some by default, and deciding which ones I should add will be a bit hard, mainly because I am biased towards how tags are in e621/e926