<prompt> Ngola algorithm e tla sekaseka sengoloa se fanoeng ebe o ntša mabitso ohle ho sona.nan  <response>: Instruction in English: Write an algorithm that would analyze a given text and extract all the nouns from it. . Response in English: python1. Import the necessary libraries, such as the natural language toolkit nltk. import nltk2. Tokenize the given text into sentences and words. sentences nltk.sent_tokenizetext words nltk.word_tokenizetext3. Apply part-of-speech tagging to the tokenized words to identify the grammatical category of each word. pos_tagged nltk.pos_tagwords4. Initialize a list to store the extracted nouns. nouns 5. Loop through the tagged words and check if the part-of-speech tag is a noun tag NN, NNS, NNP, or NNPS. for word, tag in pos_tagged: if tag in NN, NNS, NNP, NNPS: If it is a noun tag, append the word to the list of extracted nouns nouns.appendword6. Return the list of extracted nouns. return nounsThe above algorithm would analyze the given text, tokenizing it into sentences and words, apply part-of-speech tagging to the tokenized words, and identify the nouns by their part-of-speech tag. The extracted nouns would be stored in a list and returned at the end. . Response in Sesotho: python 1. Kenya lilaebrari tse hlokahalang, joalo ka sephutheloana sa lisebelisoa tsa puo ea tlhaho nltk. import nltk 2. Tokenya mongolo o filweng dipolelo le mantswe. dipolelo nltk.sent_tokenizemongolo mantswe nltk.word_tokenizetext 3. Sebelisa matshwao a karolo ya puo ho mantswe a tokenized ho hlwaya sehlopha sa thutapuo sa lentswe ka leng. pos_tagged nltk.pos_tagmantsoe 4. Qala lenane ho boloka mabitso a ntšitsoeng. mabitso 5. Lokolla mantsoeng a tšoailoeng me u hlahlobe hore na karolo-ea-puo ke tag ea lebitso NN, NNS, NNP, kapa NNPS. bakeng sa lentsoe, tag in pos_tagged: haeba tag in NN, NNS, NNP, NNPS: Haeba e le tag ea lebitso, hlomathisa lentsoe lena lethathamong la mabitso a ntšitsoeng. hlomathisalentsoe 6. Khutlisetsa lethathamo la mabitso a ntšitsoeng. kgutlisetsa mabitso Algorithm e ka hodimo e ne e tla sekaseka mongolo o filweng, e e fetole dipolelo le mantswe, e kenye matshwao a karolo ya puo ho mantswe a tokenized, mme e kgethe mabitso ka theke ya karolo ya puo. Mabitso a ntšitsoeng a ne a tla bolokoa lethathamong ebe a khutlisoa qetellong. 