design keyword dictionary structure