Character Analysis of WordsInManyPlaces

The dictionary(ies) of interest here is called WordsInManyPlaces.  It is an aggregation of 16 different publicly available English word lists, containing, in total, almost a million different lexical entries (aka "words").  Most, actually, are not things that most speakers (or readers) of English would consider to be real words, though the vocabulary of most speakers is far less than the number of items in a typical modern dictionary to begin with. Who's to say? Well, one theory is that words are better if they appear in more dictionaries. Hence some of these analyses.

This web-script retrieves a random collection of words in n dictionaries (you choose 0<n<17)

See also
1. https://ello.co/ddailey/post/v7ewsn39omeyt3hbac0_xa contains descriptions of the sources (15 of the 16, anyhow)
2. https://ello.co/ellolanguages/post/uqviaxn2hibshagl5omtdq
3. https://ello.co/ddailey/post/6lcx4o-ve_a5c-cj9mr8fa
4. https://ello.co/ddailey/post/m7g0zzh_euej1gfawld38g

 $ echo $W

public_html/cgi/WordsInManyPlaces

$ wc $W

  946943  1911581 16794870 public_html/cgi/WordsInManyPlace

$ tail $W

      1 骇府

      1 高大向阳的作物为阴地植物提供了遮阳伞

      1 高效快捷的行动开始了

      1 高黎贡山的森林总是保持着湿润的气候

      1 高黎贡山的森林是中国部分珍稀动物的家园

      1 鸟鸣声

      1 鼠侗奻脯醱還峉儂

      1 鼠侗峈坴婓俋劓部華杻華党膘賸珨釱蚔蚞喀

      1 鼠侗軞岆祥剿華彸桄ㄛ

      1 齊譟翋栳

Google translate: 高大向阳的作物为阴地植物提供了遮阳伞 à

Tall, sunny crops provide umbrellas for overcast plants

 

$ awk '{print $2}' $W|cut -c1|wc

 946943  946942 1901717

$ awk '{print $2}' $W|cut -c1|sort|uniq -c|wc

    748    1495    8694

These million words have only 748 first letters.

The hundred most common endings

$ awk '{print $2}' $W|cut -c1|sort|uniq -c|sort -nr|head -100|tr ' \n' '. ';echo

..88435.s ..65000.c ..64578.p ..52657.a ..50148.m ..47118.t ..47084.b ..41303.d ..36726.r ..34371.h ..31522.f ..29257.l ..29104.u ..28864.g ..28281.e ..28125.o ..27969.n ..26909.i ..22874.w ..19188.k ..14569.v ...9305.j ...7424.C ...7299.S ...7210.A ...6770.y ...6385.M ...6072.P ...5842.B ...5344.z ...4828.q ...4389.T ...4098.H ...4078.L ...3816.D ...3814.G ...3302.1 ...3175.R ...3158.E ...2723.K ...2679.N ...2590.F ...2302.I ...2134.W ...1996.O ...1812.J ...1539.x ...1503.V ...1486.3 ...1226.£ ...1111.2 ...1091.U ....749.- ....666.Z ....626.4 ....579.$ ....577.5 ....528.Y ....504.6 ....435.7 ....404.8 ....393.0 ....390.9 ....340.Q ....316.é ....258.' ....190.X ....167.ñ ....163.& ....148.ï ....146.í ....145.п ....139.ç ....138.î ....137.ì ....107.η ....105.н ....104.с .....94.á .....91.æ .....90.в .....85.ô .....79.þ .....71.к .....69.è .....67.м .....67.ä .....65.â .....64.ê .....63.š .....63.ö .....60.å .....59.ò .....58.д .....57.о .....56.т .....56.и .....53.— .....48.ž .....47.б

 

for i in `awk '{print $2}' endletters`; do echo $i `echo $i|hexdump|awk '{print $2}'`; done>endhexdump
$ for i in `cat endhexdump|tr ' ' ':'`; do b=`echo $i|awk 'BEGIN {FS=":"} {print $2}'|sed 's/^\(..\)\(.*\)/\\\u\2\\\u\1/'`; t=`echo -e $b`; echo $i,$b,$t; done|head
s:0a73,\u73\u0a,s
c:0a63,\u63\u0a,c
p:0a70,\u70\u0a,p
a:0a61,\u61\u0a,a
m:0a6d,\u6d\u0a,m
t:0a74,\u74\u0a,t
b:0a62,\u62\u0a,b
d:0a64,\u64\u0a,d
r:0a72,\u72\u0a,r
h:0a68,\u68\u0a,h
Translating UTF8 chars to Unicode and back.
[ddailey@granite ~]$ for i in `cat endhexdump|tr ' ' ':'`; do b=`echo $i|awk 'BEGIN {FS=":"} {print $2}'|sed 's/^\(..\)\(.*\)/\\\u\2\\\u\1/'`; t=`echo -e $b`; echo $i,$b,$t; done|tail
ö:b6c3,\uc3\ub6,ö
å:a5c3,\uc3\ua5,å
ò:b2c3,\uc3\ub2,ò
д:b4d0,\ud0\ub4,д
о:bed0,\ud0\ube,о
т:82d1,\ud1\u82,т
и:b8d0,\ud0\ub8,и
—:80e2,\ue2\u80,▒
ž:bec5,\uc5\ube,ž
б:b1d0,\ud0\ub1,б

$ for i in {t..z} {6..9} é ñ ï í п ç î ì η á æ þ è š ö д т и — ž б; do h=`echo $i|hexdump -C|awk '{print $2,$3}'` ;u=`echo $h|sed 's/^/\\\u/;s/\ /\\\u/'`;U=`echo -e $u` ;echo $i $h $u $U; done;echo
t 74 0a \u74\u0a t
u 75 0a \u75\u0a u
v 76 0a \u76\u0a v
w 77 0a \u77\u0a w
x 78 0a \u78\u0a x
y 79 0a \u79\u0a y
z 7a 0a \u7a\u0a z
6 36 0a \u36\u0a 6
7 37 0a \u37\u0a 7
8 38 0a \u38\u0a 8
9 39 0a \u39\u0a 9
é c3 a9 \uc3\ua9 é
ñ c3 b1 \uc3\ub1 ñ
ï c3 af \uc3\uaf ï
í c3 ad \uc3\uad í
п d0 bf \ud0\ubf п
ç c3 a7 \uc3\ua7 ç
î c3 ae \uc3\uae î
ì c3 ac \uc3\uac ì
η ce b7 \uce\ub7 η
á c3 a1 \uc3\ua1 á
æ c3 a6 \uc3\ua6 æ
þ c3 be \uc3\ube þ
è c3 a8 \uc3\ua8 è
š c5 a1 \uc5\ua1 š
ö c3 b6 \uc3\ub6 ö
д d0 b4 \ud0\ub4 д
т d1 82 \ud1\u82 т
и d0 b8 \ud0\ub8 и
— e2 80 \ue2\u80 ▒
ž c5 be \uc5\ube ž
б d0 b1 \ud0\ub1 б

$ for i in ª 扂 扂 ð; do echo $i `echo $i|hexdump -C`;done
ª 00000000 c2 aa 0a |...| 00000003
扂 00000000 e6 89 82 0a |....| 00000004
扂 00000000 e6 89 82 0a |....| 00000004
ð 00000000 c3 b0 0a |...| 00000003

$ for i in ª 扂 扂 ð; do h=`echo $i|hexdump -C|awk '{print $2,$3,$4}'` ;u=`echo $h|sed 's/^/\\\u/;s/\ /\\\u/g'`;U=`echo -e $u` ;echo $i $h $u $U; done;echo
ª c2 aa 0a \uc2\uaa\u0a ª
扂 e6 89 82 \ue6\u89\u82 扂
扂 e6 89 82 \ue6\u89\u82 扂
ð c3 b0 0a \uc3\ub0\u0a ð

$ wc $M

  946943  1911581 16794870 /home/ddailey/public_html/cgi/WordsInManyPlaces

[ddailey@granite mthes]$ awk ' $1 == 1 ' $M|wc

 539604 1096251 9370269

$ awk ' $1 > 1 ' $M|wc

 407339  815330 7424601

$ echo 407339+539604|bc

946943

$ awk ' $1 > 1 {print $2}' $M>TwoOrMore

$ wc TwoOrMore

 407339  407339 4161864 TwoOrMore

$ paste <(head -20 TwoOrMore) <(tail -20 TwoOrMore)
-       zymosimeter
--      zymosis
'       zymosterol
''      zymosthenic
1080    zymotechnic
10-point        zymotechnical
10th    zymotechnics
12-point        zymotechny
1992—93 zymotic
1st     zymotically
2       zymotize
2,4,5-t zymotoxic
2nd     zymurgies
3-d     zymurgy
3-D     Zyrian
3rd     zythem
4th     zythum
5th     zyzzyva
6th     zyzzyvas
7th     zz

$ echo $T

TwoOrMore

$ cut -c1 $T|sort|uniq -c|wc

     73     146     740

 

These 407339  words all start with 73 different chars.

$ cut -c1 $T|sort|uniq -c|sort -nr


  41651 s
  35692 p
  33556 c
  25853 a
  23044 u
  21601 m
  20301 b
  19980 d
  19909 t
  18222 r
  15198 h
  14730 e
  14369 n
  13899 i
  13398 f
  13343 o
  11916 g
  11088 l
   7980 w
   5799 v
   4655 k
   3171 j
   1938 q
   1454 z
   1280 y
   1072 C
   1009 A
    995 S
    961 B
    931 M
    741 P
    619 H
    585 T
    585 L
    551 G
    539 D
    485 x
    447 K
    431 R
    408 E
    389 N
    362 F
    326 I
    297 -
    283 J
    278 O
    274 W
    237 V
    146 U
     85 Y
     80 Z
     53 Q
     43 '
     25 X
     25 é
     15 æ
      9 œ
      6 1
      3 3
      3 2
      2 á
      1 î
      1 ê
      1 ç
      1 à
      1 9
      1 8
      1 7
      1 6
      1 5
      1 4
      1 —
      1 &



$ cut -c1,2 $T|sort|uniq -c|sort -nr|head -15|cat -n
     1    20265 un
     2    11654 co
     3    10863 re
     4     9536 pr
     5     9010 no
     6     8412 in
     7     7151 su
     8     6793 de
     9     6628 ca
    10     6285 di
    11     5912 pa
    12     5572 ma
    13     5352 st
    14     5337 se
    15     5203 an

$ time cat $T|grep -o .|sort|uniq -c|wc

     99     198    1018

A total of 99 different chars are used in $T

$ time cat $T|grep -o .|sort|uniq -c|sort –nr


 405047 e
 325903 i
 309319 a
 269910 n
 267997 o
 267797 s
 265051 r
 245100 t
 209078 l
 159014 c
 138590 u
 122453 d
 116970 p
 111114 m
  99112 h
  89569 g
  73972 y
  69520 b
  44664 f
  36616 v
  31395 k
  26829 w
  15832 z
  11344 -
  11080 x
   6267 q
   6206 j
   2007 .
   1257 C
   1242 A
   1168 S
   1045 B
   1032 M
    860 P
    692 T
    673 H
    662 D
    652 L
    611 '
    600 G
    509 R
    481 E
    473 K
    434 N
    430 F
    414 I
    386 O
    317 W
    299 J
    293 V
    258 é
    175 U
     98 Y
     88 Z
     75 /
     67 æ
     66 Q
     65 1
     48 è
     41 ë
     37 2
     36 ö
     36 á
     33 X
     33 9
     33 0
     29 ü
     28 _
     23 í
     21 ç
     20 ñ
     18 œ
     18 ó
     18 5
     17 ê
     16 8
     14 â
     14 4
     13 7
     13 3
     12 6
     10 ô
      9 ä
      7 ï
      7 &
      6 ;
      5 û
      5 î
      5 à
      4 ú
      3 š
      2 ã
      2 —
      2 +
      2 ,
      1 ÿ
      1 ù
      1 ø
      1 *



real    0m6.581s
user    0m6.521s
sys     0m0.038s

$ time awk 'BEGIN {FS=""} {for (i=1;i<=NF;i++){print $i}}' $T|sort|uniq -c|sort –n

[…]
267797 s
 267997 o
 269910 n
 309319 a
 325903 i
 405047 e

real    0m6.893s
user    0m6.838s
sys     0m0.043s

$ time cat $T|awk 'BEGIN {FS=""} {for (i=1;i<=NF;i++){print $i""$(i+1)}}'|sort|uniq -c|sort -nr|head -100


  80566 s
  71527 er
  65363 in
  59448 e
  51003 ti
  50333 on
  50279 es
  46517 te
  43801 at
  43495 re
  42535 an
  42097 al
  41550 en
  39252 y
  37287 is
[…]

 
 



$ time cat $T|awk 'BEGIN {FS=""} {for (i=1;i<=NF;i++){print $(i-1)""$i}}'|sort|uniq -c|sort -nr|head -100


  71527 er
  65363 in
  51003 ti
  50333 on
  50279 es
  46517 te
  43801 at
  43495 re
  42535 an
  42097 al
  41550 en
  37287 is
  37242 le
  36780 ra
  36709 ic
  36408 ri
  36115 st
  34929 ne
  34511 ar
  34062 li
  34022 ed
  32666 ro
  32146 ng
  31020 nt
  30792 or
  28630 un
  26099 la
  25859 it
  25336 co
  23750 se
  23730 de
  23603 ca
  22925 io
  22603 to
  22527 ss
  22070 ni
  21766 ta
  21703 el
  21388 ou
  21061 tr
  20933 no
  20860 ma
  20841 ll
  20737 ch
  20458 ly
  20212 us
  20172 he
  19972 lo
  19955 me
  19714 di
  19635 ia
  19458 ol
  19267 ve
  19142 et
  19038 na
  18841 si
  18822 mi
  18138 pe
  17901 ac
  17749 as
  17421 th
  17314 il
  17311 om
  16848 nd
  16132 os
  15951 ns
  15945 ph
  15610 ea
  15573 ho
  15478 ha
  15427 pr
  15261 ur
  15226 hi
  14951 ie
  14915 ce
  14612 op
  14521 ul
  14124 nc
  13711 ab
  13692 ec
  13286 ot
  13191 em
  13163 id
  13149 bl
  12993 mo
  12967 po
  12945 ge
  12919 pa
  12893 rs
  12350 sh
  12275 am
  11708 ci
  10948 su
  10944 oc
  10837 og
  10784 ap
  10610 ad
  10501 ct
  10432 pi
  10072 ut




real    0m19.227s
user    0m13.988s
sys     0m0.090s