About design thinking. Business leaders have not yet fully embraced it as a means of managing the constant pace of change in today's climate. This process is an essential tool that will give entrepreneurs the edge they need to succeed.
import pymorphy2 morph = pymorphy2.MorphAnalyzer() def get_part_of_speech(word: str): parsed = morph.parse(word)[0] tag = parsed.tag if 'NOUN' in tag: return 'noun' if 'ADJF' in tag or 'PRTF' in tag: return 'adj' if 'VERB' in tag or 'INFN' in tag: return 'verb' return 'other' print(get_part_of_speech('кот')) # noun print(get_part_of_speech('быстрый')) # adj print(get_part_of_speech('бежать')) # verb renderWords();