ArticleslgStudy

computer science

Autocomplete

Autocomplete is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Autocomplete rather than just read about it. In short: Autocomplete, or word completion, is a feature in which an application predicts the rest of a word a user is typing. In Android and iOS smartphones, this is called predictive text.

Autocomplete — main illustration
Autocomplete — illustration

Key takeaways

  • Autocomplete belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Autocomplete to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Autocomplete from memory before moving on to harder problems.

Reference excerpt

Autocomplete, or word completion, is a feature in which an application predicts the rest of a word a user is typing. In Android and iOS smartphones, this is called predictive text. In graphical user interfaces, users can typically press the tab key to accept a suggestion or the down arrow key to accept one of several. Autocomplete speeds up human-computer interactions when it correctly predicts the word a user intends to enter after only a few characters have been typed into a text input field. It works best in domains with a limited number of possible words (such as in command line interpreters), when some words are much more common (such as when addressing an e-mail), or writing structured and predictable text (as in source code editors). Many autocomplete algorithms learn new words after the user has written them a few times, and can suggest alternatives based on the learned habits of the individual user.

Definition

Original purpose The original purpose of word prediction software was to help people with physical disabilities increase their typing speed, as well as to help them decrease the number of keystrokes needed in order to complete a word or a sentence. The need to increase speed is noted by the fact that people who use speech-generating devices generally produce speech at a rate that is less than 10% as fast as people who use oral speech. But the function is also very useful for anybody who writes text, particularly people–such as medical doctors–who frequently use long, hard-to-spell terminology that may be technical or medical in nature.

Description Autocomplete or word completion works so that when the writer writes the first letter or letters of a word, the program predicts one or more possible words as choices. If the intended word is included in the list, the writer can select it, for example, by using the number keys. If the word that the user wants is not predicted, the writer must enter the next letter of the word. At this time, the word choice(s) is altered so that the words provided begin with the same letters as those that have been selected. When the word that the user wants appears it is selected, and the word is inserted into the text. In another form of word prediction, words most likely to follow the just written one are predicted, based on recent word pairs used. Word prediction uses language modeling, where within a set vocabulary the words are most likely to occur are calculated. Along with language modeling, basic word prediction on AAC devices is often coupled with a frecency model, where words the AAC user has used recently and frequently are more likely to be predicted. Word prediction software often also allows the user to enter their own words into the word prediction dictionaries either directly, or by "learning" words that have been written. Some search returns related to genitals or other vulgar terms are often omitted from autocompletion technologies, as are morbid terms

History The autocomplete and predictive text technology was invented by Chinese scientists and linguists in the 1950s to solve the input inefficiency of the Chinese typewriter, as the typing process involved finding and selecting thousands of logographic characters on a tray, drastically slowing down the word processing speed. In the 1950s, typists came to rearrange the character layout from the standard dictionary layout to groups of common words and phrases. Chinese typewriter engineers innovated mechanisms to access common characters accessible at the fastest speed possible by word prediction, a technique used today in Chinese input methods for computers, and in text messaging in many languages. According to Stanford University historian Thomas Mullaney, the development of modern Chinese typewriters from the 1960s to 1970s influenced the development of modern computer word processors and affected the development of computers themselves.

Types of autocomplete tools There are standalone tools that add autocomplete functionality to existing applications. These programs monitor user keystrokes and suggest a list of words based on first typed letter(s). Examples are Typingaid and Letmetype. LetMeType, freeware, is no longer developed. The author has published the source code and allows anybody to continue development. TypingAid, also freeware, is actively developed. IntelliComplete, available as both freeware and payware, works only in certain programs which hook into the IntelliComplete server program. The first autocomplete software was Smartype, which dates back to the late 1980s and is still available today. It was initially developed for medical transcriptionists working in WordPerfect for MS/DOS, but it now functions for any application in any Windows or Web-based program.

Autocorrection Autocorrection is a related feature that involves automatic replacement of a particular string with another one, usually one that is longer and harder to type, such as "myname" with "Lee John Nikolai François Al Rahman". This can also quietly fix simple typing errors, such as turning "teh" into "the". Several autocomplete programs, standalone or integrated in text editors, based on word lists, also include a shorthand function for often-used phrases.

Context completion Context completion is a text editor feature, similar to word completion, which completes words (or entire phrases) based on the current context and context of other similar words within the same document, or within some training data set. The main advantage of context completion is the ability to predict anticipated words more precisely and even with no initial letters. The main disadvantage is the need of a training data set, which is typically larger for context completion than for simpler word completion. Most common use of context completion is seen in advanced programming language editors and IDEs, where training data set is inherently available and context completion makes more sense to the user than broad word completion would. Line completion is a type of context completion, first introduced by Juraj Simlovic in TED Notepad in July 2006. The context in line completion is the current line while the current document poses as a training dataset. When the user begins a line that starts with a frequently-used phrase, the editor automatically completes it up to the position where similar lines differ or proposes a list of common continuations.

Software integration

In web browsers

… excerpt ends here. Continue reading the full article.

Illustrations

Autocomplete: Example of the partially typed search term baby st being autocompleted to various options
Example of the partially typed search term baby st being autocompleted to various options
Autocomplete: Autocomplete of the search box in Mozilla Firefox
Autocomplete of the search box in Mozilla Firefox
Autocomplete: Code completion in Qt Creator 5.0: The programmer types some code, and when the software detects a recognizable string such as a variable identifier or class name it presents a menu to the programmer which contains the complete name of the identified variable or the methods applicable to the detected class, and the programmer makes a choice with her or his mouse or with the keyboard arrow keys. If the programmer continues typing without making a choice, then the menu disappears.
Code completion in Qt Creator 5.0: The programmer types some code, and when the software detects a recognizable string such as a variable identifier or class name it presents a menu to the programmer which contains the complete name of the identified variable or the methods applicable to the detected class, and the programmer makes a choice with her or his mouse or with the keyboard arrow keys. If the programmer continues typing without making a choice, then the menu disappears.
Autocomplete: Command-line completion in PowerShell
Command-line completion in PowerShell

Worked examples

Example 1 — a first encounter with Autocomplete

Start with the simplest possible case. Write down what Autocomplete claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Autocomplete before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Autocomplete ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Autocomplete

In research
Autocomplete appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Autocomplete in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Autocomplete is common in secondary-school and first-year university syllabi. It links to neighbouring topics Assistive technology, Autocomplete, Disability software, so understanding it makes those chapters shorter.
In everyday life
Look for Autocomplete outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Autocomplete” →

How to study Autocomplete in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Autocomplete means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Autocomplete out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Autocomplete in simple terms?

Autocomplete, or word completion, is a feature in which an application predicts the rest of a word a user is typing. In Android and iOS smartphones, this is called predictive text.

Why does Autocomplete matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Autocomplete?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Autocomplete.

Tags

  • Assistive technology
  • Autocomplete
  • Disability software

Keep exploring