UKHomeOffice / typeahead-aria

typeahead.js is a fast and fully-featured autocomplete library
http://twitter.github.com/UKHomeOffice/typeahead.js/
MIT License
9 stars 3 forks source link

new feature: different spellings/misspellings of countries #3

Open sulthan-ahmed opened 8 years ago

sulthan-ahmed commented 8 years ago

Their is a business case to have different spellings and misspellings of countries. This is a requirement for registered traveller. I'm happy to work on this but I thought I should raise it. A good example of what RT want is here.

http://baymard.com/labs/country-selector

colinrotherham commented 7 years ago

Hi @sulthan-ahmed,

You can add a function that compares against known country misspellings or aliases (Czech Republic, Czechia etc) as the data-set source property.

It's in the documentation here: https://github.com/twitter/typeahead.js/blob/master/doc/jquery_typeahead.md#datasets