[Feature request] inconsistency between data-image-tag-aliases and data-image-tags attributes

IAmAPony
Speaking Fancy - For helping with translations

Datasets of thumbnails contain all tag names, including misspellings, aliases and other useless tags, however tag identifiers as well as tags in the alt & title attributes are clean:
 
@<div  
class=”image-container thumb”  
…  
data-image-tag-aliases=”adorable, adorable as fuck, adorbs, alicorn, alicorn twilight, artist:ihavnoname, artist:ofcourseitwasalreadytaken, artist:selenophile, cute, cute as fuck, hand drawn, handdrawn, kawaii, princess twilight, princess twilight sparkle, pt, safe, sketch, sketches, solo, traditional, traditional art, ts, twiight sparkle, twileesha sparkles, twilght, twilght sparkle, twilicorn, twilight alicorn, twilight saprkle, twilight sparkle, twilight sparkle (alicorn), twilightsparkle”  
data-image-tags=”[203163,40482,46192,24249,41865,319526,42350,45751,666]”  
…  
 
…  
<a  
href=”/1600684?q=artist%3Aselenophile”  
title=”Size: 1400x1298 | Tagged: alicorn, artist:selenophile, cute, safe, sketch, solo, traditional art, twilight sparkle, twilight sparkle (alicorn)”  
>  
…  
</a>  
</div>@   I have no idea why all this info is even presented in such an easily accessible way, but it's awesome for my user script which displays artist names among other things. However, inconsistency between `data-image-tag-aliases`, `data-image-tags`, `title` and `alt` attributes stops me from displaying correct artist tags in some cases, as well as implementing more interesting features. Also pure CSS rating detection sometimes fails because of silly aliases like "solo female"="solo female explicit".   What I get now is this:   ![full](https://i.imgur.com/iHp9Qoy.jpg)   I can parse title tags of course, but if I have an option of getting pure data instead of parsing formatted text for users, I'd rather go the clean way.   **Could you please add an attribute like `data-image-tag-names` with just clean tags or remove them from the `data-image-tag-aliases` attribute?**   P.S. What's the purspose of the datasets anyway? I don't see them used anywhere.
byte[]
Solar Supporter - Fought against the New Lunar Republic rebellion on the side of the Solar Deity (April Fools 2023).
Non-Fungible Trixie -
Verified Pegasus - Show us your gorgeous wings!
Preenhub - We all know what you were up to this evening~
An Artist Who Rocks - 100+ images under their artist tag
Artist -

Philomena Contributor
The datasets are used in the clientside query parser to evaluate complex filters  
full
 
There will likely always be some inconsistency between data-image-tag-aliases and data-image-tags; the latter is the authoritative source, and the former is a cache column that includes all aliases for denormalizing searching.
 
I am planning to redo this properly in the future. The only thing I can say right now is that it might be a while to wait for it.
IAmAPony
Speaking Fancy - For helping with translations

@byte[]  
Client-side query parser? Using currently listed posts? Where is it used? I feel like I’m missing a major feature somewhere. :D
 
Hmm, looks like the API thingy provides the data I need in the form I need. Am I right to assume that on most (all?) pages I can just append “.json” to the location.pathname, leaving the rest of URL intact, perform the query with credentials, and get the exact same data that is displayed on the page (unless data is changed between the requests, of course)? The official docs mention keys, but cookies seem to work just fine.
Interested in advertising on Derpibooru? Click here for information!
Pony Arts & Prints!

Help fund the $15 daily operational cost of Derpibooru - support us financially!

Syntax quick reference: **bold** *italic* ||hide text|| `code` __underline__ ~~strike~~ ^sup^ %sub%

Detailed syntax guide