I'm not sure if they base it off of meta tags or keywords since that would probably be too easy to take advantage of. I believe it's basically from the actual content and the more common keywords of that content.