<prompt> Etsa lenaneo le ka lemohang hore na mongolo o ngotsoe ka Senyesemane.Mongolo ona o ngotsoe ka Senyesemane.  <response>: Instruction in English: Create a program that can detect if a text is written in English. . Response in English: Here is a simple python program that can detect if the given text is written in English or not:pythonfrom nltk.corpus import wordsfrom nltk.util import ngramsfrom nltk.tokenize import word_tokenizedef check_languagetext: text text.lower words_list setwords.words tokens word_tokenizetext word_count lentokens eng_word_count 0 for word in tokens: if word in words_list: eng_word_count 1 eng_percent eng_word_count word_count 100 if eng_percent 70: return English else: return Not English Testtext This text is written in English.result check_languagetextprintresultOutput:EnglishAccording to the given input, the program takes in the text as the input parameter and checks if it is written in English or not. It does this by checking the percentage of valid English words with reference to the NLTK English corpus. If the percentage is more than 70, then it considers the text to be written in English, otherwise, it classifies it as not being written in English. . Response in Sesotho: Mona ke lenaneo le bonolo la python le ka lemohang hore na mongolo o fanoeng o ngotsoe ka Senyesemane kapa che: python ho tsoa ho nltk.corpus tlisa mantsoe a tsoang ho nltk.util import ngrams ho tloha nltk.tokenize import word_tokenize def check_languagetext: mongolo text.tlase words_list setwords.words tokens word_tokenizetext word_count lentokens eng_word_count 0 bakeng sa lentsoe ka li-tokens: haeba lentsoe ka mantsoe_list: eng_word_count 1 eng_percent eng_word_count word_count 100 haeba eng_percent 70: kgutlisetsa English else: return Not English Mongolo wa teko Mongolo ona o ngotswe ka Senyesemane. sephetho check_languagetext printsephetho Output: English Ho ea ka kenyo e fanoeng, lenaneo le nka mongolo e le paramethara ea ho kenya le ho hlahloba hore na e ngotsoe ka Senyesemane kapa che. E etsa sena ka ho lekola liperesente tsa mantsoe a nepahetseng a Senyesemane ha a bua ka NLTK English corpus. Haeba peresente e ka holimo ho 70, joale e nka hore mongolo o ngotsoe ka Senyesemane, ho seng joalo, o hlalosa hore ha oa ngoloa ka Senyesemane. 