plots2 icon indicating copy to clipboard operation
plots2 copied to clipboard

space delimited tags?

Open btbonval opened this issue 12 years ago • 6 comments

I've been thinking about this some more, and I don't think it is natural or intuitive for people to replace spaces with hyphens, which is the current pattern for creating tags with multiple words. Being that we don't speak German, spaces are still quite useful in English, even in tag metadata.

What if we modified the user interface to automatically demark tags once the delimiter is typed. So if I type "what," then the comma disappears and what is now marked as a tag. This is common in a lot of sites, but of course I can't find any prudent examples right now. Looking up "javascript tags" and "javascript comma separated tags" yielded nothing useful, wrong context for the word "tag". :(

We can also have the same interface delimit on spaces, so typing "what " causes "what" to be marked as tag. But if the user hits backspace, now the user is looking at "what " and may continue to type, e.g. "what thing ". which now creates a "what thing" tag. Continue this process. I've seen this sort of thing implemented somewhere. I wish I could do useful interwebs searches to find example code.

The assumption of space separating tags is that tags with one word are vastly more common than tags with spaces. I honestly don't think that holds, and I'd rather see space delimit be removed. But I'm trying to negotiate ;)

btbonval avatar May 27 '14 18:05 btbonval

btw I saw one tagging system which required the user to push enter as the delimiter. That was so unexpected, because usually enter in a form field triggers a form send. Let's not do that!

btbonval avatar May 27 '14 18:05 btbonval

I've seen, and like, that auto-tag-marking UI, and would be for it, but feel that it's a low priority feature compared to, say, suggested/recent tags as in #60, or many others, even outside tagging-related improvements. And I think #60 would do a lot to improve the rate of initial tagging, which would better trigger tag-based notification emails.

jywarren avatar May 27 '14 19:05 jywarren

Yeah, I think recent tags is a good idea.

Suggested tags we spoke about previously. That could turn into a Carolian rabbit hole.

Ideally we could find a javascript library or snippet which just plain takes care of the tag UI a little bit. Again my interwebs searches were totally off the mark and I'm not sure how else to search for "tagging" and "javascript" without getting a bunch of HTML tag context results. If we found such a thing, it should be quick and easy to drop in. This ticket is more about finding such existing code than reinventing a wheel.

btbonval avatar May 27 '14 19:05 btbonval

... or dropping space delimiters :) That'd be quick and easy.

btbonval avatar May 27 '14 19:05 btbonval

Great, sounds good, here's a library I stumbled across: http://xoxco.com/projects/code/tagsinput/

by dropping space delimiters, you mean deciding to accept spaces in tags? or auto-converting spaces into dashes instead of into tag delimiters? just want to be clear which makes more sense to you.

On Tue, May 27, 2014 at 3:06 PM, Bryan Bonvallet [email protected]:

... or dropping space delimiters :) That'd be quick and easy.

— Reply to this email directly or view it on GitHubhttps://github.com/publiclab/plots2/issues/89#issuecomment-44320713 .

jywarren avatar May 27 '14 19:05 jywarren

I initiated this note by clicking "Post related work" on another note. I then added four more tags to the end of the list with various punctuation. Before I published the note, it had the following string in the tags box:

balloon-mapping,kite-mapping,super-red,vermont,kap,3d-printing,makerbot,response:10230,infragram, infrared NDVI, logging

When it was published, all of the tags were included properly. I could not fool this killer algorithm. Nice work.

I guess the order in which tags are listed is frequency of previous use? How tidy.

Fastie avatar Jun 02 '14 13:06 Fastie