When tagging, sometimes we add tags that shouldn't be there together.
For example, tags for number of people(1~6+/girls~others
) together, or solo
and solo_focus
together.
So let's make it possible to set multiple tags to be mutually exclusive. This is done using the attribute of Tags and The New Arrays of Arrays.
An array called exclusive_tags would look like this
[['solo','solo_focus'], ['1girl','2girls',...,'6+girls'], ...]
- exclusive_tags:
[['solo','solo_focus'],['1girl','2girls',...,'6+girls'], ...]
All of exclusive_tags - exclusive_tags[0]:
['solo','solo_focus']
Each BUR of exclusive_tags - exclusive_tags[0][0]:
'solo'
Each tags
In the tags, the attribute called exclusive will set the id value of exclusive_tags. We can use this id value to check if there are other mutually exclusive tags when uploading or editing a post, and if so, it would be perfect to stop the upload and highlight those tags in red.
via BUR, You should add or delete inner array or add, remove, or modify elements in the array.
Here's an examples.
create exclusive list [solo solo_focus] # Let's call the ID of this array 123. exclusive_tags[123]: ['solo','solo_focus'] update exclusive list [solo solo_focus multiple_view] where 123 delete exclusive element solo where 123 insert exclusive element solo into 123 delete exclusive list 123
I'm not an expert on SQL or BUR, so please be flexible and let me know if you have a better syntax.
It would be nice to be able to see the exclusive_tags for any one tag on a page like [Tags] - [Exclusives] afterwards.
This would prevent mistagging like 1girl 2girls, etc.