In Social networks, users need a proper estimation of trust in others to beable to initialize reliable relationships. Some trust evaluation mechanisms havebeen o ered, which use direct ratings to calculate or propagate trust values. However, in some web-based social networks where users only have binaryrelationships, there is no direct rating available. Therefore, a new method isrequired to infer trust values in these networks. To bridge this gap, this paperaims to propose a new method which takes advantage of user similarity topredict trust values without any need for direct ratings. In this approach, which is based on socio-psychological studies, user similarity is calculatedfrom the pro le information and the texts shared by the users via text-miningtechniques. Applying Ziegler ratios to our approach revealed that users aremore than 50% more similar to their trusted agents than to arbitrary peers, which proves the validity of the original idea of the study about inferring trustfrom language similarity. In addition, comparing the real assigned ratings, gathered directly from users, with the experimental results indicated that thepredicted trust values are su ciently acceptable (with a precision of 61%). Wehave also studied the bene ts of using context in inferring trust. In this regard, the analysis revealed that the precision of the predictions can be improved upto 72%. Besides the application of this approach in web-based social networks, the proposed technique can also be of much help in any direct rating mechanismto evaluate the correctness of trust values assigned by users, and increases therobustness of trust and reputation mechanisms against possible security threats.