10
$\begingroup$

The ubiquitous QWERTY keyboard layout works well enough for ten-finger touch typing (though Dvorak proponents may disagree).

But what if you're typing a text message on a mobile phone? Those fiddly little non-tactile touchscreen "keys" are impossible to touch-type on, so I have to revert to the one-finger "hunt and peck" method, which is slow. I wonder if an alternative keyboard layout would make things easier.

So, my challenge here is to design a keyboard layout (two-dimensional arrangement of the 26 letters of the English alphabet) that maximizes the frequency for which adjacent letters in English words are on adjacent keys of the keyboard. So, frequent letter pairs, like T-H or A-N, should be next to each other.

I will post at least one of my own answers, but will not give myself the checkmark.

Defining “adjacent”

Letter-pair frequency

This is calculated from my personal e-book collection.

Since “adjacent” is a symmetric operator, there is no point in distinguishing, for example, the TH in “THe” and “THat” and “wiTH” from the HT in “brougHT” and “daugHTer”. So, I'm combining their stats here. Letters within a pair are arbitrarily listed in alphabetical order.

Double letters (e.g., LL or EE), which would have no impact on optimizing the keyboard (since you just hit the same key twice in a row), are excluded from the calculation.

All figures are rounded to the nearest 1/100 of a percent, and letter pairs whose frequency would round down to zero are excluded from this list. Thus, only 203 of the 325 possible letter pairs are represented.

The score for a keyboard layout is the sum of the percentages below for letter pairs that are on adjacent keys on your keyboard. (But remember that diagonally-adjacent keys on a rectangular grid only get half-credit for being adjacent.)

Please include your score in your answer.

  • EH = 5.27%
  • HT = 5.07%
  • ER = 3.43%
  • AN = 3.12%
  • AH = 2.35%
  • DN = 2.33%
  • FO = 2.24%
  • ES = 2.19%
  • IN = 2.08%
  • OR = 2.03%
  • EN = 2.00%
  • OU = 1.99%
  • NO = 1.96%
  • AL = 1.70%
  • OT = 1.70%
  • DE = 1.68%
  • AS = 1.67%
  • IT = 1.66%
  • EM = 1.64%
  • AR = 1.57%
  • AT = 1.55%
  • EL = 1.42%
  • IS = 1.42%
  • HS = 1.41%
  • EV = 1.28%
  • OY = 1.27%
  • ET = 1.19%
  • IL = 1.13%
  • HI = 1.11%
  • AM = 1.07%
  • MO = 1.06%
  • IR = 1.00%
  • GN = 0.99%
  • AE = 0.98%
  • ST = 0.97%
  • RU = 0.90%
  • BE = 0.84%
  • AC = 0.77%
  • IW = 0.77%
  • HO = 0.72%
  • DI = 0.71%
  • NT = 0.71%
  • OS = 0.71%
  • AD = 0.63%
  • IM = 0.63%
  • CE = 0.62%
  • CO = 0.61%
  • OW = 0.59%
  • LO = 0.57%
  • AI = 0.54%
  • DO = 0.54%
  • EP = 0.53%
  • RS = 0.53%
  • DR = 0.52%
  • EY = 0.52%
  • HW = 0.50%
  • EI = 0.49%
  • EF = 0.46%
  • RT = 0.46%
  • OP = 0.45%
  • SU = 0.45%
  • TU = 0.45%
  • AW = 0.44%
  • FI = 0.44%
  • CH = 0.43%
  • AV = 0.42%
  • DL = 0.42%
  • EK = 0.42%
  • AY = 0.41%
  • EW = 0.39%
  • NU = 0.39%
  • IO = 0.38%
  • GO = 0.37%
  • IV = 0.37%
  • NS = 0.37%
  • FR = 0.36%
  • AB = 0.35%
  • EG = 0.35%
  • AF = 0.30%
  • AG = 0.30%
  • LP = 0.30%
  • CI = 0.29%
  • GI = 0.29%
  • PU = 0.27%
  • GH = 0.26%
  • BU = 0.25%
  • OV = 0.25%
  • BR = 0.24%
  • IK = 0.24%
  • MY = 0.24%
  • PR = 0.24%
  • BO = 0.23%
  • NR = 0.23%
  • PS = 0.22%
  • AP = 0.21%
  • AU = 0.21%
  • LU = 0.21%
  • AK = 0.20%
  • CN = 0.20%
  • GU = 0.20%
  • KO = 0.20%
  • FL = 0.18%
  • LY = 0.18%
  • TY = 0.18%
  • EO = 0.17%
  • DS = 0.16%
  • GR = 0.16%
  • RY = 0.16%
  • BL = 0.15%
  • CU = 0.15%
  • LS = 0.15%
  • CR = 0.14%
  • HP = 0.14%
  • LT = 0.14%
  • BI = 0.13%
  • AO = 0.12%
  • CK = 0.11%
  • FT = 0.11%
  • HR = 0.11%
  • HU = 0.11%
  • KN = 0.11%
  • PT = 0.11%
  • TW = 0.11%
  • CT = 0.10%
  • IP = 0.10%
  • JO = 0.10%
  • MU = 0.10%
  • CL = 0.09%
  • DU = 0.09%
  • MP = 0.09%
  • MS = 0.09%
  • RV = 0.09%
  • BM = 0.08%
  • CS = 0.08%
  • GS = 0.08%
  • MR = 0.08%
  • SY = 0.08%
  • BY = 0.07%
  • EU = 0.07%
  • GY = 0.07%
  • IU = 0.07%
  • IY = 0.07%
  • NW = 0.07%
  • PY = 0.07%
  • SW = 0.07%
  • AJ = 0.06%
  • EJ = 0.06%
  • EX = 0.06%
  • FU = 0.06%
  • KR = 0.06%
  • KS = 0.06%
  • LV = 0.06%
  • NY = 0.06%
  • AZ = 0.05%
  • JU = 0.05%
  • QU = 0.05%
  • BS = 0.04%
  • EZ = 0.04%
  • GL = 0.04%
  • IZ = 0.04%
  • LR = 0.04%
  • DG = 0.03%
  • DW = 0.03%
  • FS = 0.03%
  • HN = 0.03%
  • IX = 0.03%
  • KL = 0.03%
  • LN = 0.03%
  • RW = 0.03%
  • DM = 0.02%
  • FN = 0.02%
  • FY = 0.02%
  • GT = 0.02%
  • HY = 0.02%
  • TX = 0.02%
  • AX = 0.01%
  • BH = 0.01%
  • BN = 0.01%
  • BT = 0.01%
  • CM = 0.01%
  • CX = 0.01%
  • CY = 0.01%
  • DT = 0.01%
  • DY = 0.01%
  • EQ = 0.01%
  • GM = 0.01%
  • HL = 0.01%
  • HM = 0.01%
  • IJ = 0.01%
  • IQ = 0.01%
  • JN = 0.01%
  • LM = 0.01%
  • LW = 0.01%
  • MN = 0.01%
  • MT = 0.01%
  • NQ = 0.01%
  • NV = 0.01%
  • OX = 0.01%
  • OZ = 0.01%
  • PX = 0.01%
  • QR = 0.01%
  • TZ = 0.01%
  • UZ = 0.01%
$\endgroup$
  • 3
    $\begingroup$ @Oray: The question talks about the "ONE-finger hunt and peck method" for example for smartphones. $\endgroup$ – Jaap Scherphuis Aug 19 '18 at 5:52
  • $\begingroup$ @Oray: If you can think of a "better" objective function, you can ask your own question for it. I'll let you use my letter frequency stats. FWIW, Dvorak was deliberately designed to encourage alternation between hands. $\endgroup$ – dan04 Aug 19 '18 at 6:17
7
$\begingroup$

My best score so far is:

54.88%

which is a slight modification to Jaap Scherphuis' submission.

The layout is as follows:

           X
        P L C G
       M S A N D
      V E H T I W
       B R O F K
        Q U Y
         J Z

As for rectangular grids, my best score so far is:

51.350%

Achieved by the following grid:

        Z K G
    J Y W I N D
    F O T H A L
    C U R E S P
      Q B M V X
$\endgroup$
  • 1
    $\begingroup$ Nice work. Just now I updated my answer with some rectangular solutions and found almost the same one as you. I presume you found the same one, and then moved the X around to improve the score like you did with the other one. These could be very hard to beat. $\endgroup$ – Jaap Scherphuis Aug 19 '18 at 10:16
6
$\begingroup$

My top scores so far are: 54.76% for hexagonal grids, 51.34% for rectangular grids.

I slightly improved the score for the OP's layout:

54.03%

Z Q D L P U C K
 G N A S R O F
  I T H E M Y
   W X V B J

Some minor layout variations are slightly better:

54.16%

  J D L P U C
 G N A S R O F
K I T H E M Y Q
   W X V B Z

54.20%

  J D L P U C
 G N A S R O F
K I T H E M Y
 Z W X V B Q

I then decided to try a few more compact layouts, i.e. ones that are closer to being disc shaped. These have more neighbouring pairs so have a better chance of having a good score.

54.47%

  P L D G
 K C A N Y
X I H T O F
 W S E R U Q
  Z M V B J

54.45%

X P M V B J
 W S E R U
Z I H T O F
 K C A N Y
  Q L D G

54.76%

  Z G D W
 J C N I K
X L A T F Q
 P S H O Y
  M E R U
   V B

I have also tried some layouts on rectangular grids.

47.83%

LISMBK
WTHEVZ
  AR
XDNOUP
JCGFYQ

50.905%

 DLPUF
GNASROY
KITHEMJ
ZWXCVBQ

51.34%

 VMBQ
PSERUC
LAHTOF
DNIWYJ
 GKZX
$\endgroup$
  • 1
    $\begingroup$ It would be far easier to read this answer if the layouts were ordered by score :) $\endgroup$ – Matthieu M. Aug 19 '18 at 12:32
3
$\begingroup$

Here is the best hex layout I came up with.

50.70%

I started from the top of the list and tried to connect as many of the pairs as I could. This unfortunately does not result in a pretty shape and does not beat the asker's layout.

  Y M S G Z
 B R E H T X
J U O N A C
 Q F D I L K
      W V P

Horizonally-adjacent letter pairs are EH (5.27%), HT (5.07%), ER (3.43%), AN (3.12%), OU (1.99%), NO (1.96%), IL (1.13%), AC (0.77%), DI (0.71%), BR (0.24%), MY (0.24%), MS (0.09%), GS (0.08%), JU (0.05%), KL (0.03%), TX (0.02%), GZ (0%), FQ (0%), DF (0%), VW (0%), and PV (0%). The combined frequency of these is 24.20%.

/-adjacent letter pairs are DN (2.33%), FO (2.24%), ES (2.19%), AT (1.55%), RU (0.90%), IW (0.77%), AI (0.54%), GH (0.26%), EO (0.17%), CL (0.09%), MR (0.08%), BY (0.07%), LV (0.06%), QU (0.05%), HN (0.03%), CX (0.01%), TZ (0.01%), BJ (0%), and KP (0%). The combined frequency of these is 11.35%.

\-adjacent letter pairs are AH (2.35%), IN (2.08%), OR (2.03%), EN (2.00%), AL (1.70%), EM (1.64%), HS (1.41%), DO (0.54%), IV (0.37%), LP (0.30%), BU (0.25%), RY (0.16%), CK (0.11%), CT (0.10%), FU (0.06%), DW (0.03%), GT (0.02%), XZ (0%), and JQ (0%). The combined frequency of these is 15.15%.

$\endgroup$
2
$\begingroup$

(Self-answer, not eligible for the checkmark.)

54.02%

Obtained by choosing a layout I liked (a trapezoid shape) and randomly swapping letters around until my score stopped improving. It uses hexagonal (or equivalent staggered-rectangular) keys.

Q K D L P U C X
 G N A S R O F
  I T H E M Y
   W Z V B J

Horizonally-adjacent letter pairs are EH (5.27%), HT (5.07%), AN (3.12%), FO (2.24%), OR (2.03%), AS (1.67%), IT (1.66%), EM (1.64%), GN (0.99%), RS (0.53%), DL (0.42%), LP (0.3%), PU (0.27%), MY (0.24%), CU (0.15%), CX (0.01%), BJ (0%), BV (0%), DK (0%), KQ (0%), VZ (0%), and WZ (0%). The combined frequency of these is 25.61%.

/-adjacent letter pairs are ER (3.43%), DN (2.33%), IN (2.08%), AL (1.7%), AT (1.55%), HS (1.41%), EV (1.28%), MO (1.06%), RU (0.9%), CO (0.61%), PS (0.22%), TW (0.11%), BM (0.08%), FY (0.02%), FX (0%), GK (0%), HZ (0%), and JY (0%). The combined frequency of these is 16.78%.

\-adjacent letter pairs are AH (2.35%), ES (2.19%), OU (1.99%), OY (1.27%), BE (0.84%), IW (0.77%), NT (0.71%), AD (0.63%), GI (0.29%), PR (0.24%), LS (0.15%), KN (0.11%), MR (0.08%), TZ (0.01%), CF (0%), GQ (0%), HV (0%), and JM (0%). The combined frequency of these is 11.63%.

Because of the staggered layout, the rule for “half-adjacent” diagonals does not apply. Total score = 25.61% + 16.78% + 11.63% = 54.02%.

$\endgroup$
0
$\begingroup$

(This answer is provided for example only, and is not eligible for the checkmark.)

35.01%

I'll start with the FITALY keyboard, since it was designed with a similar goal.

ZVCHWK
FITALY
  NE
GDORSB
QJUMPX

Horizontally- and vertically-adjacent letter pairs are ER (3.43%), AH (2.35%), OR (2.03%), EN (2.0%), OU (1.99%), NO (1.96%), AL (1.7%), IT (1.66%), AT (1.55%), AE (0.98%), NT (0.71%), DO (0.54%), RS (0.53%), HW (0.5%), FI (0.44%), CH (0.43%), IV (0.37%), PS (0.22%), LY (0.18%), CT (0.1%), MU (0.1%), MP (0.09%), MR (0.08%), JU (0.05%), BS (0.04%), DG (0.03%), LW (0.01%), PX (0.01%), BX (0%), CV (0%), DJ (0%), FZ (0%), GQ (0%), JQ (0%), KW (0%), KY (0%), and VZ (0%). The combined frequency of these is 24.08%.

Diagonally-adjacent letter pairs are HT (5.07%), AN (3.12%), DN (2.33%), ES (2.19%), IN (2.08%), EL (1.42%), ET (1.19%), MO (1.06%), RU (0.9%), AC (0.77%), AW (0.44%), CI (0.29%), PR (0.24%), NR (0.23%), EO (0.17%), JO (0.1%), DU (0.09%), MS (0.09%), IZ (0.04%), KL (0.03%), HL (0.01%), BP (0%), DQ (0%), FV (0%), GJ (0%), SX (0%), TV (0%), and WY (0%). The combined frequency of these is 21.86%.

The overall score for the FITALY keyboard is 24.08% + 21.86% / 2 = 35.01%.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.