Firstly, not all words have sentiment value despite how frequently it is used in the document, namely, frequency of commonly used words could shadow other more significant and sentiment containing words.
to solve this problem term-frequency and inverse-document-frequency method (tf-idf) is widely used.