module to calculate the rating of keywords on search engine