<prompt> Theha lenaneo le lemohang boqhetseke ka mongolo.nan  <response>: Instruction in English: Create a program that detects plagiarism in text. . Response in English: 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 . Response in Sesotho: Mona ke lenaneo le bonolo la Python le ka lemohang boqhetseke bo ngotsoeng ka ho hlahloba ho tšoana pakeng tsa litemana tse peli ho sebelisa mokhoa oa ho tšoana oa cosine: python import string import math from collections import Counter def clean_texttext: tlosa matšoao a puo mongolo. fetolelastr.maketrans, , string.punctuation ho tlosa sebaka se sesoeu se eketsehileng le ho etsa litlhaku tse nyane mongolo text.strip.tlase khutlisetsa mongolo def cosine_similaritytext1, text2: hloekisa mongolo1 clean_texttext1 text2 clean_texttext2 tokening mongolo le ho theha sehlopha sa mantsoe a ikhethang1 text1.split words2 text2.split unique_words setmantsoe1. setmantsoe2 ho theha bukantswe ho bala kgafetsa ya mantswe freq1 dict.fromkeysique_words, 0 freq2 dict.fromkeysmantsoe_a ikhethang, 0 ho bala khafetsa ea mantsoe litemaneng tse peli bakeng sa lentsoe ka mantsoe1: freq1 lentsoe 1 bakeng sa lentsoe ka mantsoe2: freq2lentsoe 1 ho bala ho tšoana ha cosine dot_product kakaretso freq1lentsoe freq2lentsoe bakeng sa lentsoe ka unique_words magnitude1 math.sqrtkakaretsokakaretso freq1lentsoe2 bakeng sa lentsoe ka freq1 magnitude2 math.sqrtkakaretsofreq2lentsoe2 bakeng sa lentsoe ka freq2 ho tšoana dot_product magnitude1 boholo2 khutlisetsa ho tšoana mongolo1 Mokhoa o totobetseng oa ho qhekella mosebetsing oa bongoli ke ho kopitsa ka boomo le ka mokhoa o hlakileng oa mosebetsi o mong text2 Ho kopitsa ka boomo le pepenene ea mosebetsi o mong oa mongolo ke mokhoa o totobetseng oa ho qhekella threshold 0.7 ho tšoana cosine_similarity text1, text2 haeba ho tšoana threshold: printMongolo ona o ka ba le plagiarism. else: printMongolo ona ke oa mantlha. Lenaneo lena le hloekisa sengolwa pele ka ho tlosa matshwao a puo le dibaka tse ding tse tshweu mme le etsa tsohle. litlhaku tse nyane. Ebe e lekanya ho tšoana ha cosine pakeng tsa litemana tse peli ka ho bala khafetsa ea mantsoe litemaneng tse peli le ho nka sehlahisoa sa matheba sa li-vector tsa khafetsa tse arotsoeng ka sehlahisoa sa boholo ba tsona. Haeba ho tšoana ho le kholo ho feta moeli o itseng tabeng ena 0.7, lenaneo le nka sengoloa. 