tag_scored implementation
renamed tag_scored to word_frequency