I have a number of words divided into different categories. each word has assigned with a rank between 0 to 1. I am checking in the text if a word appears in a text, I want