writing a generic dictionary for autosuggest