Tagging is being widely used and there are plugins to help you out. This is good. The problem I''m facing is that people are using singular and plural names to tag something. For example an event about movie can be tagged as "movie" or "movies". Same goes for "jobs" or "job". I like the delicious interface where when you type "de" then you are prompted with options like "design" or "designer". This mean the users are less likely to have "designs". Is there an easy way to implement something like this. If the user has typed "mo" then show only one option "movie" and in this way "movies" is likely to be used as a tag. Any thoughts. -=- --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Philip Hallstrom
2006-Nov-02 22:34 UTC
Re: Easier tagging with consistency - movie vs movies
> Tagging is being widely used and there are plugins to help you out. This is > good. > > The problem I''m facing is that people are using singular and plural names to > tag something. For example an event about movie can be tagged as "movie" or > "movies". Same goes for "jobs" or "job". > > I like the delicious interface where when you type "de" then you are > prompted with options like "design" or "designer". This mean the users are > less likely to have "designs". > > Is there an easy way to implement something like this. If the user has typed > "mo" then show only one option "movie" and in this way "movies" is likely to > be used as a tag. > > Any thoughts.One could argue that a tag holds multiple things so like tables should perhaps be pluralized... but I''m nit picking :) Perhaps use the pluralize() and singularize() methods to convert user''s input so they are consistent? So if I type in "jobs" and hit save, convert that to "job" for me. -philip --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Jatinder Singh
2006-Nov-02 23:04 UTC
Re: Easier tagging with consistency - movie vs movies
Yes Delicious does provide auto complete feature for tags, but if you observe carefully, they would autocomplete a tag only if that has already been added by you earlier. what I mean here is that tags added by other users are not available to you during auto-complete feature. This delicious feature can easily be implemented by using scriptaculous auto complete feature (look for demos at http://demo.script.aculo.us/) . There is a plugin called acts_as_taggable which can be used ( http://wiki.rubyonrails.org/rails/pages/ActsAsTaggablePluginHowto) to achieve tagging functionality, I haven''t used it thought. Showing tags added by other users during auto completion needs some thought. Regards, Jatinder On 11/3/06, Neeraj Kumar <neeraj.jsr-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Tagging is being widely used and there are plugins to help you out. This > is good. > > The problem I''m facing is that people are using singular and plural names > to tag something. For example an event about movie can be tagged as "movie" > or "movies". Same goes for "jobs" or "job". > > I like the delicious interface where when you type "de" then you are > prompted with options like "design" or "designer". This mean the users are > less likely to have "designs". > > Is there an easy way to implement something like this. If the user has > typed "mo" then show only one option "movie" and in this way "movies" is > likely to be used as a tag. > > Any thoughts. > > -=- > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
On 11/2/06, Philip Hallstrom <rails-SUcgGwS4C16SUMMaM/qcSw@public.gmane.org> wrote:> One could argue that a tag holds multiple things so like tables should > perhaps be pluralized... but I''m nit picking :) > > Perhaps use the pluralize() and singularize() methods to convert user''s > input so they are consistent? So if I type in "jobs" and hit save, > convert that to "job" for me.Note that singularizing an already singular word can change the word (e.g. Business). Same thing for pluralizing a plural word (e.g. Data). If you don''t know if the input is singular or plural, you can''t reliably use .singularize or .pluralize. This bit me as a plugin author. Jeremy --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---