August 2024
Intermediate to advanced
516 pages
11h 47m
English
If we think about it, a good autocomplete feature isn’t necessarily going to display every possible word the user might be intending to type. Showing, say, sixteen options would be overwhelming to the user, so we’d rather show just the most popular words from the available list.
For example, if the user starts typing “bal”, the user might be intending to type “ball”, “bald”, or “balance”. Now, it’s also possible that the user is typing the obscure word “balter” (which means to dance clumsily, if you wanted to know). However, odds are that “balter” is not the intended word, since it’s not a common word.
To display the most popular word options, we somehow need to store the word popularity data in our trie ...
Read now
Unlock full access