GODRICH
#css-animation#button#loader#transition#scroll#dashboard#ui#design-trends

06Typo suggest — computing edit distance to float a 'did you mean?' row

Computing Levenshtein edit distance between the query and each candidate on a 2D DP table, anything at distance 1-2 counts as a typo and surfaces in a 'did you mean?' row with the intended word. It also covers renormalizing case and whitespace before re-measuring, and how tightening the threshold turns suggestions conservative.

Best forForgiving weak spellers

beforeinputCSS custom propertiesaria-expanded
Typo suggest — computing edit distance to float a 'did you mean?' row
Open in a new tab

06 Typo suggest — computing edit distance to float a 'did you mean?' row — Measured area 45.977% · moving frames 7/23Original by GODRICH · SCSS and React ship in the zip · Autocomplete Input: 9 Search Dropdowns

The post this demo lives in

Autocomplete Input: 9 Search Dropdowns - preview of all 9 demosAutocomplete Input: 9 Search DropdownsAutocomplete input, explained: Bolds where letters sit in each suggestion, debounces requests, cycles the list by keyboa See all demos in this post

If you like this effect - similar demos