Morphological Rules of Similarity for Hierarchical Representations