Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
print(word.article)
elif args.part_of_speech:
if word.part_of_speech:
print(word.part_of_speech)
elif args.frequency:
if word.frequency:
print(word.frequency)
elif args.usage:
if word.usage:
print(word.usage)
elif args.word_separation:
for part in word.word_separation:
print(part)
elif args.meaning_overview:
if word.meaning_overview:
print_tree_of_strings(word.meaning_overview)
elif args.synonyms:
synonyms = word.synonyms
if synonyms:
print_string_or_list(synonyms)
elif args.origin:
if word.origin:
print(word.origin)
elif args.compounds:
if word.compounds:
display_compounds(word, args.compounds)
elif args.grammar:
display_grammar(word, args.grammar)
elif args.export:
yaml_string = yaml.dump(word.export(),
sort_keys=False, allow_unicode=True)
print(yaml_string, end='')