<prompt> Kujenga kazi ya kuainisha maneno katika majina, vitenzi, na adjectives.  <response>: One way to classify words into their part of speech is to use natural language processing NLP techniques such as Parts of Speech POS tagging. Here, I will construct a function using Pythons Natural Language Toolkit NLTK library that classifies words into nouns, verbs, and adjectives:pythonimport nltkfrom nltk.corpus import wordnetnltk.downloadaveraged_perceptron_taggernltk.downloadwordnetdef classify_wordsword: use the nltk library for POS tagging part_of_speech nltk.pos_tagword01 define the POS tags that represent nouns, verbs, and adjectives noun_tags NN, NNS, NNP, NNPS verb_tags VB, VBD, VBG, VBN, VBP, VBZ adjective_tags JJ, JJR, JJS check if the POS tag of the given word matches any of the defined tags if part_of_speech in noun_tags: return Noun elif part_of_speech in verb_tags: return Verb elif part_of_speech in adjective_tags: return Adjective else: return OtherTo test this function, lets try classifying different words:python Testing the classify_words functionprintclassify_wordscat expected result: Nounprintclassify_wordsjump expected result: Verbprintclassify_wordshappy expected result: Adjectiveprintclassify_wordsquickly expected result: Adverb Note that this example solution can correctly identify nouns, verbs, and adjectives, but would not be able to classify other parts of speech such as adverbs correctly as the function is designed to only return one of Noun, Verb, Adjective, or Other. 