# How to Generate Tags from Description (input)?

**URL:** <https://www.ruby-forum.com/t/how-to-generate-tags-from-description-input/174497>\
**Category:** Rails\
**Created:** [August 27, 2009, 4:21pm UTC](https://www.ruby-forum.com/t/how-to-generate-tags-from-description-input/174497 "2009-08-27T16:21:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![railslist](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/65b543/32.png) [@railslist](https://www.ruby-forum.com/u/railslist)\
**Post date:** [August 27, 2009, 4:21pm UTC](https://www.ruby-forum.com/t/how-to-generate-tags-from-description-input/174497/1 "2009-08-27T16:21:37Z")

</div>

My users provide some description ( TEXT field) and I would like to  
generate tags automatically from them?

are there any plugins available?. Any directions would be appreciated.

cheers

---

<div class="post-metadata">

**Author:** ![railslist](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/65b543/32.png) [@railslist](https://www.ruby-forum.com/u/railslist)\
**Post date:** [August 27, 2009, 6:26pm UTC](https://www.ruby-forum.com/t/how-to-generate-tags-from-description-input/174497/2 "2009-08-27T18:26:14Z")

</div>

Looks like acts\_as\_taggable\_on is what you need. The example included  
on that page should make it pretty easy to do.

> **[GitHub - mbleigh/acts-as-taggable-on: A tagging plugin for Rails applications...](https://github.com/mbleigh/acts-as-taggable-on/tree/master)**
>
> master

On Aug 27, 8:21 am, Rails L. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![railslist](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/65b543/32.png) [@railslist](https://www.ruby-forum.com/u/railslist)\
**Post date:** [August 27, 2009, 8:04pm UTC](https://www.ruby-forum.com/t/how-to-generate-tags-from-description-input/174497/3 "2009-08-27T20:04:29Z")

</div>

Kyle F wrote:

> Looks like acts\_as\_taggable\_on is what you need. The example included  
> on that page should make it pretty easy to do.
> 
> [GitHub - mbleigh/acts-as-taggable-on: A tagging plugin for Rails applications that allows for custom tagging along dynamic contexts.](http://github.com/mbleigh/acts-as-taggable-on/tree/master)
> 
> On Aug 27, 8:21ï¿½am, Rails L. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

Thanks Kyle, unfortunately there is no provision wherein it generates  
tags automatically ( I still have to assign it explicitly - which I  
don’t want to)

---

<div class="post-metadata">

**Author:** ![railslist](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/65b543/32.png) [@railslist](https://www.ruby-forum.com/u/railslist)\
**Post date:** [August 28, 2009, 4:04am UTC](https://www.ruby-forum.com/t/how-to-generate-tags-from-description-input/174497/4 "2009-08-28T04:04:37Z")

</div>

2009/8/28 Rails L. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> Thanks Kyle, unfortunately there is no provision wherein it generates  
> tags automatically ( I still have to assign it explicitly - which I  
> don’t want to)

You’re trying to pick out keywords out of the description to use as  
tags? You could use a language parser to pick out sentence components

- Subject, Direct Object - and use those as tags.

[http://deveiate.org/code/linkparser/](http://deveiate.org/code/linkparser/)

g.
