autocomplete
{{Short description|Computing feature predicting ending to a word a user is typing}}
{{redirect|Word prediction|word prediction in psycholinguistics|Prediction in language comprehension}}
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{{cite web |url=https://support.apple.com/en-us/HT207525 |title = How to use Auto-Correction and predictive text on your iPhone, iPad, or iPod touch |work=Apple Support |publisher=Apple}} 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,{{Cite journal |doi = 10.1080/10400430903175473|pmid = 19908678|title = Evaluating the Benefits of Displaying Word Prediction Lists on a Personal Digital Assistant at the Keyboard Level|journal = Assistive Technology|volume = 21|issue = 3|pages = 105–114|year = 2009|last1 = Tam|first1 = Cynthia|last2 = Wells|first2 = David|s2cid = 23183632}} as well as to help them decrease the number of keystrokes needed in order to complete a word or a sentence.{{cite journal |last1=Anson |first1=D. |last2=Moist |first2=P. |last3=Przywara |first3=M. |last4=Wells |first4=H. |last5=Saylor |first5=H. |last6=Maxime |first6=H. |title=The Effects of Word Completion and Word Prediction on Typing Rates Using On-Screen Keyboards |journal=Assistive Technology |volume=18 |issue=2 |pages=146–154 |date=2006 |doi=10.1080/10400435.2006.10131913 |url=https://www.researchgate.net/publication/6567291 |pmid=17236473|s2cid=11193172 }} 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.{{cite book |last1=Trnka |first1=K. |last2=Yarrington |first2=J.M. |last3=McCoy |first3=K.F. |chapter=The Effects of Word Prediction on Communication Rate for AAC |chapter-url= |editor= |title=NAACL-Short '07: Human Language Technologies 2007: The Conference of the North American Chapter of the Association for Computational Linguistics |publisher=Association for Computational Linguistics |volume=Companion Volume, Short Papers |date=2007 |citeseerx=10.1.1.363.2416 |pages=173–6 |url=}} 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.{{cite book |last1=Beukelman |first1=D.R. |last2=Mirenda |first2=P. |title=Augmentative and Alternative Communication: Supporting Children and Adults with Complex Communication Needs |publisher=Brookes |location=Baltimore, MD |date=2005 |isbn=9781557666840 |pages=77 |edition=3rd |oclc=254228982}}{{cite book |last1=Witten |first1=I.H. |last2=Darragh |first2=John J. |title=The reactive keyboard |publisher=Cambridge University Press |year=1992 |pages=43–44 |isbn=978-0-521-40375-7 |url=https://books.google.com/books?id=obxCY0wcaTgC&pg=PA44}} 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.{{cite book |first=F. |last=Jelinek |chapter=Self-Organized Language Modeling for Speech Recognition |chapter-url={{GBurl|iDHgboYRzmgC|p=450}} |editor1-last=Waibel |editor1-first=A. |editor2-first=Kai-Fu |editor2-last=Lee |title=Readings in Speech Recognition |publisher=Morgan Kaufmann |date=1990 |isbn=9781558601246 |pages=450 |url=}} 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{{cite journal |first=Jan |last=Oster |title=Communication, defamation and liability of intermediaries |journal=Legal Studies |volume=35 |issue=2 |pages=348–368 |date=2015 |doi=10.1111/lest.12064 |s2cid=143005665 |url=}}{{cite magazine |last1=McCulloch |first1=Gretchen |title=Autocomplete Presents the Best Version of You |url=https://www.wired.com/story/autocomplete-presents-the-best-version-of-you |access-date=11 February 2019 |magazine=Wired |date=11 February 2019}}
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,{{cite web|url=https://phys.org/news/2012-11-chinese-typewriter-text-historian.html |title=Chinese typewriter anticipated predictive text, finds historian |date=12 November 2012 |first=Max |last=Mcclure }} as the typing process involved finding and selecting thousands of logographic characters on a tray,{{cite web|title=How it Works: The Chinese Typewriter|first=Charlie |last=Sorrel |magazine=Wired |url=https://www.wired.com/gadgetlab/2009/02/how-it-works-ch/ |date=February 23, 2009 }} drastically slowing down the word processing speed.{{cite web|url=https://www.newscientist.com/article/mg23231041-000-typecast/ |title=Why predictive text is making you forget how to write |date=14 December 2016 |website=New Scientist |first=Veronique |last=Greenwood }}{{cite web|url=https://www.buzzfeednews.com/article/carolineodonovan/how-this-decades-old-technology-ushered-in-predictive-text |title=How This Decades-Old Technology Ushered In Predictive Text |website=Buzzfeed |date=16 August 2016 |first=Caroline |last=O'Donovan }}
In the 1950s, typists came to rearrange the character layout from the standard dictionary layout to groups of common words and phrases.{{cite web|url=https://foreignpolicy.com/2018/07/16/1-billion-people-100000-characters-1-typewriter-chinese/|title=90,000 Characters on 1 Keyboard|last1=Mullaney|first1=Thomas S.|date=2018-07-16|website=Foreign Policy|access-date=25 April 2020}} 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.{{citation|title=Featured Research – world's first history of the Chinese typewriter|publisher=Humanities at Stanford |url=https://shc.stanford.edu/stanford-humanities-center/news/featured-research-worlds-first-history-chinese-typewriter |date=January 2, 2010}}
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.{{cite web |title=[AHK 1.1]TypingAid v2.22.0 — Word AutoCompletion Utility |date=2010 |publisher=AutoHotkey |url=https://www.autohotkey.com/board/topic/49517-ahk-11typingaid-v2220-word-autocompletion-utility/}}{{cite web |first=Carsten |last=Clasohm |date=2011 |url=http://www.clasohm.com/lmt/en/ |title=LetMeType |access-date=2012-05-09 |url-status=dead |archive-url=https://web.archive.org/web/20120527195205/http://www.clasohm.com/lmt/en/ |archive-date=2012-05-27 }} 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, both a freeware and payware version, works only in certain programs which hook into the intellicomplete server program.{{cite web |url=http://www.intellicomplete.com/ |title=Medical Transcription Software — IntelliComplete |date=2014 |publisher=FlashPeak}} Many Autocomplete programs can also be used to create a Shorthand list. The original 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.
= Shorthand =
Shorthand, also called Autoreplace, 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.{{cn|date=September 2023}}
= 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.{{cn|date=September 2023}}
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 data set. 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.{{cn|date=September 2023}}
Action completion in applications are standalone tools that add autocomplete functionality to existing applications or all existing applications of an OS, based on the current context. The main advantage of Action completion is the ability to predict anticipated actions. The main disadvantage is the need of a data set. Most common use of Action completion is seen in advanced programming language editors and IDEs. But there are also action completion tools that work globally, in parallel, across all applications of the entire PC without (very) hindering the action completion of the respective applications.{{cn|date=September 2023}}
Software integration
= In web browsers =
File:Autocomplete Mozilla Firefox 23 - Wikipedia de search.png]]
In web browsers, autocomplete is done in the address bar (using items from the browser's history) and in text boxes on frequently used pages, such as a search engine's search box. Autocomplete for web addresses is particularly convenient because the full addresses are often long and difficult to type correctly.
== In web forms ==
Autocompletion or "autofill" is frequently found in web browsers, used to fill in web forms automatically. When a user inputs data into a form and subsequently submits it, the web browser will often save the form's contents by default.{{Citation needed|date=April 2022}}
This feature is commonly used to fill in login credentials. However, when a password field is detected, the web browser will typically ask the user for explicit confirmation before saving the password in its password store, often secured with a built-in password manager to allow the use of a "master password" before credentials can be autofilled.{{Cite web|url=https://support.mozilla.org/en-US/kb/password-manager-remember-delete-edit-logins|title=Password Manager - Remember, delete and edit logins and passwords in Firefox|website=Firefox Support}}
Most of the time, such as in Internet Explorer and Google Toolbar, the entries depend on the form field's name, so as to not enter street names in a last name field or vice versa. For this use, proposed names for such form fields, in earlier HTML 5 specifications this RFC is no longer referenced, thus leaving the selection of names up to each browser's implementation.
Certain web browsers such as Opera automatically autofill credit card information and addresses.{{Cite web|url=https://cloudfour.com/thinks/autofill-what-web-devs-should-know-but-dont/|title=Autofill: What web devs should know, but don't|website=Cloud Four|date=19 May 2016 }}
An individual webpage may enable or disable browser autofill by default. This is done in HTML with the autocomplete
attribute in a <form>
element or its corresponding form elements.
It has been shown that the autofill feature of modern browsers can be exploited in a phishing attack with the use of hidden form fields, which allows personal information such as the user's phone number to be collected.{{Cite web|url=https://www.bleepingcomputer.com/news/security/browser-autofill-profiles-can-be-abused-for-phishing-attacks/|title=Browser Autofill Profiles Can Be Abused for Phishing Attacks|website=Bleeping Computer}}
= In e-mail programs =
In e-mail programs autocomplete is typically used to fill in the e-mail addresses of the intended recipients. Generally, there are a small number of frequently used e-mail addresses, hence it is relatively easy to use autocomplete to select among them. Like web addresses, e-mail addresses are often long, hence typing them completely is inconvenient.{{cn|date=September 2023}}
For instance, Microsoft Outlook Express will find addresses based on the name that is used in the address book. Google's Gmail will find addresses by any string that occurs in the address or stored name.{{cn|date=September 2023}}
= In search engines =
In search engines, autocomplete user interface features provide users with suggested queries or results as they type their query in the search box. This is also commonly called autosuggest or incremental search. This type of search often relies on matching algorithms that forgive entry errors such as phonetic Soundex algorithms or the language independent Levenshtein algorithm. The challenge remains to search large indices or popular query lists in under a few milliseconds so that the user sees results pop up while typing.
Autocomplete can have an adverse effect on individuals and businesses when negative search terms are suggested when a search takes place. Autocomplete has now become a part of reputation management as companies linked to negative search terms such as scam, complaints and fraud seek to alter the results. Google in particular have listed some of the aspects that affect how their algorithm works, but this is an area that is open to manipulation.{{cite web|last1=Davids|first1=Neil|title=Changing Autocomplete Search Suggestions|url=http://www.reputationstation.com.au/changing-autocomplete-suggested-terms-in-google-searches/|website=Reputation Station|access-date=19 June 2015|date=2015-06-03}}
= In source code editors =
{{Main|Code completion}}
File:Qt Creator 5.0-Autocomplete.png 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]]
Autocompletion of source code is also known as code completion. In a source code editor, autocomplete is greatly simplified by the regular structure of the programming language. There are usually only a limited number of words meaningful in the current context or namespace, such as names of variables and functions. An example of code completion is Microsoft's IntelliSense design. It involves showing a pop-up list of possible completions for the current input prefix to allow the user to choose the right one. This is particularly useful in object-oriented programming because often the programmer will not know exactly what members a particular class has. Therefore, autocomplete then serves as a form of convenient documentation as well as an input method.
Another beneficial feature of autocomplete for source code is that it encourages the programmer to use longer, more descriptive variable names, hence making the source code more readable. Typing large words which may contain camel case like numberOfWordsPerParagraph
can be difficult, but autocomplete allows a programmer to complete typing the word using a fraction of the keystrokes.
= In database query tools =
Autocompletion in database query tools allows the user to autocomplete the table names in an SQL statement and column names of the tables referenced in the SQL statement. As text is typed into the editor, the context of the cursor within the SQL statement provides an indication of whether the user needs a table completion or a table column completion. The table completion provides a list of tables available in the database server the user is connected to. The column completion provides a list of columns for only tables referenced in the SQL statement. SQL Server Management Studio provides autocomplete in query tools.{{citation needed|date=May 2013}}
= In word processors =
In many word processing programs, autocompletion decreases the amount of time spent typing repetitive words and phrases. The source material for autocompletion is either gathered from the rest of the current document or from a list of common words defined by the user. Currently Apache OpenOffice, Calligra Suite, KOffice, LibreOffice and Microsoft Office include support for this kind of autocompletion, as do advanced text editors such as Emacs and Vim.
- Apache OpenOffice Writer and LibreOffice Writer have a working word completion program that proposes words previously typed in the text, rather than from the whole dictionary
- Microsoft Excel spreadsheet application has a working word completion program that proposes words previously typed in upper cells
= In command-line interpreters =
{{main|Command-line completion}}
Image:Powershell Intellisense example for the Get-Process cmdlet.gif.]]
In a command-line interpreter, such as Unix's sh or bash, or Windows's cmd.exe or PowerShell, or in similar command line interfaces, autocomplete of command names and file names may be accomplished by keeping track of all the possible names of things the user may access. Here autocomplete is usually done by pressing the Tab key key after typing the first several letters of the word. For example, if the only file in the current directory that starts with x is xLongFileName, the user may prefer to type x and autocomplete to the complete name. If there were another file name or command starting with x in the same scope, the user would type more letters or press the Tab key repeatedly to select the appropriate text.
Efficiency
= Research =
Although research has shown that word prediction software does decrease the number of keystrokes needed and improves the written productivity of children with disabilities, there are mixed results as to whether or not word prediction actually increases speed of output.{{cite book |last1=Dabbagh |first1=H.H. |last2=Damper |first2=R.I. |chapter=Average Selection Length and Time as Predictors of Communication Rate |id=80177b42-e668-4ed5-a256-49b9440bdfa5 |chapter-url= |editor1-last=Brubaker|editor1-first=C.|editor2-last=Hobson|editor2-first=D.A. |title=Technology, a Bridge to Independence: Proceedings of the Eighth Annual Conference on Rehabilitation Technology, Memphis, Tennessee, June 24–28th, 1985 |publisher=Rehabilitation Engineering Society of North America |date=1985 |isbn= |oclc=15055289 |pages=404–6 |url=}}{{cite book |last1=Goodenough-Trepagnier |first1=C. |last2=Rosen |first2=M.J. |chapter=Predictive Assessment for Communication Aid Prescription: Motor-Determined Maximum Communication Rate |chapter-url= |editor-first=L.E. |editor-last=Bernstein |title=The vocally impaired: Clinical Practice and Research |publisher=Grune & Stratton |location=Philadelphia |date=1988 |isbn=9780808919087 |oclc=567938402 |pages=165–185 |url=}} as cited in {{harvnb|Tam|Wells|2009}} It is thought that the reason why word prediction does not always increase the rate of text entry is because of the increased cognitive load and requirement to move eye gaze from the keyboard to the monitor.
In order to reduce this cognitive load, parameters such as reducing the list to five likely words, and having a vertical layout of those words may be used. The vertical layout is meant to keep head and eye movements to a minimum, and also gives additional visual cues because the word length becomes apparent.{{cite journal |last1=Swiffin |first1=A.L. |last2=Arnott |first2=J.L. |last3=Pickering |first3=J.A. |last4=Newell |first4=A.F. |title=Adaptive and predictive techniques in a communication prosthesis |journal=Augmentative and Alternative Communication |volume=3 |issue=4 |pages=181–191 |date=1987 |doi=10.1080/07434618712331274499 |url=}} as cited in {{harvnb|Tam|Wells|2009}} Although many software developers believe that if the word prediction list follows the cursor, that this will reduce eye movements, in a study of children with spina bifida by Tam, Reid, O'Keefe & Nauman (2002) it was shown that typing was more accurate, and that the children also preferred when the list appeared at the bottom edge of the screen, at the midline. Several studies have found that word prediction performance and satisfaction increases when the word list is closer to the keyboard, because of the decreased amount of eye-movements needed.{{cite journal |last1=Tam |first1=C. |last2=Reid |first2=D. |last3=Naumann |first3=S. |last4=O'Keefe |first4=B. |title=Perceived benefits of word prediction intervention on written productivity in children with spina bifida and hydrocephalus |journal=Occupational Therapy International |volume=9 |issue= 3|pages=237–255 |date=2002 |doi=10.1002/oti.167 |pmid=12374999|doi-access=free }} as cited in {{harvnb|Tam|Wells|2009}}.
Software with word prediction is produced by multiple manufacturers. The software can be bought as an add-on to common programs such as Microsoft Word (for example, WordQ+SpeakQ, Typing Assistant,{{cite web |author=Sumit Software |title=Typing Assistant – New generation of word prediction software |date=2010 |publisher=PRLog: Press Release Distribution |url=https://www.prlog.org/10519217-typing-assistant-new-generation-of-word-prediction-software.html}} Co:Writer,{{citation needed|date=May 2013}} Wivik,{{citation needed|date=May 2013}} Ghotit Dyslexia),{{citation needed|date=May 2013}} or as one of many features on an AAC device (PRC's Pathfinder,{{citation needed|date=May 2013}} Dynavox Systems,{{citation needed|date=May 2013}} Saltillo's ChatPC products{{citation needed|date=May 2013}}). Some well known programs: Intellicomplete,{{citation needed|date=May 2013}} which is available in both a freeware and a payware version, but works only with programs which are made to work with it. Letmetype{{citation needed|date=May 2013}} and Typingaid{{citation needed|date=May 2013}} are both freeware programs which work in any text editor.
An early version of autocompletion was described in 1967 by H. Christopher Longuet-Higgins in his Computer-Assisted Typewriter (CAT),{{cite book |last1=Longuet-Higgins |first1=H.C. |last2=Ortony |first2=A. |chapter=The Adaptive Memorization of Sequences |chapter-url=https://archive.org/details/mi3_20200519/page/310/mode/2up |editor= |title=Machine Intelligence 3, Proceedings of the Third Annual Machine Intelligence Workshop, University of Edinburgh, September 1967 |publisher=Edinburgh University Press |location= |date=1968 |isbn= |pages=311–322 |url=}} "such words as 'BEGIN' or 'PROCEDURE' or identifiers introduced by the programmer, would be automatically completed by the CAT after the programmer had typed only one or two symbols."
See also
{{Commons category|Software autocompletion}}
- {{annotated link|Autocorrection}}, automatic correction of misspelled words.
- {{annotated link|Autofill}}
- {{annotated link|Combo box}}
- {{annotated link|Context-sensitive user interface}}
- {{annotated link|GitHub Copilot}}
- {{annotated link|Google Feud}}
- {{annotated link|Incremental search}}
- {{annotated link|OpenSearch}}
- {{annotated link|Predictive text}}
- {{annotated link|Qwerty effect}}
- {{annotated link|Search suggest drop-down list}}
- {{annotated link|Snippet (programming)|Snippet}}
References
{{Reflist|35em}}
External links
{{Wiktionary}}
- [http://justaddwater.dk/2006/01/26/live-search-explained/ Live Search Explained]—Examples and explanations of working web examples plus a discussion of the usability benefits compared to traditional search.
- [http://www.googlefeud.com/ Google Feud]—The first and most popular of many games built using autocomplete data, which won a Webby Award for "Best Game" in 2016.
- [http://highscalability.com/blog/2016/12/13/a-scalable-alternative-to-restful-communication-mimicking-go.html/ Mimicking Google's Search Autocomplete With a Single MigratoryData Server]—Optimize search autocomplete using persistent WebSocket connections to achieve both low-latency search experience and bandwidth improvement.