code to get dictionary suggestion