Bangalore 市は Bengaluru としても知られており、同じことを表す 2 つの言い方があります。
これらのタグをマージし、メインタグを指定して他のタグを以下の記事で述べられているような同義語として扱う方法はありますか?
Discourse はこの機能をサポートしていますか?
Bangalore 市は Bengaluru としても知られており、同じことを表す 2 つの言い方があります。
これらのタグをマージし、メインタグを指定して他のタグを以下の記事で述べられているような同義語として扱う方法はありますか?
Discourse はこの機能をサポートしていますか?
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.
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…
@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.
Thanks!
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.
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. ![]()
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?
I’ll add it to the 2.4 release list.
Fantastic, thanks @codinghorror and @neil!
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.
This is cool! Should the button be
Edit like it is for categories? and then should the settings also be in a modal?
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.
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.
この機能は最新のベータリリースに含まれていますので、アップデートしてお試しください。
シノニムの作成とタグの結合は同じ場所で行います。「js」と「javascript」のタグを結合し、「javascript」をベースタグとして選択する場合、javascript タグのページ(/tags/javascript)に移動してください。
「js」をシノニムとして追加すると、そのトピックは「javascript」でタグ付けされたものとして表示されます。
検索やフィルターでは「js」が表示され、代わりに「javascript」へ誘導されます。トピックにタグ付けする際も「js」ではなく「javascript」が使用されます。などなど。シノニムの処理が必要な箇所をすべて網羅できているつもりですが、見落としがあればお知らせください。
これは素晴らしい仕事ですね <3
追記:タグの名前変更にも非常にスムーズな方法だと気づきました。当サイトには 100 以上もの「ux」タグがありましたが、フォーラムの設定では 3 文字以上のタグが必要でした。「ux」を「ux-design」の別名として追加したところ、すべての「ux」タグが瞬時に更新されました。
リネームの動作には少し驚かされましたが、良い意味での驚きでした。もしシノニムが大量のリネームを引き起こす可能性があるなら、@neil に対して「タグ foo をタグ bar に変更する 100 のトピックを編集しようとしています」といったような確認プロンプトを表示するべきかもしれませんね。どうでしょうか。少しの驚きでした。
ええと、ここでの驚きはよくわかりません。両方の状態を同時に望むことはありますか?
この例を使うと、「js」が「javascript」にマージされた後、一部のトピックは「js」、他のトピックは「javascript」でタグ付けされているという使い道はありますか?シノニムが何を意味するかを説明するメッセージがあれば役立つと思います。
タグのエイリアス機能と、それらを管理する新しい UI に心から
です!素晴らしい仕事ですね!
サムが言及している驚き、そして私も感じているのは、これが多くのトピックに影響を及ぼす可能性のある、少し荒っぽいツールだということです。確かにこれは良いこと(Good Thing™)であり、大きな改善ですが、元に戻せない(取り消し機能はないですよね?)ため、人々が後で後悔するような変更を、気づかないうちに誤って行ってしまいかねません。やりすぎかもしれませんが、これから行われる変更の範囲について警告するプロンプトを表示すれば、役立つと思います。
タグ自体は使っていないのですが、これは素晴らしいですね!潜在的な驚きについてですが、「シノニムを追加する=実際にマージする」と明確にしておくと、より分かりやすくなると思います。
私にとって「シノニム」という言葉からは、裏側では同じものとして扱われるものの、すべてのバージョンが表示され続けるというニュアンスが感じられます。例えば、正式で長い表現をタグの正規バージョンにしたいが、表示用には短いシノニムバージョンも残しておきたい、といったケースが考えられるかもしれません(ただし、現在の挙動の方が理にかなっていることは理解しています!)