![]() Other typos involve gaining or losing characters and are thus destructive, so we may not know what was originally there. Transposition typos are of that sort and are theoretically reversible. Some of our typos are non-destructive, meaning nothing is lost. The plugin was built with a seedable deterministic PRNG, so for a given piece of copy, PRNG seed, and configuration options (frequency and velocity factors) we can reproduce the same typo output. ![]() ![]() While the plugin has received a lot of internal praise eliminating the Adam Factor in our day-to-day search for jumbled communications, there is an inevitable question after the giggles subside: can it do it in reverse - can it undo typos? In terms of appearances and lucidity of the output text, this is totally unnecessary - absurd really - but I’m of the opinion that a good gag should be thoroughly overwrought. With low velocity, if you’re trying to type an “a”, you may type an “s”, but with high velocity, you might reach as far as “p”. We use this physical layout in concert with velocity to determine whether Adam could plausibly typo a particular key. Internally, the plugin contains a keyboard map (currently QWERTY, though you could easily include a Dvorak variant, or anything else you can cook up). While superficially, velocity doesn’t change things in an obvious way (we still have the same number of typos), it’s a determinant for whether or not a specific typo can be made, based on a rough physical plausibility. Velocity, however, represents the gusto with which Adam is typing and thus generating typos. Frequency + Velocityįrequency is simply an indicator of how prevalent typos are, expressed as typos per word. When you apply the plugin to part of the DOM, these inputs all feed into the two fundamental factors for typo generation: frequency and velocity. We approximate Adam’s working state via a number of optional parameters such as how much coffee Adam’s had, how many Five Hour Energies he’s consumed, and how many employees are currently blocked. The basis of the typo generator are its configuration options. I made the decision to over-engineer this supererogatory tool: different types of typos, a basis in physical plausibility, and of course, zany configuration options. It started as a fairly naive character swapper in JSFiddle, but when I got to the 80th revision, it seemed like it had bigger ambitions than I’d originally planned. What we need here is a pluginĪfter mulling it over for a while, I set about creating a plugin to easily insert Adam-style typos into copy. Being unsynchronized, these frequently produce interesting and indecipherable output. My working theory is that when Adam’s communicating with instant messaging, there are two threads running in his head: one emits glyphs to form words, the other manages whitespace. Earthling’s CEO Adam Simcock keeps a lot of balls in the air but multitasking is hard and I think sometimes a lack of thread synchronization causes problems.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |