# Insert tag based upon word match

**URL:** https://meta.discourse.org/t/insert-tag-based-upon-word-match/132392
**Category:** Support
**Created:** [November 1, 2019, 1:31pm UTC](https://meta.discourse.org/t/insert-tag-based-upon-word-match/132392 "2019-11-01T13:31:54Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![thaidb](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thaidb/32/68488_2.png) [@thaidb](https://meta.discourse.org/u/thaidb)
#### Post date: [November 1, 2019, 1:31pm UTC](https://meta.discourse.org/t/insert-tag-based-upon-word-match/132392/1 "2019-11-01T13:31:54Z")

</div>

Hello  
Can we find a string all post and insert a tag to all of them?  
🙂

---

<div class="post-metadata">

### Author: ![justin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/justin/32/157614_2.png) [@justin](https://meta.discourse.org/u/justin)
#### Post date: [November 1, 2019, 2:36pm UTC](https://meta.discourse.org/t/insert-tag-based-upon-word-match/132392/2 "2019-11-01T14:36:06Z")

</div>

If you’re talking about matching a string in a post, then tagging the topic – yes, that’s possible, but it would need to be via a script. Not possible via a current rake task.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [November 1, 2019, 10:42pm UTC](https://meta.discourse.org/t/insert-tag-based-upon-word-match/132392/3 "2019-11-01T22:42:04Z")

</div>

You can do it from the console once, as @justin suggests, or if you want it to happen all the time you could do that with a plugin.

---

<div class="post-metadata">

### Author: ![thaidb](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thaidb/32/68488_2.png) [@thaidb](https://meta.discourse.org/u/thaidb)
#### Post date: [November 2, 2019, 12:30am UTC](https://meta.discourse.org/t/insert-tag-based-upon-word-match/132392/4 "2019-11-02T00:30:02Z")

</div>

Can i offer this plugin?

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [November 2, 2019, 11:03pm UTC](https://meta.discourse.org/t/insert-tag-based-upon-word-match/132392/5 "2019-11-02T23:03:30Z")

</div>

You can see [Developing Discourse Plugins - Part 1 - Create a basic plugin](https://meta.discourse.org/t/beginners-guide-to-creating-discourse-plugins-part-1/30515) or post in #Marketplace if you have a budget.

---

<div class="post-metadata">

### Author: ![justin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/justin/32/157614_2.png) [@justin](https://meta.discourse.org/u/justin)
#### Post date: [November 4, 2019, 3:36pm UTC](https://meta.discourse.org/t/insert-tag-based-upon-word-match/132392/6 "2019-11-04T15:36:26Z")

</div>


