Swap
← Research library

Keyboard recognition · November 25, 2026

Typing “alot” and getting “a lot”

Some pairs of words are typed as one so often that a keyboard should write them apart. 44 such pairs are now dictionary entries of their own. A survey of 30,000 common words checked what that costs other words: one word, “allot”.

The request

The request was short: account for words like “a lot”. Swiping “alot” should be corrected by adding the space.

Before the change a swipe over A, L, O and T wrote “allot”. Tapped out and ended with Space, the same letters were written “alto” by the development dictionary and “lot” by the dictionary of the App Store version.

Left: “alot” typed as one word is written as two. Right: the plus button offers another word in their place. Folded iPhone Duo in the simulator, development build.
Left: “alot” typed as one word is written as two. Right: the plus button offers another word in their place. Folded iPhone Duo in the simulator, development build. View full size

How it works

Each pair is one dictionary entry. It is filed under the keys of its run-together form and written with its space, so a swipe or a run of taps finds it the way it finds any word.

The entry is weighed as its words in a row: the first after whatever was written before, and the second after the first, exactly as the dictionary weighs any two words. A small fixed amount is taken off for writing them as one.

A swipe counts a doubled letter as one visit to its key. That makes “allot” and “a lot” the same swipe, and the far more common pair now wins it.

The same rule could have hurt in the other direction. Run together, “no one” is “noone”, whose key visits are those of “none”. There the single word is kept clearly ahead. A swipe still writes “none”, and only the taps, which are five and not four, write “no one”.

Taps that are letter for letter a pair write that pair and not a likelier one a letter away: “atlast” is “at last”, not “at least”.

Top: the keys of “a lot” are also those of “allot”. Bottom: “no way” was left out, because a swipe of “Norway” passes the same keys in the same order.
Top: the keys of “a lot” are also those of “allot”. Bottom: “no way” was left out, because a swipe of “Norway” passes the same keys in the same order. View full size

Which pairs, and which were left out

There are 44: a lot, a little, a bit, a few, a bunch, a couple, as well, as usual, at least, at all, at first, at last, at once, each other, even though, every time, in fact, in front, in case, in spite, in order, in between, high school, ice cream, no one, of course, thank you, up to, kind of, sort of, on top, never mind, more so, good morning, good afternoon, good evening, good luck, good job, right now, for sure, by far, out of, lots of and oh well.

They were chosen by hand from the usual lists of one-word-or-two mistakes. Whether these are the pairs people run together most has not been measured.

Four candidates were left out on purpose. Their keys are also the path of an everyday word, and they would have taken that word’s swipe.

A pair is also left alone where its run-together form is already a word, such as “anymore” and “awhile”, and where the person has saved that form as a word of their own: a saved “alot” stays “alot”. Fields that do not hold prose, such as an address or a user name, are not touched.

Left outA swipe of this word passes the same keys
no wayNorway
so farsoar
all ofaloof
as longalong

What it costs other words

The risk in entries like these is that they take swipes from ordinary words. So the 30,000 most common words of each dictionary were each swiped twice, once on the keys and once a fifth of a key off, and tapped out once, with the pairs switched on and with them switched off.

With the development dictionary no word was written differently. With the App Store dictionary one was: “allot” became “a lot”. It is the one word that loses its swipe. It stays among the suggestions, and the plus button puts it back.

In the other direction, ten pairs were each swiped after 40 different preceding words with both dictionaries. The pair was written 799 times of 800. The exception was “alot” after “we” with the development dictionary, which wrote “at” and offered “a lot”.

The swipes in both measurements were drawn by a program along the keys. They are not people’s swipes. On the project’s recorded gestures from people, all 102 recognition measurements were unchanged.

MeasurementDevelopment dictionaryApp Store dictionary
Common words written differently, of 30,00001 (“allot”)
Pair written when swiped in a sentence, of 400399400

Afterwards: Delete and the plus button

Delete after the swipe takes both words away, as it takes away any swiped word. Delete after taps that were put right brings the taps back, and they then stay as tapped.

For the plus button the two words are the word the keyboard wrote for that gesture. After a swipe the empty shelf names them, and a word whose letters the swipe passes over is offered in their place: Replace “a lot” with “allot”. That swipe then counts as the word’s first example.

After taps the shelf opens with the letters that were tapped and offers them instead. Saved, “alot” is the person’s own word from then on.

Swipes that still write the nearer word

Four pairs do not win their swipe, because an everyday word lies nearer on the same path. The pair is then offered in the suggestions. Tapped out, all four are written as the pair.

Swiped asWrittenWith which dictionary
abitaboutboth
inspiteinspireboth
ohwellowlApp Store
goodjobgordondevelopment

What is shown and what is not

Shown on a Mac and in the iPhone simulator: eight unit tests, and 22 checks inside the app with a recognizer that answers late as well as at once. With the pairs switched off, 11 of the 22 checks fail, which shows that the checks can fail.

Not shown: anything on a phone, or with people. The build has been on the project’s test phone since November 25, and nobody has reported on it from there yet.

There is no switch to turn the pairs off. A person who wants “alot” as a word saves it with the plus button.

None of it is in Swap 1.0 (4), the version on the App Store when this was written.

Sources

  • Swap project study — Words that belong apart, typed as one (November 25, 2026)

← Browse all research