def decline(): ''' Allows user to select word to decline and declension, then outputs the declined word. ''' word = input("Enter word (in conlang) to decline: ") try: result = Library.findConWord(word) except LookupError: print("Word not found in database") return 1 prompt = "Select declension" dec = IOHelper.createMenu(prompt, Library.getAvailableDeclensions()) output = Library.declineWord(result, dec) outputWord(output, "conlang")