generate definition dictionary