I need some help. I am trying to shorten a full product name from Amazon. For example:
Samsung Galaxy S II Epic Touch 4G Android Phone (Sprint)
Galaxy S II
I want to do this programatically. Any ideas?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
@bdares points out what seems to be the easiest way to handle this — make a big list of all of the product names, then use some sort of text search to find the product name your string contains.
I asked Given a list of search terms, how can I tell which ones my string contains? since I can’t think of a good way to do this at the moment.
EDIT: And I got a pretty good answer.