<prompt> Unda programu inayoweza kutambua ikiwa maandishi yameandikwa kwa Kiingereza.Maandishi haya yameandikwa kwa Kiingereza.  <response>: 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. 