Given a sentence like this, and i have the data structure (dictionary of lists):
{'cat': ['feline', 'kitten']}
A feline was recently spotted in the neighborhood protecting her little kitten
How would I efficiently process these set of text to convert the word synonyms of the word cat to the word CAT such that the output is like this:
A cat was recently spotted in the neighborhood protecting her little cat
I would also like to inquire whether my data structure is relevant and efficient for this task