systemed/iD — pull request #1950 by aaronlidman (2013-11-04 07:36:43+00:00)
Title: Autocomplete on name=*

Addresses #1752 for autocompleting the name field in presets. Previous pull request at #1911.

Names are taken from the [name-suggestion-index](https://github.com/osmlab/name-suggestion-index) which parses a planet file and builds a list of common names normalizing values around the highest ranking usage of a common name. The [name-suggestion-index](https://github.com/osmlab/name-suggestion-index) is the place for any modifications of what should be suggested by defining which names are most correct and which names shouldn't appear at all. Changes will be pulled in to iD periodically, the same way it's done with the editor-imagery-index.

With this change to iD, while a user is typing a name it is checked against a list of common names and if similar matches are found a list of values are suggested to select from. The aim is for the user to select and learn a name from a well maintained list rather than entering an incorrectly spelled or formatted variation.

![screen shot 2013-11-03 at 11 34 36 pm](https://f.cloud.github.com/assets/58878/1463205/a94fdf84-4523-11e3-949c-07273794f46f.png)

![screen shot 2013-11-03 at 11 34 52 pm](https://f.cloud.github.com/assets/58878/1463206/ad51d4fc-4523-11e3-9b3c-ce86a6874934.png)

![screen shot 2013-11-03 at 10 51 25 pm](https://f.cloud.github.com/assets/58878/1463182/d50cd2ea-4522-11e3-9ebc-5f150eb187bc.png)

This pull request is only for the name preset field. @emacsen recommended an interesting feature using the same common names in presets which I've detailed at #1949.

/cc @iandees @joto @pnorman @tyrasd