SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: Keyword Script

  1. #1
    Serial Publisher silver trophy aspen's Avatar
    Join Date
    Aug 1999
    Location
    East Lansing, MI USA
    Posts
    12,937
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Keyword Script

    anyone know of a script that'll automatically generate keywords off of a text file? I've heard a few people mention it in passing but no one actually says how they do it.
    Chris Beasley - I publish content and ecommerce sites.
    Featured Article: Free Comprehensive SEO Guide
    My Guide to Building a Successful Website
    My Blog|My Webmaster Forums

  2. #2
    SitePoint Columnist Skunk's Avatar
    Join Date
    Jan 2001
    Location
    Lawrence, Kansas
    Posts
    2,066
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBulletin 2 does just that for it's search indexing bit - I don't have the code but the basic procedure is...

    Convert everything to lower case
    Get rid of all the punctuation / multiple whitespace / newlines
    Split the text into an array of single "words"
    Remove all words from the array that occur in the "common words" list (stuff like 'the', 'and' etc)

    Hope that helps,

    Skunk


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •