Fusión de etiquetas - Sinónimos de etiquetas

Hay dos formas de decir lo mismo: la ciudad Bangalore, también conocida como Bengaluru.

Dado que este tema tiene ambas etiquetas.

¿Existe alguna forma de fusionar estas etiquetas y tener la etiqueta principal y las demás como sinónimos, como se menciona en el siguiente artículo?

¿Proporciona Discourse esta funcionalidad?

14 Me gusta

I do not believe so at the moment - each tag is unique.

A not very beautiful workaround you could do is enforce one spelling/synonym by making the others staff-tags (so most users can’t use them). You can then either not use the different spellings /synonyms at all or just have one topic for each which is just a post redirecting to the other tag.

2 Me gusta

At some point we will be forced to implement tag synonyms @neil it is inevitable. Also a problem with plurals. We went through this same thing at Stack Overflow…

20 Me gusta

@codinghorror Any guidance on if this is upcoming soon or still a ways out? Thinking through how to overhaul tagging as we’re migrating from Vanilla and deciding whether to build our own internal systems for tag synonyms and merging (likely a manual process) or wait until it’s supported natively.

If you’re getting close, perhaps we’ll hold off. :slight_smile: Thanks!

3 Me gusta

I wouldn’t mind doing it, not sure how much work it would be though. Any idea on scope @neil? The classic example from my SO days is this one:

string vs. strings

Just making plurals remap to the singular version is a good starting point, though obviously you’d want {x} different forms to remap to the same base.

8 Me gusta

Thanks for the reply, @codinghorror! Automatic merging of singular vs. plural would be great.

One more thing that might be useful based on my experience is a new tags queue so it’s easy so spot them and either a) approve them as is b) merge them with something else or c) delete them.

One of the problems we have now is identifying newly added tags. Because they’re not anywhere unique it becomes a hunting game of pouring through a sea of words each month looking for similar words/phrases.

Having a new tag queue - or being able to sort tags by date added - would be immensely helpful for keeping things nicely organized. Or, at least selfishly, for us. :slight_smile:

7 Me gusta

We don’t have much of a UI for managing tags, since we only allow renaming and deleting currently. But merging and adding a list of synonyms doesn’t seem like much. Reviewing new tags would happen in the new review queue, so I’m not sure how much work that would be. So… a week or two of work?

10 Me gusta

I’ll add it to the 2.4 release list.

16 Me gusta

Fantastic, thanks @codinghorror and @neil!

3 Me gusta

Here’s a preview of what I’ve got so far.

I’d like to add a bit more to the tag info section, like which categories it’s restricted to (if any), and which tag groups it belongs to (if “tags listed by group” setting is enabled).

Adding tag descriptions has been requested, so this info section will be where it will be seen and changed.

19 Me gusta

This is cool! Should the button be :wrench: Edit like it is for categories? and then should the settings also be in a modal?

7 Me gusta

The video is showing the admin view of the tag info, but it also works for anon and non-staff users. They will see the synonyms, categories where the tags can be used (if they’re restricted to some categories), and tag group names that they belong to (if tag group names are public on the /tags page).

That space is also ready for new features that have been requested, like being able to have descriptions for tags.

I kinda hate the modal approach now, especially since the category modal is so full and keeps growing. Maybe category settings need to be moved out of a modal.

7 Me gusta

Yeah that makes sense, I definitely prefer on-page to modal but I’d rather be consistent either way. Updating the category settings to be more like the layout for group settings might be a good move at some point.

5 Me gusta

Esta característica se incluyó en la última versión beta, así que por favor actualiza y pruébala.

La creación de sinónimos y la fusión de etiquetas se realizan en el mismo lugar. Si deseas fusionar las etiquetas “js” y “javascript”, y elegir “javascript” como la etiqueta base, ve a la página de la etiqueta javascript (/tags/javascript).

Una vez que “js” se agregue como sinónimo, sus temas se mostrarán etiquetados como “javascript”.

En la búsqueda y los filtros, “js” aparecerá y redirigirá a las personas a “javascript” en su lugar. Al etiquetar temas, “js” usará “javascript” en su lugar. Y así sucesivamente. Espero haber cubierto todos los lugares donde se deben manejar los sinónimos, así que avísame si me he perdido algo.

15 Me gusta

¡Este es un trabajo hermoso <3

Edición: Acabo de notar que también es una forma muy fluida de renombrar una etiqueta. Tenemos más de 100 etiquetas de ‘ux’, pero la configuración del foro exige etiquetas con 3 o más letras. Añadí ‘ux’ como sinónimo de ‘ux-design’ y todas nuestras etiquetas ‘ux’ se actualizaron al instante.

6 Me gusta

Me sorprendió un poco el comportamiento de renombrado; fue una agradable sorpresa, pero sigue siendo una sorpresa. Quizás, si los sinónimos van a provocar un renombrado masivo, deberíamos mostrar un mensaje a @neil: ‘Estás a punto de modificar 100 temas con la etiqueta foo para usar la etiqueta bar’, algo así. No estoy seguro, fue un poco sorprendente.

5 Me gusta

Hmm, no entiendo la sorpresa aquí. ¿Alguna vez querrías tener ambas cosas?

Usando ese ejemplo, ¿cuál es el caso de uso para tener algunos temas etiquetados como “js” y otros como “javascript”, después de que “js” se haya fusionado en “javascript”? Supongo que un mensaje que explique qué significa un sinónimo sería útil.

6 Me gusta

¡Me encantan absolutamente los sinónimos de etiquetas y esta nueva interfaz para gestionarlos! ¡Buen trabajo!

Creo que la sorpresa a la que se refiere Sam, y que yo también siento, es que esta es una herramienta contundente que tiene el potencial de afectar a muchos temas. Sin duda es una buena cosa ™ y una gran mejora, pero como no se puede deshacer (¿no hay opción de deshacer, cierto?), podría hacer que las personas realicen cambios por accidente que luego lamenten, sin darse cuenta. Puede que sea excesivo, pero tener un mensaje de advertencia sobre la magnitud del cambio que está a punto de ocurrir sería de gran ayuda.

7 Me gusta

¡Ni siquiera uso etiquetas, pero esto se ve increíble! En cuanto a la posible sorpresa, aclarar que agregar un sinónimo implica una fusión real probablemente ayudaría.

Para mí, ‘sinónimo’ podría implicar que todas las versiones seguirán mostrándose, pero simplemente se mapearán a lo mismo internamente; podría imaginar un caso en el que alguien realmente deseara que la versión canónica de una etiqueta fuera algo más largo y formal, pero aún así esperar que las versiones sinónimas más cortas se muestren con fines de visualización, o algo así (aunque entiendo por qué el comportamiento que tienes tiene más sentido).

2 Me gusta