to generate dictionaries