I want to create a data structure that is able to map a cluster or group of words to a single word or string , it can be thought as of a reverse of what a dictionary does in pyt
You can use a regular dict:
targetword = "good" wordmap = { "best": targetword, "positive": targetword, "awesome": targetword, "fantastic": targetword }