I have a textfile that looks like this
radiant(a) vibe(n) pen(n) lightly(d) stares(v) bright(a) dust(n) graceful(a) dazzling(a) abruptly(d)
running(a) cheerfully(d) wriggles(v) inkwell(n) sky(n) running(a) divine(a) tear(n) rappidly(d)
I need python to read into this textfile and return me an overview of dictionaries like this:
{'a': ['radiant', 'bright', 'graceful', ...],
'n': ['vibe', 'pen', 'dust', ...],
'd': ['lightly', 'abruptly', 'cheerfully',...],
'v': ['stares', 'wriggles', 'smiles',...]}
Can anyone maybe help me? Thanks :)