readSimilarityFunction