Added choice for approximate and exact match in dictionary lookup