问题
How can I use php to categorise different keywords together for example to consider shoes, boots, nike, etc in the similar categories.
Any code would be appreciated.
回答1:
(Warning: a fundamentalist approach) Go to http://commons.media.mit.edu/ and http://www.cyc.com/cyc/opencyc. These are two open databases of common sense. Make several searches by categories you're interested in. You'll get some related terms for each category. Put it in a fast database of your liking, and you're set.
Also, various SEO people like to create clouds of related keywords in meta
tags of relevant pages. Take a look at source of several such pages, extract and filter keywords.
来源:https://stackoverflow.com/questions/4787984/i-want-to-get-related-searches-or-keywords