"abab".RatcliffObershelpSimilarity("ababab"); it return 0.4 now. the value should be 2 * ( 4 ) / ( 4 + 6 ) = 0.8