It may be difficult in certain cases to distinguish among metaphor and simile as literary devices. Both of those are figures of speech built to make comparisons.So far as the difference between an allegory and metaphor is anxious, equally seem to belong to precisely the same team of figures of speech. The explanation is the fact that each mean comp