<prompt> Unda programu inayoweza kutambua ulaghai katika maandishi.  <response>: Here is a simple Python program that can detect plagiarism in text by checking the similarity between two texts using the cosine similarity method:pythonimport stringimport mathfrom collections import Counterdef clean_texttext: removing punctuations text text.translatestr.maketrans, , string.punctuation removing extra whitespace and making all characters lowercase text text.strip.lower return textdef cosine_similaritytext1, text2: cleaning the text text1 clean_texttext1 text2 clean_texttext2 tokenizing the text and creating a set of unique words words1 text1.split words2 text2.split unique_words setwords1.unionsetwords2 creating a dictionary to count frequency of words freq1 dict.fromkeysunique_words, 0 freq2 dict.fromkeysunique_words, 0 counting the frequency of words in both texts for word in words1: freq1word 1 for word in words2: freq2word 1 calculating cosine similarity dot_product sumfreq1word freq2word for word in unique_words magnitude1 math.sqrtsumfreq1word2 for word in freq1 magnitude2 math.sqrtsumfreq2word2 for word in freq2 similarity dot_product magnitude1 magnitude2 return similaritytext1 The most obvious form of plagiarism in a literary work is the deliberate and blatant copying of another worktext2 Deliberate and blatant copying of another work in a literary writing is the evident form of plagiarismthreshold 0.7similarity cosine_similaritytext1, text2if similarity threshold: printThis text may contain plagiarism.else: printThis text is original.This program first cleans the text by removing punctuation and extra whitespaces and makes all characters lowercase. Then it calculates the cosine similarity between the two texts by counting the frequency of words in both texts and taking the dot product of the frequency vectors divided by the product of their magnitudes. If the similarity is greater than a certain threshold in this case 0.7, the program considers the text 