The document presents a generic method for detecting code clones in software development, addressing issues caused by duplicate code that impair maintainability and software quality. It introduces a technique capable of identifying four types of clones by segmenting code into modules, using metrics for comparison, and implementing a novel algorithm that leverages ontology schemas. The proposed tool shows better precision and recall values than existing methods, with an effective detection process for various coding languages.