In this paper, we introduce a mathematical modeling of a relative polarity of onlinesocial networks users. For this purpose, we create a fuzzy model of communities andfinally, we detect the polarity of all users. To achieve this goal, we are faced with theproblem of uncertainty. To solve this problem, we calculated the major methods ofdecision integration, including voting, rank, score, behavior and the Dempster Shafer method. Another initiative of this paper is in it’s ultimate goal which clearly deals with the polarity of a society by a new mathematical modeling. In order to be able toevaluate our proposed method correctly and accurately, we should first implement it and then examine the tools that are produced. Python programming language has been used in Spider software to implement community polarity detection. At each stage we have used the required libraries which have about 3500 lines of useful code. To evaluate the proposed method in Section 2, we implemented our proposed method. The evaluation of the proposed method was done in two ways, first, we compared the second phase of the third phase with different methods of decision integration and after selecting the best method, we reviewed the output results according to the opinions of experts.