def _add_words(wordlist):
    'CLI for adding words individually to the wordlist.'
    print('Type a word with gender eg `m Mann` or `quit` when finished.')
    while True:
        input_str = input()
        if (input_str in ('quit', 'exit')):
            print('Exiting word addition mode...')
            break
        try:
            (gender, word) = input_str.split()
            wordlist.add(gender, word)
        except ValueError as e:
            print(e)
CLI for adding words individually to the wordlist.
def _add_words(wordlist):
    
    print('Type a word with gender eg `m Mann` or `quit` when finished.')
    while True:
        input_str = input()
        if (input_str in ('quit', 'exit')):
            print('Exiting word addition mode...')
            break
        try:
            (gender, word) = input_str.split()
            wordlist.add(gender, word)
        except ValueError as e:
            print(e)