Optimal alphabetical order

The word list | Examples | Current records | Tools

Assume we have a list of all the words in the English language. Under the normal ordering of the alphabet in English (A, B, C, …, Z), some number of these words have all their letters in alphabetical order (for example, DEEP, FLUX, and CHIMPS). However, if we change the ordering of the alphabet, we will change the number of words having their letters in “alphabetical” order. What arrangement of the letters of the alphabet maximizes this number? What arrangement minimizes it?

The word list

A fairly standard list of English words is SOWPODS, which is the word list used in tournament Scrabble in most countries outside North America. We shall use this list as our starting point. Now, it is clear that any word that contains two instances of the same letter with a different letter between them (for example, POP) cannot have its letters in alphabetical order under any ordering of the alphabet, so we can discard such words straightaway. After we do so, we have 67,230 words remaining, from AA to ZZZS.

This list of words is available as words.txt. Each word in this file, including the last, is followed by a newline.

It should be noted that SOWPODS includes only words up to 15 letters, since a Scrabble board has only 15 squares on a side. I do not know of any English word longer than 15 letters that could potentially be in alphabetical order—it appears that all words with at least 16 letters have two instances of the same letter with a different letter between them. The longest words in the English language with no repeated letters, DERMATOGLYPHICS and UNCOPYRIGHTABLE, both have 15 letters. So it appears that this word list is reasonably complete.

Examples

Under the normal ordering of the alphabet (A, B, C, …, Z), the following 860 words have their letters in alphabetical order:

AA, AAH, AAHS, AAL, AALS, AAS, AB, ABB, ABBE, ABBES, ABBESS, ABBEY, ABBOT, ABBS, ABCEE, ABCEES, ABET, ABHOR, ABHORS, ABLOW, ABLY, ABO, ABORT, ABOS, ABS, ABUZZ, ABY, ACCENT, ACCEPT, ACCESS, ACCLOY, ACCOST, ACCOY, ACE, ACER, ACERS, ACES, ACH, ACHOO, ACHY, ACKNOW, ACT, AD, ADD, ADDEEM, ADDEEMS, ADDER, ADDERS, ADDIO, ADDIOS, ADDS, ADDY, ADEEM, ADEEMS, ADEPT, ADIOS, ADIT, ADO, ADOORS, ADOPT, ADOS, ADRY, ADS, ADZ, AE, AEGIS, AERY, AFF, AFFIX, AFFLUX, AFFY, AFOOT, AFT, AG, AGGRY, AGIN, AGIO, AGIOS, AGIST, AGLOO, AGLOOS, AGLOW, AGLU, AGLY, AGO, AGS, AH, AHI, AHINT, AHIS, AHOY, AHS, AI, AIL, AILS, AIM, AIMS, AIN, AINS, AIR, AIRS, AIRT, AIRY, AIS, AIT, AITU, AL, ALL, ALLOT, ALLOW, ALLOY, ALLS, ALLY, ALMOST, ALMS, ALOW, ALP, ALPS, ALS, ALT, AM, AMMO, AMMOS, AMORT, AMP, AMPS, AMU, AN, ANN, ANNO, ANNOY, ANNS, ANOW, ANT, ANY, APP, APPS, APPUY, APT, AR, ARS, ARSY, ART, ARTY, ARY, AS, ASS, AT, ATT, AW, AX, AY, BE, BEE, BEEF, BEEFILY, BEEFS, BEEFY, BEEN, BEEP, BEEPS, BEER, BEERS, BEERY, BEES, BEET, BEFIT, BEG, BEGILT, BEGIN, BEGINS, BEGIRT, BEGO, BEGOT, BEGS, BEIN, BEKNOT, BEL, BELL, BELLOW, BELLS, BELLY, BELOW, BELS, BELT, BEN, BENNY, BENS, BENT, BENTY, BERRY, BES, BEST, BET, BETTY, BEVVY, BEVY, BEY, BEZ, BHOOT, BI, BIJOU, BIJOUX, BILL, BILLOW, BILLOWY, BILLS, BILLY, BIN, BINS, BINT, BIO, BIOPSY, BIOS, BIRR, BIRRS, BIRSY, BIS, BIST, BIT, BITT, BITTY, BIVVY, BIZ, BLOOP, BLOOPS, BLOT, BLOTTY, BLOW, BLOWY, BO, BOO, BOOR, BOORS, BOOS, BOOST, BOOT, BOOTY, BOP, BOPS, BOR, BORS, BORT, BORTY, BORTZ, BOS, BOSS, BOSSY, BOT, BOTT, BOTTY, BOW, BOX, BOXY, BOY, BRR, BRRR, BRU, BRUX, BUY, BUZZ, BY, CEE, CEES, CEIL, CEILS, CEL, CELL, CELLO, CELLOS, CELLS, CELS, CELT, CENS, CENT, CENTU, CEP, CEPS, CERT, CESS, CH, CHI, CHIK, CHIKOR, CHIKORS, CHIKS, CHILL, CHILLS, CHILLY, CHIMO, CHIMP, CHIMPS, CHIN, CHINO, CHINOS, CHINS, CHINTZ, CHIP, CHIPPY, CHIPS, CHIRR, CHIRRS, CHIRT, CHIRU, CHIS, CHIT, CHITTY, CHIV, CHIVVY, CHIVY, CHIZ, CHIZZ, CHOOSY, CHOP, CHOPPY, CHOPS, CHOTT, CHOU, CHOUX, CHOW, CILL, CILLS, CIS, CISSY, CIST, CIT, CITY, CIVVY, CLOOP, CLOOPS, CLOOT, CLOP, CLOPS, CLOT, CLOTTY, CLOU, CLOW, CLOY, CLY, COO, COOP, COOPS, COOPT, COOS, COOST, COOT, COP, COPPY, COPS, COPSY, COPY, COR, CORS, CORY, COS, COSS, COST, COSY, COT, COTT, COW, COWY, COX, COXY, COY, COZ, CRU, CRUX, CRY, CUZ, DE, DEE, DEEK, DEELY, DEEM, DEEMS, DEEN, DEENS, DEEP, DEEPS, DEER, DEERS, DEES, DEET, DEEV, DEF, DEFFLY, DEFFO, DEFI, DEFIS, DEFT, DEFY, DEG, DEGS, DEHORT, DEI, DEIL, DEILS, DEIST, DEITY, DEKKO, DEKKOS, DEL, DELL, DELLS, DELLY, DELO, DELOS, DELS, DELT, DEMO, DEMOS, DEMPT, DEMY, DEN, DENS, DENT, DENY, DEOXY, DERRY, DERV, DEV, DEW, DEWY, DEX, DEXY, DEY, DHOW, DI, DIKKOP, DIKKOPS, DILL, DILLS, DILLY, DIM, DIMP, DIMPS, DIMPSY, DIMS, DIN, DINO, DINOS, DINS, DINT, DIP, DIPPY, DIPS, DIPT, DIRT, DIRTY, DIS, DISS, DIT, DITT, DITTY, DITZ, DIV, DIVVY, DIXY, DO, DOO, DOOR, DOORS, DOOS, DOP, DOPS, DOPY, DOR, DORR, DORRS, DORS, DORT, DORTY, DORY, DOS, DOSS, DOST, DOT, DOTTY, DOTY, DOUX, DOW, DOXY, DOY, DRUXY, DRY, DUX, EE, EEK, EEL, EELS, EELY, EEN, EERY, EF, EFF, EFFLUX, EFFORT, EFFS, EFS, EFT, EGG, EGGS, EGGY, EGIS, EGO, EGOS, EH, EHS, EIK, EIKS, EL, ELL, ELLOPS, ELLS, ELM, ELMS, ELMY, ELOPS, ELS, ELT, EM, EMMY, EMO, EMOS, EMPT, EMPTY, EMS, EMU, EN, ENOW, ENS, ENVY, ER, ERR, ERRS, ERS, ERST, ERUV, ES, ESS, EST, ET, EX, FIKY, FIL, FILL, FILLO, FILLOS, FILLS, FILLY, FILM, FILMS, FILMY, FILO, FILOS, FILS, FIN, FINNY, FINO, FINOS, FINS, FIR, FIRRY, FIRS, FIRST, FIST, FISTY, FIT, FITT, FIX, FIZ, FIZZ, FLOOR, FLOORS, FLOOSY, FLOP, FLOPPY, FLOPS, FLOR, FLORS, FLORY, FLOSS, FLOSSY, FLOW, FLU, FLUX, FLY, FOOT, FOOTY, FOP, FOPS, FOR, FORT, FORTY, FOSS, FOU, FOX, FOXY, FOY, FRY, FUZZ, FY, GHI, GHIS, GHOST, GHOSTY, GI, GILL, GILLS, GILLY, GILPY, GILT, GIMMOR, GIMMORS, GIMP, GIMPS, GIMPY, GIN, GINN, GINNY, GINS, GIO, GIOS, GIP, GIPPY, GIPS, GIPSY, GIRR, GIRRS, GIRT, GIS, GIST, GIT, GIZZ, GJU, GLOOP, GLOOPS, GLOOPY, GLOP, GLOPPY, GLOPS, GLORY, GLOSS, GLOSSY, GLOST, GLOW, GNOW, GNU, GO, GOO, GOOP, GOOPS, GOOPY, GOOR, GOORS, GOORY, GOOS, GOOSY, GOR, GORSY, GORY, GOS, GOSS, GOT, GOV, GOX, GOY, GU, GUV, GUY, HI, HILL, HILLO, HILLOS, HILLS, HILLY, HILT, HIM, HIMS, HIN, HINNY, HINS, HINT, HIP, HIPPY, HIPS, HIPT, HIS, HISS, HISSY, HIST, HIT, HIZZ, HM, HMM, HO, HOO, HOOP, HOOPS, HOOT, HOOTY, HOP, HOPPY, HOPS, HORS, HORST, HORSY, HOS, HOSS, HOST, HOT, HOTTY, HOW, HOX, HOY, ILL, ILLS, ILLY, IMMY, IMP, IMPS, IN, INN, INNS, INS, IO, IOS, IS, IT, IVY, JO, JOR, JORS, JOSS, JOT, JOTTY, JOW, JOY, KNOP, KNOPS, KNOT, KNOTTY, KNOW, KO, KOP, KOPS, KOR, KORS, KORU, KOS, KOSS, KOW, KY, LO, LOO, LOOP, LOOPS, LOOPY, LOOR, LOOS, LOOT, LOP, LOPPY, LOPS, LOR, LORRY, LORY, LOS, LOSS, LOSSY, LOST, LOT, LOU, LOW, LOX, LOY, LUV, LUVVY, LUX, LUZ, MM, MO, MOO, MOOP, MOOPS, MOOR, MOORS, MOORY, MOOS, MOOT, MOP, MOPPY, MOPS, MOPSY, MOPY, MOR, MORS, MORT, MOS, MOSS, MOSSY, MOST, MOT, MOTT, MOTTY, MOTU, MOU, MOW, MOY, MOZ, MOZZ, MU, MUX, MUZZ, MY, NO, NOO, NOOP, NOOPS, NOR, NOS, NOSY, NOT, NOTT, NOW, NOWY, NOX, NOY, NU, NY, OO, OOP, OOPS, OOR, OOS, OOSY, OOT, OP, OPS, OPT, OR, ORS, ORT, OS, OU, OW, OX, OXY, OY, PRY, PSST, PST, PUY, ST, STY, SWY, TUX, TUZZ, ZZZ.

If the normal ordering is reversed, the following 628 words have their letters in order:

AA, BA, BAA, CAA, DA, EA, EBB, ED, EE, FA, FAA, FE, FED, FEE, FEEB, FEED, GED, GEE, GEED, HA, HE, HEED, ID, IF, IFF, IGG, IGGED, JA, JEE, JEED, JIB, JIBB, JIFF, JIG, JIGGED, KA, KEA, KEB, KED, KHEDA, KI, KID, KIF, KIFF, LA, LEA, LED, LEE, LEED, LI, LIB, LID, LIE, LIED, LIFE, LIG, LIGGE, LIGGED, MA, MAA, ME, MECCA, MED, MEE, MEED, MI, MIB, MIC, MICA, MID, MIFF, MIFFED, MIG, MIGG, MIHA, MM, NA, NE, NEB, NED, NEE, NEED, NIB, NID, NIE, NIED, NIFE, NIFF, NIFFED, OB, OBA, OCA, OD, ODA, ODD, OE, OF, OFF, OFFED, OGEE, OH, OHED, OI, OKA, OKE, OLD, OLE, OLEA, OLID, OLLA, OLLIE, OM, ON, ONE, ONIE, ONNED, OO, OOF, OOH, OOHED, OOM, OON, PA, PE, PEA, PEBA, PEC, PED, PEE, PEED, PI, PIA, PIC, PICA, PIE, PIED, PIG, PIGFEED, PIGGED, PLEA, PLEB, PLED, PLICA, PLIE, PLIED, PO, POA, POD, POGGE, POH, POI, POKE, POKED, POKIE, POL, POLE, POLED, POLJE, POLK, POLKA, POLKED, POLL, POLLED, POLLEE, POM, POME, POMMEE, POMMIE, POND, PONE, PONG, PONGA, PONGED, PONGEE, PONIED, PONK, PONKED, POO, POOD, POOED, POOF, POOH, POOHED, POOJA, POOK, POOKA, POOL, POOLED, POON, QI, RE, REB, REC, RED, REDD, REE, REED, RHEA, RIA, RIB, RIBA, RID, RIF, RIFE, RIFF, RIFFED, RIG, RIGG, RIGGED, ROB, ROC, ROD, ROE, ROED, ROJI, ROK, ROKE, ROKED, ROLE, ROLF, ROLFED, ROLL, ROLLED, ROM, ROMA, RONE, RONG, RONNE, RONNIE, ROO, ROOD, ROOF, ROOFED, ROOK, ROOKED, ROOKIE, ROOM, ROOMED, ROOMIE, ROON, SEA, SEC, SED, SEE, SEED, SH, SHA, SHE, SHEA, SHED, SHH, SI, SIB, SIBB, SIC, SIDA, SIF, SKA, SKEE, SKEED, SKI, SKID, SKIED, SKIFF, SKIFFED, SLED, SLEE, SLID, SMA, SMEE, SNEB, SNED, SNEE, SNEED, SNIB, SNIFF, SNIFFED, SNIG, SNIGGED, SO, SOB, SOBA, SOC, SOCA, SOD, SODA, SOFA, SOG, SOGGED, SOH, SOJA, SOKE, SOL, SOLA, SOLD, SOLE, SOLED, SOLI, SOLID, SOM, SOMA, SOME, SON, SONE, SONG, SONIC, SONNE, SOOGEE, SOOGEED, SOOK, SOOKED, SOOL, SOOLE, SOOLED, SOOM, SOOMED, SOON, SPA, SPEC, SPED, SPEED, SPIC, SPICA, SPIE, SPIED, SPIF, SPIFF, SPIFFED, SPLIFF, SPOD, SPOKE, SPOKED, SPONGE, SPONGED, SPOOF, SPOOFED, SPOOK, SPOOKED, SPOOL, SPOOLED, SPOOM, SPOOMED, SPOON, SPOONED, SPOONFED, SRI, TA, TE, TEA, TEC, TED, TEE, TEED, THE, THECA, THEE, THEED, TI, TIC, TICCA, TID, TIE, TIED, TIFF, TIFFED, TIG, TIGE, TIGGED, TO, TOC, TOD, TOE, TOEA, TOED, TOFF, TOFFEE, TOG, TOGA, TOGE, TOGED, TOGGED, TOKE, TOKED, TOLA, TOLD, TOLE, TOLED, TOLL, TOLLED, TOLLIE, TOM, TOMB, TOME, TOMIA, TOMMED, TOMMIED, TON, TONE, TONED, TONG, TONGA, TONGED, TONIC, TONK, TONKA, TONKED, TONNE, TOO, TOOK, TOOL, TOOLED, TOOM, TOOMED, TOON, TOONIE, TREE, TREED, TRIE, TRIED, TRIFF, TRIG, TRIGGED, TROD, TROG, TROGGED, TROKE, TROKED, TROLL, TROLLED, TROLLIED, TRON, TRONA, TRONC, TRONE, TRONK, TROOLIE, TSK, TSKED, UG, UGGED, UH, UKE, ULE, UM, UMM, UN, UNFED, UNFEED, UNI, UNKED, UNKID, UNLED, UNLID, UP, UPLED, UPO, UPON, UPPED, UR, URB, URD, URE, UREA, URGE, URGED, URIC, URN, URNED, URP, URPED, US, USE, USED, USNEA, UT, UTA, UTE, UTS, VEE, VIA, VID, VIE, VIED, VIFDA, VIG, VIGA, VOE, VOID, VOL, VOLA, VOLE, VOLED, VOLK, VOMICA, VROOM, VROOMED, VUG, VUGG, VUM, VUMMED, WE, WEB, WED, WEE, WEED, WHA, WHEE, WICCA, WIFE, WIFED, WIG, WIGGA, WIGGED, WO, WOE, WOF, WOG, WOK, WOKE, WOKKA, WOLD, WOLF, WOLFED, WOMB, WON, WONGA, WONK, WONNED, WOO, WOOD, WOOED, WOOF, WOOFED, WOOL, WOOLD, WOOLED, WOOLIE, WOOLLED, WOON, WOONED, WRIED, WROKE, WRONG, WRONGED, WUD, WULL, WULLED, WURLIE, WUS, WUSS, XI, XU, YA, YE, YEA, YEED, YID, YLKE, YO, YOB, YOD, YOGA, YOGEE, YOK, YOKE, YOKED, YOKKED, YOLD, YOLK, YOLKED, YOM, YON, YOND, YONI, YONIC, YONNIE, YOOF, YTTRIA, YTTRIC, YU, YUCA, YUCCA, YUG, YUGA, YUK, YUKE, YUKED, YUKKED, YULE, YUM, YUP, YUPON, YUPPIE, YUS, YWROKE, ZA, ZEA, ZED, ZEE, ZIFF, ZIG, ZIGGED, ZO, ZOA, ZOEA, ZOIC, ZOL, ZONA, ZONDA, ZONE, ZONED, ZONK, ZONKED, ZOO, ZOOEA, ZOOID, ZOOM, ZOOMED, ZOON, ZOONED, ZOONIC, ZUPA, ZURF, ZYGA, ZYME, ZYMIC, ZZZ, ZZZS.

Current records

Maximum

CountOrderingDiscovererDate
4046FCBWHJLOAQUXMPVINTKGZERDYSBrian Kell21 Sept 2010
4039BCPWMFJHOQURAVXINGTZLKEDYSBrian Kell21 Sept 2010
4022PBCWMFJHOAQUVXINGTZLKERDYSMatt Johnson21 Sept 2010
2619CGBFRHOPLATWQJUIVMKENDZXYSMarla Slusky19 Sept 2010
2412BSFPWCHJQMOAVUIRNGLKTDZEXYWinner of “Search for Gold” contest, early 1970s; reported by Ross Eckler in Making the Alphabet Dance
860ABCDEFGHIJKLMNOPQRSTUVWXYZ

Minimum

CountOrderingDiscovererDate
108IUXAOESYTFKQPZBMHCDLGNVJWRBrian Kell21 Sept 2010
109UIXAOESYHKTCPBZGDFMLNRWVQJBrian Kell20 Sept 2010
120IUAOESYHDBFGJKMQTNVPLWXZCRBrian Kell20 Sept 2010
128UIAOEYSDBPMHTGNLRKCFWVJQXZDarryl Francis; reported by Ross Eckler in Making the Alphabet Dance
139UAOEYJQXVGMHKTPSZDBFCNRLWIReported by Ross Eckler in Making the Alphabet Dance
155HLMNRWBCDFGJKPQTVXZSYEIUAOReported by Ross Eckler in Making the Alphabet Dance
628ZYXWVUTSRQPONMLKJIHGFEDCBA

Tools

I have written a little Perl script, count.plx, that will count the number of words in words.txt having all their letters in order according to a given ordering of the alphabet. To run this script from a Unix-like shell, put it in the same directory as words.txt, make sure it’s executable (chmod 755 count.plx), and give the ordering of the alphabet on the command line:

$ ./count.plx ABCDEFGHIJKLMNOPQRSTUVWXYZ
860 words in alphabetical order using ABCDEFGHIJKLMNOPQRSTUVWXYZ.

Last updated 15 January 2010. Brian Kell <bkell@cmu.edu>