floof.org

Simon Tatham • mastodon (AP)

I often find typos cognitively fascinating.

Some typos are just last-moment motor errors: "aimed for this key and hit the one next to it". Those are easy to understand. But others reveal much more interesting things about the mental process of driving your fingers on the keyboard, or even composing words.

I once aimed to type 'programs', and unexpectedly 'rpgroasm' came out. All the left-hand letters appear in the correct order, and so do all the right-hand letters, but they're interleaved in a spectacularly wrong way. That suggested that one part of my brain had sent an independent set of instructions to a subthing controlling each hand, and everything worked fine except the synchronisation between the two subthings.

There's another class of typo which I think of as 'brain got ahead of fingers': you're typing one word, but already thinking about a word that will come after it, and there's a crossover and you end up mixing up the two. Like 'bit bisect' in place of 'git bisect' – you're already planning the b, and it comes out of your fingers prematurely.

(Appropriately, as I typed _that_ sentence, 'in place' came out as 'pl inace', wow.)

Even the 'boring' motor errors have something cognitively interesting about them, just on the reading rather than writing side. We see 'adjacent letter on the keyboard' typos a lot, so our brains get good at correcting them. Sometimes _over_-correcting, so that you imagine a typo where none existed. When a sentence is a bit unexpected in context, I've been known to consider the possibility of a typo before figuring out how the sentence as originally spelled makes sense.

The best ones of those are when I hadn't even _realised_ the two words were a typo apart. I misread 'auction' as 'suction' once and it was a total surprise!

I wonder if there's any serious scholarly study of this kind of thing.

This entry was edited (16 hours ago)
1 1
Taneb • pleroma (AP)
something I've done a lot, even when writing by hand, is mashing two words together, most frequently "withe" instead of "with the". I think this comes under your third category?
Simon Tatham • mastodon (AP)
@Taneb oh yes, that's a familiar 'word', now you show it. I don't think that's one of _my_ most common typos, but it's definitely one I've seen enough to recognise it.
Mae • akkoma (AP)

sometimes I will typo words into different homophones, happens more often for less common words. I would definitely clarify this as a typo, but it's a really odd example, where my brain knows the word, knows how it's spelled, but will hand it off to some other part of my brain, which transcribes it's thoughts and will somehow will end up wrong

I dunno its a weird one, it doesn't happen too often

Simon Tatham • mastodon (AP)
@Mae that's not a thing that happens to me at all, and that's _also_ fascinating, because it shows that our processes of typing are quite different from each other!
@Mae
Sometimes I start typing a word but finish up typing an unrelated word, suggesting my motor cortex is doing some serious next-keystroke prediction. Also 90% of the time when I want to type python, I add a g at the end, though I very rarely type the word thong.
Peter Cock • mastodon (AP)
And then there’s the fact some of us have moved away from Qwerty, meaning our wrong-finger or missed-key typos and even hands-out-of-sync typos are at first glance utterly strange. So even focussing on English users, the #KeyboardLayout would be a confounding factor.
Simon Tatham • mastodon (AP)
@pjacock yes, I've had that thought too. I don't know Dvorak (for example) well enough to recognise its characteristic typos, but maybe someone who does would be able to detect another Dvorak user from a page of uncorrected text they'd written?
Peter Cock • mastodon (AP)

they probably could. Of course nowadays there are at least hundreds of niche layouts (in part building on increasingly sophisticated computer analysis of growing corpuses of text - see eg https://layouts.wiki/guides/start/intro/ which has loads of examples).

I guess this means learning an alternative keyboard layout is actually a privacy issue - typo-fingerprints being another way to identify you just from your writing?

Simon Tatham • mastodon (AP)
@pjacock less so if you can proofread competently. But that seems rare enough that maybe it's also an identifying mark :-)
Gerard • mastodon (AP)
@pjacock I can't think of an example, but I would expect the purpose of one's typing would probably also play a role in the types of error one produces.
I never really learned to touch-type, and though I can type without looking at the keyboard, I think the pattern of my hand movements is not the same as a trained typist would use.
A significant reason for that is that most of my keyboard work has been programming, which is heavily weighted towards single words and symbols, rather than sentences, and short bursts of editing rather than just typing out contiguous 'tracts'.
Simon Tatham • mastodon (AP)

yes, I've always thought formal touch-typing training is better suited to people typing English text than to programming.

I was never formally trained at all. I just typed, mostly on my own time, since an early age, and my motor cortex gradually optimised my actions without me really paying attention, until I could hit >100wpm on a good day. But it's noticeable that the style I evolved is not the usual touch-typing style with a fixed posture on the home keys. It's far more flexible – I can adapt to having a few fingers out of action (e.g. holding a pen or a snack) almost without having to think about it, just using whatever fingers I have for whatever they need to do. And I never use Caps Lock, because I find it easier to hold down Shift with one finger and just use the other 9 however seems sensible. And often I find my left hand covers _more_ than half of the letter keys, while my right hand is free to go for punctuation symbols and the arrow keys (or all the way over to the mouse or trackball), since – as you say – programming is much more heavily weighted towards both weird characters and editing your existing code.

Another noticeable thing about my posture is that my wrists don't bend outwards in the way they'd have to to settle my fingers on the home keys. My hands land on the keyboard at an angle, and just deal with it. Perhaps this is good for getting less RSI!

This entry was edited (14 hours ago)
Jack C. • mastodon (AP)
@GerardThornley @pjacock also never formally learned to touch-type, and I think the biggest artifact of that that I notice is I will never use right shift under any circumstance. It might as well not exist.
Simon Tatham • mastodon (AP)
@GandalfDG @GerardThornley @pjacock me too, although in my case that could easily be early influence from the ZX Spectrum, on which the two shift keys were semantically different!
Gerard • mastodon (AP)

@pjacock yes, I too use my hands much more flexibly in terms of what finger I use for a given key, sometimes letting either hand cross over to "the other side" if that works best.
It's possible this flexibility increases the chance of 'mis-strikes' as my sense of my hand position drifts over time, but if ever lose a finger I ought to still be okay for typing.

I do use both shift keys, but still often use the same side shift as the other key I'm pressing. That's one habit I've actively tried to stop because I'm sure the way I use the side of my little finger to hold shift can't be good for it.

Leeloo • mastodon (AP)

@GerardThornley @pjacock
I was taught touch typing - twice even, first on an electric typewriter, then on a terminal. I use a Wacom digitizer rather than a mouse, and I often catch myself typing with the pen between my fingers. Though I never paid attention to whether different fingers take over or I've found a way to hold it that allows me to use all ten fingers.

The wrist bending thing I never understood. Fingers have different lengths, with the pinky being the shortest, so to hit the keys optimally, the hands need to be at an inwards angle. For that reason I've never liked Microsoft Natural Keyboards, I need to push my elbows way out to get my hands at the optimal angle.

This entry was edited (13 hours ago)
Simon Tatham • mastodon (AP)
@leeloo @GerardThornley @pjacock yes, I can't use split keyboards at all, because I'm too used to being able to change my mind about which hand is for which keys. Not even the kind that duplicates one of the letter keys (B, I think?) on both sides because it's the one people are most often indecisive about.
Slash909uk • mastodon (AP)

oh yes I frequently find I have one hand ahead of the other. I call this 'Quake Finger' as I attribute it to playing a lot of FPS games which trained the twitch reaction in my trigger hand to be 'leading' my thought patterns more than the other hand.

I have to deliberately type slower to avoid it πŸ€ͺ

Simon Tatham • mastodon (AP)

@Slash909uk oh, wow! I hadn't even begun to consider the influence of non-typing keyboard activities like gaming.

I don't _think_ I have any influences like that – I don't normally play twitchy games on a PC keyboard. (Console controllers more usually.)

But that does remind me that _something_ has happened to my keyboard-related motor control since I was a child. I used to play games on a ZX Spectrum, where if you didn't have a joystick the usual keyboard layout was QAOP for directions and M for fire. Nowadays, if I try to use anything like that layout, I just can't – having the fire control on the same hand as two of the direction keys doesn't work for me, because I can't hammer my thumb for continuous fire and also use two fingers of the same hand for 'steer carefully through these rocks' without neural crossover causing mistakes in both of those actions.

Instead I have to allocate a whole hand to the firing control now, and use a reverse-T of arrow keys on the other hand for movement (whether WASD or the actual arrows). That's objectively less good, it seems to me, because three fingers between four arrow keys isn't enough, and sometimes I die because I can't move my finger between ↑ and ↓ quickly enough. But my motor cortex won't cope with anything else any more!

then there are typos that stick: "tyop" as a humorous version of "typo", or "filk", which was originally "folk" but was referring to music sung by a community of science fiction and fantasy fans... which has progressed from just folk to rock, chamber, jazz, rap, and beat poetry, songs of computers and space and vampires and ghosts and pirate busting ghost space ships (that one won an award)... I just happen to be in-hotel for the great grandmommy of all filk conventions at this very moment.
Gerard • mastodon (AP)
I remember learning that when typing at speed, the order in which fingers start moving is not the same as the order of the letters, because some keys take longer to reach than others. When the dynamic aspect of "my hand previously moved left for the shift key, so will have to move a bit further to move to reach the T key" is added, it seems almost surprising we can type with as few errors as we can.
Dec [{(:no_ai:)}] • mastodon (AP)
A former cow-orker of mine wrote a Perl script that simulated random QWERTY "off by one" keyboard errors. Piping any text through it made it look like it was typed in a hurry.
Simon Tatham • mastodon (AP)

@dec23k I wrote one of those at university, as part of a prank in which we made a chatbot basically implementing the good old ELIZA algorithm, and sent it on to a bulletin board to wreak havoc. We made it delay a bit before replying, and insert random typos, in the hope that at least _some_ people would be fooled for long enough to be amusing.

Even so, we weren't very subtle about it – we called the account 'eliza'. But that meant it had a female name, in an online chat room, in the mid 1990s, and someone was fooled enough to spend 15 minutes trying to chat it up, in spite of everyone else having clearly figured it out, and _trying_ to tell him!

fritzoids • mastodon (AP)

your second example is the same thing as what happens when your brain is faster than your mouth: swapping letters, smooshing words together ("great" + "cool" = "grool"), skipping words (more noticeable in written form than when spoken).

My hypothesis is that the typos you describe are more likely when we are tired, excited, or distracted; basically when our brain cannot allocate enough power to the task.

Simon Tatham • mastodon (AP)

@fritzoids in speech, one of the really interesting ones to me is the spoonerism. It's easy to see how the _first_ half happens: as you say, you're speaking word #1 while already thinking about word #2 and there's a crossover, so you turn (for example) "test words" into "west ...". But this idea doesn't explain the second half, where the part that went missing from word #1 is hauled back out of some kind of buffer and belatedly emitted. It would seem more natural to me if you _stop_ after saying the mangled first word, suddenly realising you've gone wrong somewhere.

Last summer, at home with my windows open, I overheard an angry mother in the street outside yelling at her child "Go brush your hair and wash your ..." and then she stopped in confusion, because she'd meant to say "wash your hair and brush your teeth", and realised "wash your teeth" didn't make any sense. That's what I _expect_. Continuing on to say the nonsensical second half without even realising, that's more interesting!

Paul Barnfather • mastodon (AP)
my number one typo problem is an inability to release the shift key before the next letter when attempting to capitalise the start of a word. VEry annoying!
Simon Tatham • mastodon (AP)

@clanger9 for some reason that one happens to me most often in my own name! I'm constantly signing off emails as SImon.

But I suppose that since my best known project also changes the case of the second letter of its name, that's only appropriate!

Heribert SchΓΌtz • mastodon (AP)
A claas of typos hapeening to me ocaasionalyy: In a word with a duplicate leeter I duplicate the wrong one.
Simon Tatham • mastodon (AP)
@hcschuetz I'm pretty sure on at least one occasion I've apologised for absence because I was attending someone's weeding.
Magnus Hovland Hoff • mastodon (AP)
I occasionally make semantic typos. I remember back when I was still using Mercurial, I would consciously think "it's git in this directory, not hg" and when typing "git pull" or whatever, it would still come out as "hg pull"..!
Simon Tatham • mastodon (AP)

@maghoff my very favourite one of those is this sequence of shell operations, which I _still_ can't stop doing even though it's such a familiar mistake:

git stash
[do some other thing in this git work tree]
^Y

When I want to save a half-written command line in order to run another command first (e.g. I've suddenly realised I need to cd into the right directory before running the complicated thing I was half way through writing), I'll press ^A^K in bash to cut the whole line into bash's paste buffer; then do my other command; then press ^Y to paste it back on to the next command line and carry on typing.

So ^A^K [...] ^Y is a finger habit for "put this half-done thing aside, and resume it later after doing something else first".

So is "git stash" [...] "git stash pop", in a completely different context.

And I often slip between the two, pressing ^Y when I should have typed "git stash pop", because I made a cognitive error at a higher level than the usual kind of typo, and forget _which_ kind of "resume the half-done thing" I was meant to be doing!

Curiously, never the other way around. ^A^K [...] git stash pop is unheard of. Even when I'm half asleep I know _that's_ too silly.

ploum • mastodon (AP)

: in French, we have a lot of "homonyms": completely different words, different meaning, different spelling but same pronunciation.

When proofreading myself, I often found that I replaced a word by its homonym, even if the spelling is more complex.

Which means that when I touchtype, I do it based on internal dictation to myself and that I automatically "hear" the word before transcribing them.

Which is weird as I’m a very visual person and I "see" words in my heads when writing

@ploum

Sorry for the nitpicking: those are homophones. Homonyms have identical spellings.

@simontatham

Simon Tatham • mastodon (AP)
@aaribaud @ploum elsewhere in this thread we've just been discussing the kind of typo where your fingers autocomplete some other word that starts the same as the one you meant to type, so be forgiving!
dasgrueneblatt • mastodon (AP)

I'm sure there is research, though unfortunately I cannot point you too anything.

When I was in high school, a language teacher gave me a book about human language formation. I was fascinated by a chapter that explained how mistakes can be used to uncover how a system works. The book listed various types of errors that happen with sentence formation, and how they co-occur, and what that might mean about how and in which order the brain builds sentences. There's other imaginable types of errors and combinations that don't happen. There was also something about how small children who don't speak "correctly" yet form sentences, and people who for example have had a stroke.

The part where you find that each hand gets its separate set of letters to type, and that they normally would then be synchronized, but sometimes that doesn't work out, is exactly the same thing.

Using errors to learn about what's going on in the black box is a method of hacking and reverse engineering, but I didn't know that in high school.

Simon Tatham • mastodon (AP)
@dasgrueneblatt another method of reverse engineering is fault _injection_, where you provoke an error on purpose to learn about what's inside the box. Perhaps there's more to be learned by deliberately distracting someone who's in the middle of typing something complicated :-)
Jim Salter • mastodon (AP)
or, alternately, there is the output from mobile devices with on screen keyboards. And while the error rate spikes up 500% or more, it only tells you how much attention the human was paying to how badly their virtual keyboard fscked them while they were "typing"... 😒
Simon Tatham • mastodon (AP)
@jimsalter I think typos on mobile devices are also often of the form "autocucumber replaced an entire worm with a plausible but wrong alternation" and tell you less about the cognition of the human than they do about the failure modes of the software!
Simon Tatham • mastodon (AP)
@jimsalter e.g. my friends all had a good laugh recently at a gardener talking about "berating their lawn".
jer • mastodon (AP)
auction suction duction ...
Simon Tatham • mastodon (AP)
@jerrej the other excellent error involving 'suction' is the one where it turns out to be an old-fashioned predictive-text homograph of 'station' – both of them are typed by the number key sequence 7828466. Someone texted a friend saying "I'll meet you at Liverpool Street Suction" without spotting the mistake before sending.
@jer
jer • mastodon (AP)
You were supposed to think the follow-up at the ellipsis out loud. :wink:
Simon Tatham • mastodon (AP)

RE: https://hachyderm.io/@simontatham/117529635474475381

@jerrej ah, like my own example spoonerism elsewhere in the thread!

(That was unintended, but once I noticed it, I decided it should stay.)


@fritzoids in speech, one of the really interesting ones to me is the spoonerism. It's easy to see how the _first_ half happens: as you say, you're speaking word #1 while already thinking about word #2 and there's a crossover, so you turn (for example) "test words" into "west ...". But this idea doesn't explain the second half, where the part that went missing from word #1 is hauled back out of some kind of buffer and belatedly emitted. It would seem more natural to me if you _stop_ after saying the mangled first word, suddenly realising you've gone wrong somewhere.

Last summer, at home with my windows open, I overheard an angry mother in the street outside yelling at her child "Go brush your hair and wash your ..." and then she stopped in confusion, because she'd meant to say "wash your hair and brush your teeth", and realised "wash your teeth" didn't make any sense. That's what I _expect_. Continuing on to say the nonsensical second half without even realising, that's more interesting!


@jer