Grammalecte  Hex Artifact Content

Artifact 9c8e1eeca89a2fa9b71688db5c79edbc7e009988394e9eaca1f3855676ae14e0:


0000: 2f 2f 20 6c 69 73 74 20 6f 66 20 73 69 6d 69 6c  // list of simil
0010: 61 72 20 63 68 61 72 73 0a 2f 2f 20 75 73 65 66  ar chars.// usef
0020: 75 6c 20 66 6f 72 20 73 75 67 67 65 73 74 69 6f  ul for suggestio
0030: 6e 20 6d 65 63 68 61 6e 69 73 6d 0a 0a 24 7b 6d  n mechanism..${m
0040: 61 70 7d 0a 0a 0a 76 61 72 20 63 68 61 72 5f 70  ap}...var char_p
0050: 6c 61 79 65 72 20 3d 20 7b 0a 0a 20 20 20 20 5f  layer = {..    _
0060: 64 54 72 61 6e 73 43 68 61 72 73 3a 20 6e 65 77  dTransChars: new
0070: 20 4d 61 70 28 5b 0a 20 20 20 20 20 20 20 20 5b   Map([.        [
0080: 27 c3 a0 27 2c 20 27 61 27 5d 2c 20 20 5b 27 c3  '..', 'a'],  ['.
0090: a9 27 2c 20 27 65 27 5d 2c 20 20 5b 27 c3 ae 27  .', 'e'],  ['..'
00a0: 2c 20 27 69 27 5d 2c 20 20 5b 27 c3 b4 27 2c 20  , 'i'],  ['..', 
00b0: 27 6f 27 5d 2c 20 20 5b 27 c3 bb 27 2c 20 27 75  'o'],  ['..', 'u
00c0: 27 5d 2c 20 20 5b 27 c3 bf 27 2c 20 27 79 27 5d  '],  ['..', 'y']
00d0: 2c 0a 20 20 20 20 20 20 20 20 5b 27 c3 a2 27 2c  ,.        ['..',
00e0: 20 27 61 27 5d 2c 20 20 5b 27 c3 a8 27 2c 20 27   'a'],  ['..', '
00f0: 65 27 5d 2c 20 20 5b 27 c3 af 27 2c 20 27 69 27  e'],  ['..', 'i'
0100: 5d 2c 20 20 5b 27 c3 b6 27 2c 20 27 6f 27 5d 2c  ],  ['..', 'o'],
0110: 20 20 5b 27 c3 b9 27 2c 20 27 75 27 5d 2c 20 20    ['..', 'u'],  
0120: 5b 27 c5 b7 27 2c 20 27 79 27 5d 2c 0a 20 20 20  ['..', 'y'],.   
0130: 20 20 20 20 20 5b 27 c3 a4 27 2c 20 27 61 27 5d       ['..', 'a']
0140: 2c 20 20 5b 27 c3 aa 27 2c 20 27 65 27 5d 2c 20  ,  ['..', 'e'], 
0150: 20 5b 27 c3 ad 27 2c 20 27 69 27 5d 2c 20 20 5b   ['..', 'i'],  [
0160: 27 c3 b3 27 2c 20 27 6f 27 5d 2c 20 20 5b 27 c3  '..', 'o'],  ['.
0170: bc 27 2c 20 27 75 27 5d 2c 20 20 5b 27 c3 bd 27  .', 'u'],  ['..'
0180: 2c 20 27 79 27 5d 2c 0a 20 20 20 20 20 20 20 20  , 'y'],.        
0190: 5b 27 c3 a1 27 2c 20 27 61 27 5d 2c 20 20 5b 27  ['..', 'a'],  ['
01a0: c3 ab 27 2c 20 27 65 27 5d 2c 20 20 5b 27 c3 ac  ..', 'e'],  ['..
01b0: 27 2c 20 27 69 27 5d 2c 20 20 5b 27 c3 b2 27 2c  ', 'i'],  ['..',
01c0: 20 27 6f 27 5d 2c 20 20 5b 27 c3 ba 27 2c 20 27   'o'],  ['..', '
01d0: 75 27 5d 2c 20 20 5b 27 e1 bb b3 27 2c 20 27 79  u'],  ['...', 'y
01e0: 27 5d 2c 0a 20 20 20 20 20 20 20 20 5b 27 c4 81  '],.        ['..
01f0: 27 2c 20 27 61 27 5d 2c 20 20 5b 27 c4 93 27 2c  ', 'a'],  ['..',
0200: 20 27 65 27 5d 2c 20 20 5b 27 c4 ab 27 2c 20 27   'e'],  ['..', '
0210: 69 27 5d 2c 20 20 5b 27 c5 8d 27 2c 20 27 6f 27  i'],  ['..', 'o'
0220: 5d 2c 20 20 5b 27 c5 ab 27 2c 20 27 75 27 5d 2c  ],  ['..', 'u'],
0230: 20 20 5b 27 c8 b3 27 2c 20 27 79 27 5d 2c 0a 20    ['..', 'y'],. 
0240: 20 20 20 20 20 20 20 5b 27 c3 b1 27 2c 20 27 6e         ['..', 'n
0250: 27 5d 2c 0a 20 20 20 20 20 20 20 20 5b 27 c5 93  '],.        ['..
0260: 27 2c 20 27 6f 65 27 5d 2c 20 5b 27 c3 a6 27 2c  ', 'oe'], ['..',
0270: 20 27 61 65 27 5d 2c 20 0a 20 20 20 20 5d 29 2c   'ae'], .    ]),
0280: 0a 0a 20 20 20 20 63 6c 65 61 6e 57 6f 72 64 3a  ..    cleanWord:
0290: 20 66 75 6e 63 74 69 6f 6e 20 28 73 57 6f 72 64   function (sWord
02a0: 29 20 7b 0a 20 20 20 20 20 20 20 20 2f 2f 20 77  ) {.        // w
02b0: 6f 72 64 20 73 69 6d 70 6c 69 63 61 74 69 6f 6e  ord simplication
02c0: 20 62 65 66 6f 72 65 20 63 61 6c 63 75 6c 61 74   before calculat
02d0: 69 6e 67 20 64 69 73 74 61 6e 63 65 20 62 65 74  ing distance bet
02e0: 77 65 65 6e 20 77 6f 72 64 73 0a 20 20 20 20 20  ween words.     
02f0: 20 20 20 73 57 6f 72 64 20 3d 20 73 57 6f 72 64     sWord = sWord
0300: 2e 74 6f 4c 6f 77 65 72 43 61 73 65 28 29 3b 0a  .toLowerCase();.
0310: 20 20 20 20 20 20 20 20 6c 65 74 20 73 52 65 73          let sRes
0320: 20 3d 20 22 22 3b 0a 20 20 20 20 20 20 20 20 66   = "";.        f
0330: 6f 72 20 28 6c 65 74 20 63 20 6f 66 20 73 57 6f  or (let c of sWo
0340: 72 64 29 20 7b 0a 20 20 20 20 20 20 20 20 20 20  rd) {.          
0350: 20 20 73 52 65 73 20 2b 3d 20 74 68 69 73 2e 5f    sRes += this._
0360: 64 54 72 61 6e 73 43 68 61 72 73 2e 67 6c 5f 67  dTransChars.gl_g
0370: 65 74 28 63 2c 20 63 29 3b 0a 20 20 20 20 20 20  et(c, c);.      
0380: 20 20 7d 0a 20 20 20 20 20 20 20 20 72 65 74 75    }.        retu
0390: 72 6e 20 73 57 6f 72 64 3b 0a 20 20 20 20 7d 2c  rn sWord;.    },
03a0: 0a 0a 20 20 20 20 64 69 73 74 61 6e 63 65 44 61  ..    distanceDa
03b0: 6d 65 72 61 75 4c 65 76 65 6e 73 68 74 65 69 6e  merauLevenshtein
03c0: 3a 20 66 75 6e 63 74 69 6f 6e 20 28 73 31 2c 20  : function (s1, 
03d0: 73 32 29 20 7b 0a 20 20 20 20 20 20 20 20 2f 2f  s2) {.        //
03e0: 20 64 69 73 74 61 6e 63 65 20 6f 66 20 44 61 6d   distance of Dam
03f0: 65 72 61 75 2d 4c 65 76 65 6e 73 68 74 65 69 6e  erau-Levenshtein
0400: 20 62 65 74 77 65 65 6e 20 3c 73 31 3e 20 61 6e   between <s1> an
0410: 64 20 3c 73 32 3e 0a 20 20 20 20 20 20 20 20 2f  d <s2>.        /
0420: 2f 20 68 74 74 70 73 3a 2f 2f 66 72 2e 77 69 6b  / https://fr.wik
0430: 69 70 65 64 69 61 2e 6f 72 67 2f 77 69 6b 69 2f  ipedia.org/wiki/
0440: 44 69 73 74 61 6e 63 65 5f 64 65 5f 44 61 6d 65  Distance_de_Dame
0450: 72 61 75 2d 4c 65 76 65 6e 73 68 74 65 69 6e 0a  rau-Levenshtein.
0460: 20 20 20 20 20 20 20 20 74 72 79 20 7b 0a 20 20          try {.  
0470: 20 20 20 20 20 20 20 20 20 20 6c 65 74 20 6e 4c            let nL
0480: 65 6e 31 20 3d 20 73 31 2e 6c 65 6e 67 74 68 3b  en1 = s1.length;
0490: 0a 20 20 20 20 20 20 20 20 20 20 20 20 6c 65 74  .            let
04a0: 20 6e 4c 65 6e 32 20 3d 20 73 32 2e 6c 65 6e 67   nLen2 = s2.leng
04b0: 74 68 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20  th;.            
04c0: 6c 65 74 20 6d 61 74 72 69 78 20 3d 20 5b 5d 3b  let matrix = [];
04d0: 0a 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 72  .            for
04e0: 20 28 6c 65 74 20 69 20 3d 20 30 3b 20 20 69 20   (let i = 0;  i 
04f0: 3c 3d 20 6e 4c 65 6e 31 3b 20 20 69 2b 2b 29 20  <= nLen1;  i++) 
0500: 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20  {.              
0510: 20 20 6d 61 74 72 69 78 5b 69 5d 20 3d 20 6e 65    matrix[i] = ne
0520: 77 20 41 72 72 61 79 28 6e 4c 65 6e 32 20 2b 20  w Array(nLen2 + 
0530: 31 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20  1);.            
0540: 7d 0a 20 20 20 20 20 20 20 20 20 20 20 20 66 6f  }.            fo
0550: 72 20 28 6c 65 74 20 69 20 3d 20 30 3b 20 20 69  r (let i = 0;  i
0560: 20 3c 3d 20 6e 4c 65 6e 31 3b 20 20 69 2b 2b 29   <= nLen1;  i++)
0570: 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20   {.             
0580: 20 20 20 6d 61 74 72 69 78 5b 69 5d 5b 30 5d 20     matrix[i][0] 
0590: 3d 20 69 3b 0a 20 20 20 20 20 20 20 20 20 20 20  = i;.           
05a0: 20 7d 0a 20 20 20 20 20 20 20 20 20 20 20 20 66   }.            f
05b0: 6f 72 20 28 6c 65 74 20 6a 20 3d 20 30 3b 20 20  or (let j = 0;  
05c0: 6a 20 3c 3d 20 6e 4c 65 6e 32 3b 20 20 6a 2b 2b  j <= nLen2;  j++
05d0: 29 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20  ) {.            
05e0: 20 20 20 20 6d 61 74 72 69 78 5b 30 5d 5b 6a 5d      matrix[0][j]
05f0: 20 3d 20 6a 3b 0a 20 20 20 20 20 20 20 20 20 20   = j;.          
0600: 20 20 7d 0a 20 20 20 20 20 20 20 20 20 20 20 20    }.            
0610: 66 6f 72 20 28 6c 65 74 20 69 20 3d 20 31 3b 20  for (let i = 1; 
0620: 20 69 20 3c 3d 20 6e 4c 65 6e 31 3b 20 20 69 2b   i <= nLen1;  i+
0630: 2b 29 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20  +) {.           
0640: 20 20 20 20 20 66 6f 72 20 28 6c 65 74 20 6a 20       for (let j 
0650: 3d 20 31 3b 20 20 6a 20 3c 3d 20 6e 4c 65 6e 32  = 1;  j <= nLen2
0660: 3b 20 20 6a 2b 2b 29 20 7b 0a 20 20 20 20 20 20  ;  j++) {.      
0670: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6c 65                le
0680: 74 20 6e 43 6f 73 74 20 3d 20 28 73 31 5b 69 5d  t nCost = (s1[i]
0690: 20 3d 3d 3d 20 73 32 5b 6a 5d 29 20 3f 20 30 20   === s2[j]) ? 0 
06a0: 3a 20 31 3b 0a 20 20 20 20 20 20 20 20 20 20 20  : 1;.           
06b0: 20 20 20 20 20 20 20 20 20 6d 61 74 72 69 78 5b           matrix[
06c0: 69 5d 5b 6a 5d 20 3d 20 4d 61 74 68 2e 6d 69 6e  i][j] = Math.min
06d0: 28 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20  (.              
06e0: 20 20 20 20 20 20 20 20 20 20 6d 61 74 72 69 78            matrix
06f0: 5b 69 2d 31 5d 5b 6a 5d 20 2b 20 31 2c 20 20 20  [i-1][j] + 1,   
0700: 20 20 20 20 20 20 2f 2f 20 44 65 6c 65 74 69 6f        // Deletio
0710: 6e 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20  n.              
0720: 20 20 20 20 20 20 20 20 20 20 6d 61 74 72 69 78            matrix
0730: 5b 69 5d 5b 6a 2d 31 5d 20 2b 20 31 2c 20 20 20  [i][j-1] + 1,   
0740: 20 20 20 20 20 20 2f 2f 20 49 6e 73 65 72 74 69        // Inserti
0750: 6f 6e 0a 20 20 20 20 20 20 20 20 20 20 20 20 20  on.             
0760: 20 20 20 20 20 20 20 20 20 20 20 6d 61 74 72 69             matri
0770: 78 5b 69 2d 31 5d 5b 6a 2d 31 5d 20 2b 20 6e 43  x[i-1][j-1] + nC
0780: 6f 73 74 20 20 20 20 2f 2f 20 53 75 62 73 74 69  ost    // Substi
0790: 74 75 74 69 6f 6e 0a 20 20 20 20 20 20 20 20 20  tution.         
07a0: 20 20 20 20 20 20 20 20 20 20 20 29 3b 0a 20 20             );.  
07b0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                  
07c0: 20 20 69 66 20 28 69 20 3e 20 31 20 26 26 20 6a    if (i > 1 && j
07d0: 20 3e 20 31 20 26 26 20 73 31 5b 69 5d 20 3d 3d   > 1 && s1[i] ==
07e0: 20 73 32 5b 6a 2d 31 5d 20 26 26 20 73 31 5b 69   s2[j-1] && s1[i
07f0: 2d 31 5d 20 3d 3d 20 73 32 5b 6a 5d 29 20 7b 0a  -1] == s2[j]) {.
0800: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                  
0810: 20 20 20 20 20 20 20 20 6d 61 74 72 69 78 5b 69          matrix[i
0820: 5d 5b 6a 5d 20 3d 20 4d 61 74 68 2e 6d 69 6e 28  ][j] = Math.min(
0830: 6d 61 74 72 69 78 5b 69 5d 5b 6a 5d 2c 20 6d 61  matrix[i][j], ma
0840: 74 72 69 78 5b 69 2d 32 5d 5b 6a 2d 32 5d 20 2b  trix[i-2][j-2] +
0850: 20 6e 43 6f 73 74 29 3b 20 20 2f 2f 20 54 72 61   nCost);  // Tra
0860: 6e 73 70 6f 73 69 74 69 6f 6e 0a 20 20 20 20 20  nsposition.     
0870: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d                 }
0880: 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20  .               
0890: 20 7d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d   }.            }
08a0: 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 63  .            //c
08b0: 6f 6e 73 6f 6c 65 2e 6c 6f 67 28 73 32 20 2b 20  onsole.log(s2 + 
08c0: 22 3a 20 22 20 2b 20 6d 61 74 72 69 78 5b 6e 4c  ": " + matrix[nL
08d0: 65 6e 31 5d 5b 6e 4c 65 6e 32 5d 29 3b 0a 20 20  en1][nLen2]);.  
08e0: 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e            return
08f0: 20 6d 61 74 72 69 78 5b 6e 4c 65 6e 31 5d 5b 6e   matrix[nLen1][n
0900: 4c 65 6e 32 5d 3b 0a 20 20 20 20 20 20 20 20 7d  Len2];.        }
0910: 0a 20 20 20 20 20 20 20 20 63 61 74 63 68 20 28  .        catch (
0920: 65 29 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20  e) {.           
0930: 20 68 65 6c 70 65 72 73 2e 6c 6f 67 65 72 72 6f   helpers.logerro
0940: 72 28 65 29 3b 0a 20 20 20 20 20 20 20 20 7d 0a  r(e);.        }.
0950: 20 20 20 20 7d 2c 0a 0a 0a 20 20 20 20 2f 2f 20      },...    // 
0960: 4d 65 74 68 6f 64 3a 20 52 65 6d 6f 76 65 20 55  Method: Remove U
0970: 73 65 6c 65 73 73 20 43 68 61 72 73 0a 0a 20 20  seless Chars..  
0980: 20 20 61 56 6f 76 65 6c 73 3a 20 6e 65 77 20 53    aVovels: new S
0990: 65 74 28 5b 0a 20 20 20 20 20 20 20 20 27 61 27  et([.        'a'
09a0: 2c 20 27 65 27 2c 20 27 69 27 2c 20 27 6f 27 2c  , 'e', 'i', 'o',
09b0: 20 27 75 27 2c 20 27 79 27 2c 0a 20 20 20 20 20   'u', 'y',.     
09c0: 20 20 20 27 c3 a0 27 2c 20 27 c3 a9 27 2c 20 27     '..', '..', '
09d0: c3 ae 27 2c 20 27 c3 b4 27 2c 20 27 c3 bb 27 2c  ..', '..', '..',
09e0: 20 27 c3 bf 27 2c 0a 20 20 20 20 20 20 20 20 27   '..',.        '
09f0: c3 a2 27 2c 20 27 c3 a8 27 2c 20 27 c3 af 27 2c  ..', '..', '..',
0a00: 20 27 c3 b6 27 2c 20 27 c3 b9 27 2c 20 27 c5 b7   '..', '..', '..
0a10: 27 2c 0a 20 20 20 20 20 20 20 20 27 c3 a4 27 2c  ',.        '..',
0a20: 20 27 c3 aa 27 2c 20 27 c3 ad 27 2c 20 27 c3 b3   '..', '..', '..
0a30: 27 2c 20 27 c3 bc 27 2c 20 27 c3 bd 27 2c 0a 20  ', '..', '..',. 
0a40: 20 20 20 20 20 20 20 27 c3 a1 27 2c 20 27 c3 ab         '..', '..
0a50: 27 2c 20 27 c3 ac 27 2c 20 27 c3 b2 27 2c 20 27  ', '..', '..', '
0a60: c3 ba 27 2c 20 27 e1 bb b3 27 2c 0a 20 20 20 20  ..', '...',.    
0a70: 20 20 20 20 27 c4 81 27 2c 20 27 c4 93 27 2c 20      '..', '..', 
0a80: 27 c4 ab 27 2c 20 27 c5 8d 27 2c 20 27 c5 ab 27  '..', '..', '..'
0a90: 2c 20 27 c8 b3 27 2c 0a 20 20 20 20 20 20 20 20  , '..',.        
0aa0: 27 68 27 2c 20 27 c5 93 27 2c 20 27 c3 a6 27 0a  'h', '..', '..'.
0ab0: 20 20 20 20 5d 29 2c 0a 0a 20 20 20 20 73 68 72      ]),..    shr
0ac0: 69 6e 6b 57 6f 72 64 3a 20 66 75 6e 63 74 69 6f  inkWord: functio
0ad0: 6e 20 28 73 57 6f 72 64 29 20 7b 0a 20 20 20 20  n (sWord) {.    
0ae0: 20 20 20 20 2f 2f 20 72 65 6d 6f 76 65 20 76 6f      // remove vo
0af0: 76 65 6c 73 20 61 6e 64 20 68 0a 20 20 20 20 20  vels and h.     
0b00: 20 20 20 6c 65 74 20 73 52 65 73 20 3d 20 22 22     let sRes = ""
0b10: 3b 0a 20 20 20 20 20 20 20 20 66 6f 72 20 28 6c  ;.        for (l
0b20: 65 74 20 63 43 68 61 72 20 6f 66 20 73 57 6f 72  et cChar of sWor
0b30: 64 2e 73 6c 69 63 65 28 31 29 29 20 7b 0a 20 20  d.slice(1)) {.  
0b40: 20 20 20 20 20 20 20 20 20 20 69 66 20 28 21 74            if (!t
0b50: 68 69 73 2e 61 56 6f 76 65 6c 73 2e 68 61 73 28  his.aVovels.has(
0b60: 63 43 68 61 72 29 29 20 7b 0a 20 20 20 20 20 20  cChar)) {.      
0b70: 20 20 20 20 20 20 20 20 20 20 73 52 65 73 20 2b            sRes +
0b80: 3d 20 63 43 68 61 72 3b 0a 20 20 20 20 20 20 20  = cChar;.       
0b90: 20 20 20 20 20 7d 0a 20 20 20 20 20 20 20 20 7d       }.        }
0ba0: 0a 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20  .        return 
0bb0: 73 57 6f 72 64 2e 73 6c 69 63 65 28 30 2c 20 31  sWord.slice(0, 1
0bc0: 29 2e 72 65 70 6c 61 63 65 28 22 68 22 2c 20 22  ).replace("h", "
0bd0: 22 29 20 2b 20 73 52 65 73 3b 0a 20 20 20 20 7d  ") + sRes;.    }
0be0: 2c 0a 0a 0a 20 20 20 20 2f 2f 20 53 69 6d 69 6c  ,...    // Simil
0bf0: 61 72 20 63 68 61 72 73 0a 0a 20 20 20 20 64 31  ar chars..    d1
0c00: 74 6f 31 3a 20 6e 65 77 20 4d 61 70 28 5b 0a 20  to1: new Map([. 
0c10: 20 20 20 20 20 20 20 5b 22 31 22 2c 20 22 6c 69         ["1", "li
0c20: c3 ae 4c 49 c3 8e 22 5d 2c 0a 20 20 20 20 20 20  ..LI.."],.      
0c30: 20 20 5b 22 32 22 2c 20 22 7a 5a 22 5d 2c 0a 20    ["2", "zZ"],. 
0c40: 20 20 20 20 20 20 20 5b 22 33 22 2c 20 22 65 c3         ["3", "e.
0c50: a9 c3 a8 c3 aa 45 c3 89 c3 88 c3 8a 22 5d 2c 0a  .....E......"],.
0c60: 20 20 20 20 20 20 20 20 5b 22 34 22 2c 20 22 61          ["4", "a
0c70: c3 a0 c3 a2 41 c3 80 c3 82 22 5d 2c 0a 20 20 20  ....A...."],.   
0c80: 20 20 20 20 20 5b 22 35 22 2c 20 22 73 67 53 47       ["5", "sgSG
0c90: 22 5d 2c 0a 20 20 20 20 20 20 20 20 5b 22 36 22  "],.        ["6"
0ca0: 2c 20 22 62 64 67 42 44 47 22 5d 2c 0a 20 20 20  , "bdgBDG"],.   
0cb0: 20 20 20 20 20 5b 22 37 22 2c 20 22 6c 74 4c 54       ["7", "ltLT
0cc0: 22 5d 2c 0a 20 20 20 20 20 20 20 20 5b 22 38 22  "],.        ["8"
0cd0: 2c 20 22 62 42 22 5d 2c 0a 20 20 20 20 20 20 20  , "bB"],.       
0ce0: 20 5b 22 39 22 2c 20 22 67 62 64 47 42 44 22 5d   ["9", "gbdGBD"]
0cf0: 2c 0a 20 20 20 20 20 20 20 20 5b 22 30 22 2c 20  ,.        ["0", 
0d00: 22 6f c3 b4 4f c3 94 22 5d 2c 0a 0a 20 20 20 20  "o..O.."],..    
0d10: 20 20 20 20 5b 22 61 22 2c 20 22 61 c3 a0 c3 a2      ["a", "a....
0d20: c3 a1 c3 a4 c3 a6 22 5d 2c 0a 20 20 20 20 20 20  ......"],.      
0d30: 20 20 5b 22 41 22 2c 20 22 41 c3 80 c3 82 c3 81    ["A", "A......
0d40: c3 84 c3 86 22 5d 2c 0a 20 20 20 20 20 20 20 20  ...."],.        
0d50: 5b 22 c3 a0 22 2c 20 22 61 c3 a0 c3 a2 c3 a1 c3  ["..", "a.......
0d60: a4 c3 a6 22 5d 2c 0a 20 20 20 20 20 20 20 20 5b  ..."],.        [
0d70: 22 c3 80 22 2c 20 22 41 c3 80 c3 82 c3 81 c3 84  "..", "A........
0d80: c3 86 22 5d 2c 0a 20 20 20 20 20 20 20 20 5b 22  .."],.        ["
0d90: c3 a2 22 2c 20 22 61 c3 a0 c3 a2 c3 a1 c3 a4 c3  ..", "a.........
0da0: a6 22 5d 2c 0a 20 20 20 20 20 20 20 20 5b 22 c3  ."],.        [".
0db0: 82 22 2c 20 22 41 c3 80 c3 82 c3 81 c3 84 c3 86  .", "A..........
0dc0: 22 5d 2c 0a 20 20 20 20 20 20 20 20 5b 22 c3 a1  "],.        ["..
0dd0: 22 2c 20 22 61 c3 a0 c3 a2 c3 a1 c3 a4 c3 a6 22  ", "a.........."
0de0: 5d 2c 0a 20 20 20 20 20 20 20 20 5b 22 c3 81 22  ],.        [".."
0df0: 2c 20 22 41 c3 80 c3 82 c3 81 c3 84 c3 86 22 5d  , "A.........."]
0e00: 2c 0a 20 20 20 20 20 20 20 20 5b 22 c3 a4 22 2c  ,.        ["..",
0e10: 20 22 61 c3 a0 c3 a2 c3 a1 c3 a4 c3 a6 22 5d 2c   "a.........."],
0e20: 0a 20 20 20 20 20 20 20 20 5b 22 c3 84 22 2c 20  .        ["..", 
0e30: 22 41 c3 80 c3 82 c3 81 c3 84 c3 86 22 5d 2c 0a  "A.........."],.
0e40: 0a 20 20 20 20 20 20 20 20 5b 22 c3 a6 22 2c 20  .        ["..", 
0e50: 22 c3 a6 c3 a9 61 22 5d 2c 0a 20 20 20 20 20 20  "....a"],.      
0e60: 20 20 5b 22 c3 86 22 2c 20 22 c3 86 c3 89 41 22    ["..", "....A"
0e70: 5d 2c 0a 0a 20 20 20 20 20 20 20 20 5b 22 63 22  ],..        ["c"
0e80: 2c 20 22 63 c3 a7 73 6b 71 c5 9b c5 9d 22 5d 2c  , "c..skq...."],
0e90: 0a 20 20 20 20 20 20 20 20 5b 22 43 22 2c 20 22  .        ["C", "
0ea0: 43 c3 87 53 4b 51 c5 9a c5 9c 22 5d 2c 0a 20 20  C..SKQ...."],.  
0eb0: 20 20 20 20 20 20 5b 22 c3 a7 22 2c 20 22 63 c3        ["..", "c.
0ec0: a7 73 6b 71 c5 9b c5 9d 22 5d 2c 0a 20 20 20 20  .skq...."],.    
0ed0: 20 20 20 20 5b 22 c3 87 22 2c 20 22 43 c3 87 53      ["..", "C..S
0ee0: 4b 51 c5 9a c5 9c 22 5d 2c 0a 0a 20 20 20 20 20  KQ...."],..     
0ef0: 20 20 20 5b 22 65 22 2c 20 22 65 c3 a9 c3 a8 c3     ["e", "e.....
0f00: aa c3 ab c5 93 22 5d 2c 0a 20 20 20 20 20 20 20  ....."],.       
0f10: 20 5b 22 45 22 2c 20 22 45 c3 89 c3 88 c3 8a c3   ["E", "E.......
0f20: 8b c5 92 22 5d 2c 0a 20 20 20 20 20 20 20 20 5b  ..."],.        [
0f30: 22 c3 a9 22 2c 20 22 65 c3 a9 c3 a8 c3 aa c3 ab  "..", "e........
0f40: c5 93 22 5d 2c 0a 20 20 20 20 20 20 20 20 5b 22  .."],.        ["
0f50: c3 89 22 2c 20 22 45 c3 89 c3 88 c3 8a c3 8b c5  ..", "E.........
0f60: 92 22 5d 2c 0a 20 20 20 20 20 20 20 20 5b 22 c3  ."],.        [".
0f70: aa 22 2c 20 22 65 c3 a9 c3 a8 c3 aa c3 ab c5 93  .", "e..........
0f80: 22 5d 2c 0a 20 20 20 20 20 20 20 20 5b 22 c3 8a  "],.        ["..
0f90: 22 2c 20 22 45 c3 89 c3 88 c3 8a c3 8b c5 92 22  ", "E.........."
0fa0: 5d 2c 0a 20 20 20 20 20 20 20 20 5b 22 c3 a8 22  ],.        [".."
0fb0: 2c 20 22 65 c3 a9 c3 a8 c3 aa c3 ab c5 93 22 5d  , "e.........."]
0fc0: 2c 0a 20 20 20 20 20 20 20 20 5b 22 c3 88 22 2c  ,.        ["..",
0fd0: 20 22 45 c3 89 c3 88 c3 8a c3 8b c5 92 22 5d 2c   "E.........."],
0fe0: 0a 20 20 20 20 20 20 20 20 5b 22 c3 ab 22 2c 20  .        ["..", 
0ff0: 22 65 c3 a9 c3 a8 c3 aa c3 ab c5 93 22 5d 2c 0a  "e.........."],.
1000: 20 20 20 20 20 20 20 20 5b 22 c3 8b 22 2c 20 22          ["..", "
1010: 45 c3 89 c3 88 c3 8a c3 8b c5 92 22 5d 2c 0a 0a  E.........."],..
1020: 20 20 20 20 20 20 20 20 5b 22 67 22 2c 20 22 67          ["g", "g
1030: 6a 22 5d 2c 0a 20 20 20 20 20 20 20 20 5b 22 47  j"],.        ["G
1040: 22 2c 20 22 47 4a 22 5d 2c 0a 20 20 20 20 20 20  ", "GJ"],.      
1050: 20 20 0a 20 20 20 20 20 20 20 20 5b 22 69 22 2c    .        ["i",
1060: 20 22 69 c3 ae c3 af 79 c3 ad c3 ac c3 bf 22 5d   "i....y......"]
1070: 2c 0a 20 20 20 20 20 20 20 20 5b 22 49 22 2c 20  ,.        ["I", 
1080: 22 49 c3 8e c3 8f 59 c3 8d c3 8c c5 b8 22 5d 2c  "I....Y......"],
1090: 0a 20 20 20 20 20 20 20 20 5b 22 c3 ae 22 2c 20  .        ["..", 
10a0: 22 69 c3 ae c3 af 79 c3 ad c3 ac c3 bf 22 5d 2c  "i....y......"],
10b0: 0a 20 20 20 20 20 20 20 20 5b 22 c3 8e 22 2c 20  .        ["..", 
10c0: 22 49 c3 8e c3 8f 59 c3 8d c3 8c c5 b8 22 5d 2c  "I....Y......"],
10d0: 0a 20 20 20 20 20 20 20 20 5b 22 c3 af 22 2c 20  .        ["..", 
10e0: 22 69 c3 ae c3 af 79 c3 ad c3 ac c3 bf 22 5d 2c  "i....y......"],
10f0: 0a 20 20 20 20 20 20 20 20 5b 22 c3 8f 22 2c 20  .        ["..", 
1100: 22 49 c3 8e c3 8f 59 c3 8d c3 8c c5 b8 22 5d 2c  "I....Y......"],
1110: 0a 20 20 20 20 20 20 20 20 5b 22 c3 ad 22 2c 20  .        ["..", 
1120: 22 69 c3 ae c3 af 79 c3 ad c3 ac c3 bf 22 5d 2c  "i....y......"],
1130: 0a 20 20 20 20 20 20 20 20 5b 22 c3 8d 22 2c 20  .        ["..", 
1140: 22 49 c3 8e c3 8f 59 c3 8d c3 8c c5 b8 22 5d 2c  "I....Y......"],
1150: 0a 20 20 20 20 20 20 20 20 5b 22 c3 ac 22 2c 20  .        ["..", 
1160: 22 69 c3 ae c3 af 79 c3 ad c3 ac c3 bf 22 5d 2c  "i....y......"],
1170: 0a 20 20 20 20 20 20 20 20 5b 22 c3 8c 22 2c 20  .        ["..", 
1180: 22 49 c3 8e c3 8f 59 c3 8d c3 8c c5 b8 22 5d 2c  "I....Y......"],
1190: 0a 0a 20 20 20 20 20 20 20 20 5b 22 6a 22 2c 20  ..        ["j", 
11a0: 22 6a 67 22 5d 2c 0a 20 20 20 20 20 20 20 20 5b  "jg"],.        [
11b0: 22 4a 22 2c 20 22 4a 47 22 5d 2c 0a 0a 20 20 20  "J", "JG"],..   
11c0: 20 20 20 20 20 5b 22 6b 22 2c 20 22 6b 63 71 22       ["k", "kcq"
11d0: 5d 2c 0a 20 20 20 20 20 20 20 20 5b 22 4b 22 2c  ],.        ["K",
11e0: 20 22 4b 43 51 22 5d 2c 0a 0a 20 20 20 20 20 20   "KCQ"],..      
11f0: 20 20 5b 22 6e 22 2c 20 22 6e c3 b1 22 5d 2c 0a    ["n", "n.."],.
1200: 20 20 20 20 20 20 20 20 5b 22 4e 22 2c 20 22 4e          ["N", "N
1210: c3 91 22 5d 2c 0a 0a 20 20 20 20 20 20 20 20 5b  .."],..        [
1220: 22 6f 22 2c 20 22 6f c3 b4 c3 b3 c3 b2 c3 b6 c5  "o", "o.........
1230: 93 22 5d 2c 0a 20 20 20 20 20 20 20 20 5b 22 4f  ."],.        ["O
1240: 22 2c 20 22 4f c3 94 c3 93 c3 92 c3 96 c5 92 22  ", "O.........."
1250: 5d 2c 0a 20 20 20 20 20 20 20 20 5b 22 c3 b4 22  ],.        [".."
1260: 2c 20 22 6f c3 b4 c3 b3 c3 b2 c3 b6 c5 93 22 5d  , "o.........."]
1270: 2c 0a 20 20 20 20 20 20 20 20 5b 22 c3 94 22 2c  ,.        ["..",
1280: 20 22 4f c3 94 c3 93 c3 92 c3 96 c5 92 22 5d 2c   "O.........."],
1290: 0a 20 20 20 20 20 20 20 20 5b 22 c3 b3 22 2c 20  .        ["..", 
12a0: 22 6f c3 b4 c3 b3 c3 b2 c3 b6 c5 93 22 5d 2c 0a  "o.........."],.
12b0: 20 20 20 20 20 20 20 20 5b 22 c3 93 22 2c 20 22          ["..", "
12c0: 4f c3 94 c3 93 c3 92 c3 96 c5 92 22 5d 2c 0a 20  O.........."],. 
12d0: 20 20 20 20 20 20 20 5b 22 c3 b2 22 2c 20 22 6f         ["..", "o
12e0: c3 b4 c3 b3 c3 b2 c3 b6 c5 93 22 5d 2c 0a 20 20  .........."],.  
12f0: 20 20 20 20 20 20 5b 22 c3 92 22 2c 20 22 4f c3        ["..", "O.
1300: 94 c3 93 c3 92 c3 96 c5 92 22 5d 2c 0a 20 20 20  ........."],.   
1310: 20 20 20 20 20 5b 22 c3 b6 22 2c 20 22 6f c3 b4       ["..", "o..
1320: c3 b3 c3 b2 c3 b6 c5 93 22 5d 2c 0a 20 20 20 20  ........"],.    
1330: 20 20 20 20 5b 22 c3 96 22 2c 20 22 4f c3 94 c3      ["..", "O...
1340: 93 c3 92 c3 96 c5 92 22 5d 2c 0a 0a 20 20 20 20  ......."],..    
1350: 20 20 20 20 5b 22 c5 93 22 2c 20 22 c5 93 6f c3      ["..", "..o.
1360: b4 65 c3 a9 c3 a8 c3 aa c3 ab 22 5d 2c 0a 20 20  .e........"],.  
1370: 20 20 20 20 20 20 5b 22 c5 92 22 2c 20 22 c5 92        ["..", "..
1380: 4f c3 94 45 c3 89 c3 88 c3 8a c3 8b 22 5d 2c 0a  O..E........"],.
1390: 0a 20 20 20 20 20 20 20 20 5b 22 71 22 2c 20 22  .        ["q", "
13a0: 71 63 6b 22 5d 2c 0a 20 20 20 20 20 20 20 20 5b  qck"],.        [
13b0: 22 51 22 2c 20 22 51 43 4b 22 5d 2c 0a 0a 20 20  "Q", "QCK"],..  
13c0: 20 20 20 20 20 20 5b 22 73 22 2c 20 22 73 c5 9b        ["s", "s..
13d0: c5 9d 63 c3 a7 22 5d 2c 0a 20 20 20 20 20 20 20  ..c.."],.       
13e0: 20 5b 22 53 22 2c 20 22 53 c5 9a c5 9c 43 c3 87   ["S", "S....C..
13f0: 22 5d 2c 0a 20 20 20 20 20 20 20 20 5b 22 c5 9b  "],.        ["..
1400: 22 2c 20 22 73 c5 9b c5 9d 63 c3 a7 22 5d 2c 0a  ", "s....c.."],.
1410: 20 20 20 20 20 20 20 20 5b 22 c5 9a 22 2c 20 22          ["..", "
1420: 53 c5 9a c5 9c 43 c3 87 22 5d 2c 0a 20 20 20 20  S....C.."],.    
1430: 20 20 20 20 5b 22 c5 9d 22 2c 20 22 73 c5 9b c5      ["..", "s...
1440: 9d 63 c3 a7 22 5d 2c 0a 20 20 20 20 20 20 20 20  .c.."],.        
1450: 5b 22 c5 9c 22 2c 20 22 53 c5 9a c5 9c 43 c3 87  ["..", "S....C..
1460: 22 5d 2c 0a 0a 20 20 20 20 20 20 20 20 5b 22 75  "],..        ["u
1470: 22 2c 20 22 75 c3 bb c3 b9 c3 bc c3 ba 22 5d 2c  ", "u........"],
1480: 0a 20 20 20 20 20 20 20 20 5b 22 55 22 2c 20 22  .        ["U", "
1490: 55 c3 9b c3 99 c3 9c c3 9a 22 5d 2c 0a 20 20 20  U........"],.   
14a0: 20 20 20 20 20 5b 22 c3 bb 22 2c 20 22 75 c3 bb       ["..", "u..
14b0: c3 b9 c3 bc c3 ba 22 5d 2c 0a 20 20 20 20 20 20  ......"],.      
14c0: 20 20 5b 22 c3 9b 22 2c 20 22 55 c3 9b c3 99 c3    ["..", "U.....
14d0: 9c c3 9a 22 5d 2c 0a 20 20 20 20 20 20 20 20 5b  ..."],.        [
14e0: 22 c3 b9 22 2c 20 22 75 c3 bb c3 b9 c3 bc c3 ba  "..", "u........
14f0: 22 5d 2c 0a 20 20 20 20 20 20 20 20 5b 22 c3 99  "],.        ["..
1500: 22 2c 20 22 55 c3 9b c3 99 c3 9c c3 9a 22 5d 2c  ", "U........"],
1510: 0a 20 20 20 20 20 20 20 20 5b 22 c3 bc 22 2c 20  .        ["..", 
1520: 22 75 c3 bb c3 b9 c3 bc c3 ba 22 5d 2c 0a 20 20  "u........"],.  
1530: 20 20 20 20 20 20 5b 22 c3 9c 22 2c 20 22 55 c3        ["..", "U.
1540: 9b c3 99 c3 9c c3 9a 22 5d 2c 0a 20 20 20 20 20  ......."],.     
1550: 20 20 20 5b 22 c3 ba 22 2c 20 22 75 c3 bb c3 b9     ["..", "u....
1560: c3 bc c3 ba 22 5d 2c 0a 20 20 20 20 20 20 20 20  ...."],.        
1570: 5b 22 c3 9a 22 2c 20 22 55 c3 9b c3 99 c3 9c c3  ["..", "U.......
1580: 9a 22 5d 2c 0a 0a 20 20 20 20 20 20 20 20 5b 22  ."],..        ["
1590: 76 22 2c 20 22 76 77 22 5d 2c 0a 20 20 20 20 20  v", "vw"],.     
15a0: 20 20 20 5b 22 56 22 2c 20 22 56 57 22 5d 2c 0a     ["V", "VW"],.
15b0: 0a 20 20 20 20 20 20 20 20 5b 22 77 22 2c 20 22  .        ["w", "
15c0: 77 76 22 5d 2c 0a 20 20 20 20 20 20 20 20 5b 22  wv"],.        ["
15d0: 57 22 2c 20 22 57 56 22 5d 2c 0a 0a 20 20 20 20  W", "WV"],..    
15e0: 20 20 20 20 5b 22 78 22 2c 20 22 78 63 6b 22 5d      ["x", "xck"]
15f0: 2c 0a 20 20 20 20 20 20 20 20 5b 22 58 22 2c 20  ,.        ["X", 
1600: 22 58 43 4b 22 5d 2c 0a 0a 20 20 20 20 20 20 20  "XCK"],..       
1610: 20 5b 22 79 22 2c 20 22 79 c3 bf 69 c3 ae c5 b7   ["y", "y..i....
1620: c3 bd e1 bb b3 22 5d 2c 0a 20 20 20 20 20 20 20  ....."],.       
1630: 20 5b 22 59 22 2c 20 22 59 c5 b8 49 c3 8e c5 b6   ["Y", "Y..I....
1640: c3 9d e1 bb b2 22 5d 2c 0a 20 20 20 20 20 20 20  ....."],.       
1650: 20 5b 22 c3 bf 22 2c 20 22 79 c3 bf 69 c3 ae c5   ["..", "y..i...
1660: b7 c3 bd e1 bb b3 22 5d 2c 0a 20 20 20 20 20 20  ......"],.      
1670: 20 20 5b 22 c5 b8 22 2c 20 22 59 c5 b8 49 c3 8e    ["..", "Y..I..
1680: c5 b6 c3 9d e1 bb b2 22 5d 2c 0a 20 20 20 20 20  ......."],.     
1690: 20 20 20 5b 22 c5 b7 22 2c 20 22 79 c3 bf 69 c3     ["..", "y..i.
16a0: ae c5 b7 c3 bd e1 bb b3 22 5d 2c 0a 20 20 20 20  ........"],.    
16b0: 20 20 20 20 5b 22 c5 b6 22 2c 20 22 59 c5 b8 49      ["..", "Y..I
16c0: c3 8e c5 b6 c3 9d e1 bb b2 22 5d 2c 0a 20 20 20  ........."],.   
16d0: 20 20 20 20 20 5b 22 c3 bd 22 2c 20 22 79 c3 bf       ["..", "y..
16e0: 69 c3 ae c5 b7 c3 bd e1 bb b3 22 5d 2c 0a 20 20  i........."],.  
16f0: 20 20 20 20 20 20 5b 22 c3 9d 22 2c 20 22 59 c5        ["..", "Y.
1700: b8 49 c3 8e c5 b6 c3 9d e1 bb b2 22 5d 2c 0a 20  .I........."],. 
1710: 20 20 20 20 20 20 20 5b 22 e1 bb b3 22 2c 20 22         ["...", "
1720: 79 c3 bf 69 c3 ae c5 b7 c3 bd e1 bb b3 22 5d 2c  y..i........."],
1730: 0a 20 20 20 20 20 20 20 20 5b 22 e1 bb b2 22 2c  .        ["...",
1740: 20 22 59 c5 b8 49 c3 8e c5 b6 c3 9d e1 bb b2 22   "Y..I........."
1750: 5d 2c 0a 0a 20 20 20 20 20 20 20 20 5b 22 7a 22  ],..        ["z"
1760: 2c 20 22 7a 73 22 5d 2c 0a 20 20 20 20 20 20 20  , "zs"],.       
1770: 20 5b 22 5a 22 2c 20 22 5a 53 22 5d 2c 0a 20 20   ["Z", "ZS"],.  
1780: 20 20 5d 29 2c 0a 0a 20 20 20 20 64 31 74 6f 58    ]),..    d1toX
1790: 3a 20 6e 65 77 20 4d 61 70 28 5b 0a 20 20 20 20  : new Map([.    
17a0: 20 20 20 20 5b 22 c3 a6 22 2c 20 5b 22 61 65 22      ["..", ["ae"
17b0: 2c 5d 5d 2c 0a 20 20 20 20 20 20 20 20 5b 22 c3  ,]],.        [".
17c0: 86 22 2c 20 5b 22 41 45 22 2c 5d 5d 2c 0a 20 20  .", ["AE",]],.  
17d0: 20 20 20 20 20 20 5b 22 62 22 2c 20 5b 22 62 62        ["b", ["bb
17e0: 22 2c 5d 5d 2c 0a 20 20 20 20 20 20 20 20 5b 22  ",]],.        ["
17f0: 42 22 2c 20 5b 22 42 42 22 2c 5d 5d 2c 0a 20 20  B", ["BB",]],.  
1800: 20 20 20 20 20 20 5b 22 63 22 2c 20 5b 22 63 63        ["c", ["cc
1810: 22 2c 20 22 73 73 22 2c 20 22 71 75 22 2c 20 22  ", "ss", "qu", "
1820: 63 68 22 5d 5d 2c 0a 20 20 20 20 20 20 20 20 5b  ch"]],.        [
1830: 22 43 22 2c 20 5b 22 43 43 22 2c 20 22 53 53 22  "C", ["CC", "SS"
1840: 2c 20 22 51 55 22 2c 20 22 43 48 22 5d 5d 2c 0a  , "QU", "CH"]],.
1850: 20 20 20 20 20 20 20 20 5b 22 c3 a7 22 2c 20 5b          ["..", [
1860: 22 73 73 22 2c 20 22 63 63 22 2c 20 22 71 68 22  "ss", "cc", "qh"
1870: 2c 20 22 63 68 22 5d 5d 2c 0a 20 20 20 20 20 20  , "ch"]],.      
1880: 20 20 5b 22 c3 87 22 2c 20 5b 22 53 53 22 2c 20    ["..", ["SS", 
1890: 22 43 43 22 2c 20 22 51 48 22 2c 20 22 43 48 22  "CC", "QH", "CH"
18a0: 5d 5d 2c 0a 20 20 20 20 20 20 20 20 5b 22 64 22  ]],.        ["d"
18b0: 2c 20 5b 22 64 64 22 2c 5d 5d 2c 0a 20 20 20 20  , ["dd",]],.    
18c0: 20 20 20 20 5b 22 44 22 2c 20 5b 22 44 44 22 2c      ["D", ["DD",
18d0: 5d 5d 2c 0a 20 20 20 20 20 20 20 20 5b 22 66 22  ]],.        ["f"
18e0: 2c 20 5b 22 66 66 22 2c 20 22 70 68 22 5d 5d 2c  , ["ff", "ph"]],
18f0: 0a 20 20 20 20 20 20 20 20 5b 22 46 22 2c 20 5b  .        ["F", [
1900: 22 46 46 22 2c 20 22 50 48 22 5d 5d 2c 0a 20 20  "FF", "PH"]],.  
1910: 20 20 20 20 20 20 5b 22 67 22 2c 20 5b 22 67 75        ["g", ["gu
1920: 22 2c 20 22 67 65 22 2c 20 22 67 67 22 2c 20 22  ", "ge", "gg", "
1930: 67 68 22 5d 5d 2c 0a 20 20 20 20 20 20 20 20 5b  gh"]],.        [
1940: 22 47 22 2c 20 5b 22 47 55 22 2c 20 22 47 45 22  "G", ["GU", "GE"
1950: 2c 20 22 47 47 22 2c 20 22 47 48 22 5d 5d 2c 0a  , "GG", "GH"]],.
1960: 20 20 20 20 20 20 20 20 5b 22 69 22 2c 20 5b 22          ["i", ["
1970: 69 69 22 2c 5d 5d 2c 0a 20 20 20 20 20 20 20 20  ii",]],.        
1980: 5b 22 49 22 2c 20 5b 22 49 49 22 2c 5d 5d 2c 0a  ["I", ["II",]],.
1990: 20 20 20 20 20 20 20 20 5b 22 6a 22 2c 20 5b 22          ["j", ["
19a0: 6a 6a 22 2c 20 22 64 6a 22 5d 5d 2c 0a 20 20 20  jj", "dj"]],.   
19b0: 20 20 20 20 20 5b 22 4a 22 2c 20 5b 22 4a 4a 22       ["J", ["JJ"
19c0: 2c 20 22 44 4a 22 5d 5d 2c 0a 20 20 20 20 20 20  , "DJ"]],.      
19d0: 20 20 5b 22 6b 22 2c 20 5b 22 71 75 22 2c 20 22    ["k", ["qu", "
19e0: 63 6b 22 2c 20 22 63 68 22 2c 20 22 63 75 22 2c  ck", "ch", "cu",
19f0: 20 22 6b 6b 22 2c 20 22 6b 68 22 5d 5d 2c 0a 20   "kk", "kh"]],. 
1a00: 20 20 20 20 20 20 20 5b 22 4b 22 2c 20 5b 22 51         ["K", ["Q
1a10: 55 22 2c 20 22 43 4b 22 2c 20 22 43 48 22 2c 20  U", "CK", "CH", 
1a20: 22 43 55 22 2c 20 22 4b 4b 22 2c 20 22 4b 48 22  "CU", "KK", "KH"
1a30: 5d 5d 2c 0a 20 20 20 20 20 20 20 20 5b 22 6c 22  ]],.        ["l"
1a40: 2c 20 5b 22 6c 6c 22 2c 5d 5d 2c 0a 20 20 20 20  , ["ll",]],.    
1a50: 20 20 20 20 5b 22 4c 22 2c 20 5b 22 4c 4c 22 2c      ["L", ["LL",
1a60: 5d 5d 2c 0a 20 20 20 20 20 20 20 20 5b 22 6d 22  ]],.        ["m"
1a70: 2c 20 5b 22 6d 6d 22 2c 20 22 6d 6e 22 5d 5d 2c  , ["mm", "mn"]],
1a80: 0a 20 20 20 20 20 20 20 20 5b 22 4d 22 2c 20 5b  .        ["M", [
1a90: 22 4d 4d 22 2c 20 22 4d 4e 22 5d 5d 2c 0a 20 20  "MM", "MN"]],.  
1aa0: 20 20 20 20 20 20 5b 22 6e 22 2c 20 5b 22 6e 6e        ["n", ["nn
1ab0: 22 2c 20 22 6e 6d 22 2c 20 22 6d 6e 22 5d 5d 2c  ", "nm", "mn"]],
1ac0: 0a 20 20 20 20 20 20 20 20 5b 22 4e 22 2c 20 5b  .        ["N", [
1ad0: 22 4e 4e 22 2c 20 22 4e 4d 22 2c 20 22 4d 4e 22  "NN", "NM", "MN"
1ae0: 5d 5d 2c 0a 20 20 20 20 20 20 20 20 5b 22 6f 22  ]],.        ["o"
1af0: 2c 20 5b 22 61 75 22 2c 20 22 65 61 75 22 2c 20  , ["au", "eau", 
1b00: 22 61 75 74 22 5d 5d 2c 0a 20 20 20 20 20 20 20  "aut"]],.       
1b10: 20 5b 22 4f 22 2c 20 5b 22 41 55 22 2c 20 22 45   ["O", ["AU", "E
1b20: 41 55 22 2c 20 22 41 55 54 22 5d 5d 2c 0a 20 20  AU", "AUT"]],.  
1b30: 20 20 20 20 20 20 5b 22 c5 93 22 2c 20 5b 22 6f        ["..", ["o
1b40: 65 22 2c 20 22 65 75 22 5d 5d 2c 0a 20 20 20 20  e", "eu"]],.    
1b50: 20 20 20 20 5b 22 c5 92 22 2c 20 5b 22 4f 45 22      ["..", ["OE"
1b60: 2c 20 22 45 55 22 5d 5d 2c 0a 20 20 20 20 20 20  , "EU"]],.      
1b70: 20 20 5b 22 70 22 2c 20 5b 22 70 70 22 2c 20 22    ["p", ["pp", "
1b80: 70 68 22 5d 5d 2c 0a 20 20 20 20 20 20 20 20 5b  ph"]],.        [
1b90: 22 50 22 2c 20 5b 22 50 50 22 2c 20 22 50 48 22  "P", ["PP", "PH"
1ba0: 5d 5d 2c 0a 20 20 20 20 20 20 20 20 5b 22 71 22  ]],.        ["q"
1bb0: 2c 20 5b 22 71 75 22 2c 20 22 63 68 22 2c 20 22  , ["qu", "ch", "
1bc0: 63 71 22 2c 20 22 63 6b 22 2c 20 22 6b 6b 22 5d  cq", "ck", "kk"]
1bd0: 5d 2c 0a 20 20 20 20 20 20 20 20 5b 22 51 22 2c  ],.        ["Q",
1be0: 20 5b 22 51 55 22 2c 20 22 43 48 22 2c 20 22 43   ["QU", "CH", "C
1bf0: 51 22 2c 20 22 43 4b 22 2c 20 22 4b 4b 22 5d 5d  Q", "CK", "KK"]]
1c00: 2c 0a 20 20 20 20 20 20 20 20 5b 22 72 22 2c 20  ,.        ["r", 
1c10: 5b 22 72 72 22 2c 5d 5d 2c 0a 20 20 20 20 20 20  ["rr",]],.      
1c20: 20 20 5b 22 52 22 2c 20 5b 22 52 52 22 2c 5d 5d    ["R", ["RR",]]
1c30: 2c 0a 20 20 20 20 20 20 20 20 5b 22 73 22 2c 20  ,.        ["s", 
1c40: 5b 22 73 73 22 2c 20 22 73 68 22 5d 5d 2c 0a 20  ["ss", "sh"]],. 
1c50: 20 20 20 20 20 20 20 5b 22 53 22 2c 20 5b 22 53         ["S", ["S
1c60: 53 22 2c 20 22 53 48 22 5d 5d 2c 0a 20 20 20 20  S", "SH"]],.    
1c70: 20 20 20 20 5b 22 74 22 2c 20 5b 22 74 74 22 2c      ["t", ["tt",
1c80: 20 22 74 68 22 5d 5d 2c 0a 20 20 20 20 20 20 20   "th"]],.       
1c90: 20 5b 22 54 22 2c 20 5b 22 54 54 22 2c 20 22 54   ["T", ["TT", "T
1ca0: 48 22 5d 5d 2c 0a 20 20 20 20 20 20 20 20 5b 22  H"]],.        ["
1cb0: 78 22 2c 20 5b 22 63 63 22 2c 20 22 63 74 22 2c  x", ["cc", "ct",
1cc0: 20 22 78 78 22 5d 5d 2c 0a 20 20 20 20 20 20 20   "xx"]],.       
1cd0: 20 5b 22 58 22 2c 20 5b 22 43 43 22 2c 20 22 43   ["X", ["CC", "C
1ce0: 54 22 2c 20 22 58 58 22 5d 5d 2c 0a 20 20 20 20  T", "XX"]],.    
1cf0: 20 20 20 20 5b 22 7a 22 2c 20 5b 22 73 73 22 2c      ["z", ["ss",
1d00: 20 22 7a 68 22 5d 5d 2c 0a 20 20 20 20 20 20 20   "zh"]],.       
1d10: 20 5b 22 5a 22 2c 20 5b 22 53 53 22 2c 20 22 5a   ["Z", ["SS", "Z
1d20: 48 22 5d 5d 2c 0a 20 20 20 20 5d 29 2c 0a 0a 20  H"]],.    ]),.. 
1d30: 20 20 20 64 32 74 6f 58 3a 20 6e 65 77 20 4d 61     d2toX: new Ma
1d40: 70 28 5b 0a 20 20 20 20 20 20 20 20 5b 22 61 6e  p([.        ["an
1d50: 22 2c 20 5b 22 65 6e 22 2c 5d 5d 2c 0a 20 20 20  ", ["en",]],.   
1d60: 20 20 20 20 20 5b 22 41 4e 22 2c 20 5b 22 45 4e       ["AN", ["EN
1d70: 22 2c 5d 5d 2c 0a 20 20 20 20 20 20 20 20 5b 22  ",]],.        ["
1d80: 65 6e 22 2c 20 5b 22 61 6e 22 2c 5d 5d 2c 0a 20  en", ["an",]],. 
1d90: 20 20 20 20 20 20 20 5b 22 45 4e 22 2c 20 5b 22         ["EN", ["
1da0: 41 4e 22 2c 5d 5d 2c 0a 20 20 20 20 20 20 20 20  AN",]],.        
1db0: 5b 22 61 69 22 2c 20 5b 22 65 69 22 2c 20 22 c3  ["ai", ["ei", ".
1dc0: a9 22 2c 20 22 c3 a8 22 2c 20 22 c3 aa 22 2c 20  .", "..", "..", 
1dd0: 22 c3 ab 22 5d 5d 2c 0a 20 20 20 20 20 20 20 20  ".."]],.        
1de0: 5b 22 41 49 22 2c 20 5b 22 45 49 22 2c 20 22 c3  ["AI", ["EI", ".
1df0: 89 22 2c 20 22 c3 88 22 2c 20 22 c3 8a 22 2c 20  .", "..", "..", 
1e00: 22 c3 8b 22 5d 5d 2c 0a 20 20 20 20 20 20 20 20  ".."]],.        
1e10: 5b 22 65 69 22 2c 20 5b 22 61 69 22 2c 20 22 c3  ["ei", ["ai", ".
1e20: a9 22 2c 20 22 c3 a8 22 2c 20 22 c3 aa 22 2c 20  .", "..", "..", 
1e30: 22 c3 ab 22 5d 5d 2c 0a 20 20 20 20 20 20 20 20  ".."]],.        
1e40: 5b 22 45 49 22 2c 20 5b 22 41 49 22 2c 20 22 c3  ["EI", ["AI", ".
1e50: 89 22 2c 20 22 c3 88 22 2c 20 22 c3 8a 22 2c 20  .", "..", "..", 
1e60: 22 c3 8b 22 5d 5d 2c 0a 20 20 20 20 20 20 20 20  ".."]],.        
1e70: 5b 22 63 68 22 2c 20 5b 22 73 68 22 2c 20 22 63  ["ch", ["sh", "c
1e80: 22 2c 20 22 73 73 22 5d 5d 2c 0a 20 20 20 20 20  ", "ss"]],.     
1e90: 20 20 20 5b 22 43 48 22 2c 20 5b 22 53 48 22 2c     ["CH", ["SH",
1ea0: 20 22 43 22 2c 20 22 53 53 22 5d 5d 2c 0a 20 20   "C", "SS"]],.  
1eb0: 20 20 20 20 20 20 5b 22 63 74 22 2c 20 5b 22 78        ["ct", ["x
1ec0: 22 2c 20 22 63 63 22 5d 5d 2c 0a 20 20 20 20 20  ", "cc"]],.     
1ed0: 20 20 20 5b 22 43 54 22 2c 20 5b 22 58 22 2c 20     ["CT", ["X", 
1ee0: 22 43 43 22 5d 5d 2c 0a 20 20 20 20 20 20 20 20  "CC"]],.        
1ef0: 5b 22 6f 61 22 2c 20 5b 22 6f 69 22 2c 5d 5d 2c  ["oa", ["oi",]],
1f00: 0a 20 20 20 20 20 20 20 20 5b 22 4f 41 22 2c 20  .        ["OA", 
1f10: 5b 22 4f 49 22 2c 5d 5d 2c 0a 20 20 20 20 20 20  ["OI",]],.      
1f20: 20 20 5b 22 6f 69 22 2c 20 5b 22 6f 61 22 2c 20    ["oi", ["oa", 
1f30: 22 6f 69 65 22 5d 5d 2c 0a 20 20 20 20 20 20 20  "oie"]],.       
1f40: 20 5b 22 4f 49 22 2c 20 5b 22 4f 41 22 2c 20 22   ["OI", ["OA", "
1f50: 4f 49 45 22 5d 5d 2c 0a 20 20 20 20 20 20 20 20  OIE"]],.        
1f60: 5b 22 71 75 22 2c 20 5b 22 71 22 2c 20 22 63 71  ["qu", ["q", "cq
1f70: 22 2c 20 22 63 6b 22 2c 20 22 63 22 2c 20 22 6b  ", "ck", "c", "k
1f80: 22 5d 5d 2c 0a 20 20 20 20 20 20 20 20 5b 22 51  "]],.        ["Q
1f90: 55 22 2c 20 5b 22 51 22 2c 20 22 43 51 22 2c 20  U", ["Q", "CQ", 
1fa0: 22 43 4b 22 2c 20 22 43 22 2c 20 22 4b 22 5d 5d  "CK", "C", "K"]]
1fb0: 2c 0a 20 20 20 20 20 20 20 20 5b 22 73 73 22 2c  ,.        ["ss",
1fc0: 20 5b 22 63 22 2c 20 22 c3 a7 22 5d 5d 2c 0a 20   ["c", ".."]],. 
1fd0: 20 20 20 20 20 20 20 5b 22 53 53 22 2c 20 5b 22         ["SS", ["
1fe0: 43 22 2c 20 22 c3 87 22 5d 5d 2c 0a 20 20 20 20  C", ".."]],.    
1ff0: 5d 29 2c 0a 0a 20 20 20 20 2f 2f 20 45 6e 64 20  ]),..    // End 
2000: 6f 66 20 77 6f 72 64 0a 20 20 20 20 64 46 69 6e  of word.    dFin
2010: 61 6c 31 3a 20 6e 65 77 20 4d 61 70 28 5b 0a 20  al1: new Map([. 
2020: 20 20 20 20 20 20 20 5b 22 61 22 2c 20 5b 22 61         ["a", ["a
2030: 73 22 2c 20 22 61 74 22 2c 20 22 61 6e 74 22 2c  s", "at", "ant",
2040: 20 22 61 68 22 5d 5d 2c 0a 20 20 20 20 20 20 20   "ah"]],.       
2050: 20 5b 22 41 22 2c 20 5b 22 41 53 22 2c 20 22 41   ["A", ["AS", "A
2060: 54 22 2c 20 22 41 4e 54 22 2c 20 22 41 48 22 5d  T", "ANT", "AH"]
2070: 5d 2c 0a 20 20 20 20 20 20 20 20 5b 22 63 22 2c  ],.        ["c",
2080: 20 5b 22 63 68 22 2c 5d 5d 2c 0a 20 20 20 20 20   ["ch",]],.     
2090: 20 20 20 5b 22 43 22 2c 20 5b 22 43 48 22 2c 5d     ["C", ["CH",]
20a0: 5d 2c 0a 20 20 20 20 20 20 20 20 5b 22 65 22 2c  ],.        ["e",
20b0: 20 5b 22 65 74 22 2c 20 22 65 72 22 2c 20 22 65   ["et", "er", "e
20c0: 74 73 22 2c 20 22 c3 a9 65 22 2c 20 22 65 7a 22  ts", "..e", "ez"
20d0: 2c 20 22 61 69 22 2c 20 22 61 69 73 22 2c 20 22  , "ai", "ais", "
20e0: 61 69 74 22 2c 20 22 65 6e 74 22 2c 20 22 65 68  ait", "ent", "eh
20f0: 22 5d 5d 2c 0a 20 20 20 20 20 20 20 20 5b 22 45  "]],.        ["E
2100: 22 2c 20 5b 22 45 54 22 2c 20 22 45 52 22 2c 20  ", ["ET", "ER", 
2110: 22 45 54 53 22 2c 20 22 c3 89 45 22 2c 20 22 45  "ETS", "..E", "E
2120: 5a 22 2c 20 22 41 49 22 2c 20 22 41 49 53 22 2c  Z", "AI", "AIS",
2130: 20 22 41 49 54 22 2c 20 22 45 4e 54 22 2c 20 22   "AIT", "ENT", "
2140: 45 48 22 5d 5d 2c 0a 20 20 20 20 20 20 20 20 5b  EH"]],.        [
2150: 22 c3 a9 22 2c 20 5b 22 65 74 22 2c 20 22 65 72  "..", ["et", "er
2160: 22 2c 20 22 65 74 73 22 2c 20 22 c3 a9 65 22 2c  ", "ets", "..e",
2170: 20 22 65 7a 22 2c 20 22 61 69 22 2c 20 22 61 69   "ez", "ai", "ai
2180: 73 22 2c 20 22 61 69 74 22 5d 5d 2c 0a 20 20 20  s", "ait"]],.   
2190: 20 20 20 20 20 5b 22 c3 89 22 2c 20 5b 22 45 54       ["..", ["ET
21a0: 22 2c 20 22 45 52 22 2c 20 22 45 54 53 22 2c 20  ", "ER", "ETS", 
21b0: 22 c3 89 45 22 2c 20 22 45 5a 22 2c 20 22 41 49  "..E", "EZ", "AI
21c0: 22 2c 20 22 41 49 53 22 2c 20 22 41 49 54 22 5d  ", "AIS", "AIT"]
21d0: 5d 2c 0a 20 20 20 20 20 20 20 20 5b 22 c3 a8 22  ],.        [".."
21e0: 2c 20 5b 22 65 74 22 2c 20 22 65 72 22 2c 20 22  , ["et", "er", "
21f0: 65 74 73 22 2c 20 22 c3 a9 65 22 2c 20 22 65 7a  ets", "..e", "ez
2200: 22 2c 20 22 61 69 22 2c 20 22 61 69 73 22 2c 20  ", "ai", "ais", 
2210: 22 61 69 74 22 5d 5d 2c 0a 20 20 20 20 20 20 20  "ait"]],.       
2220: 20 5b 22 c3 88 22 2c 20 5b 22 45 54 22 2c 20 22   ["..", ["ET", "
2230: 45 52 22 2c 20 22 45 54 53 22 2c 20 22 c3 89 45  ER", "ETS", "..E
2240: 22 2c 20 22 45 5a 22 2c 20 22 41 49 22 2c 20 22  ", "EZ", "AI", "
2250: 41 49 53 22 2c 20 22 41 49 54 22 5d 5d 2c 0a 20  AIS", "AIT"]],. 
2260: 20 20 20 20 20 20 20 5b 22 c3 aa 22 2c 20 5b 22         ["..", ["
2270: 65 74 22 2c 20 22 65 72 22 2c 20 22 65 74 73 22  et", "er", "ets"
2280: 2c 20 22 c3 a9 65 22 2c 20 22 65 7a 22 2c 20 22  , "..e", "ez", "
2290: 61 69 22 2c 20 22 61 69 73 22 2c 20 22 61 69 74  ai", "ais", "ait
22a0: 22 5d 5d 2c 0a 20 20 20 20 20 20 20 20 5b 22 c3  "]],.        [".
22b0: 8a 22 2c 20 5b 22 45 54 22 2c 20 22 45 52 22 2c  .", ["ET", "ER",
22c0: 20 22 45 54 53 22 2c 20 22 c3 89 45 22 2c 20 22   "ETS", "..E", "
22d0: 45 5a 22 2c 20 22 41 49 22 2c 20 22 41 49 53 22  EZ", "AI", "AIS"
22e0: 2c 20 22 41 49 54 22 5d 5d 2c 0a 20 20 20 20 20  , "AIT"]],.     
22f0: 20 20 20 5b 22 c3 ab 22 2c 20 5b 22 65 74 22 2c     ["..", ["et",
2300: 20 22 65 72 22 2c 20 22 65 74 73 22 2c 20 22 c3   "er", "ets", ".
2310: a9 65 22 2c 20 22 65 7a 22 2c 20 22 61 69 22 2c  .e", "ez", "ai",
2320: 20 22 61 69 73 22 2c 20 22 61 69 74 22 5d 5d 2c   "ais", "ait"]],
2330: 0a 20 20 20 20 20 20 20 20 5b 22 c3 8b 22 2c 20  .        ["..", 
2340: 5b 22 45 54 22 2c 20 22 45 52 22 2c 20 22 45 54  ["ET", "ER", "ET
2350: 53 22 2c 20 22 c3 89 45 22 2c 20 22 45 5a 22 2c  S", "..E", "EZ",
2360: 20 22 41 49 22 2c 20 22 41 49 53 22 2c 20 22 41   "AI", "AIS", "A
2370: 49 54 22 5d 5d 2c 0a 20 20 20 20 20 20 20 20 5b  IT"]],.        [
2380: 22 67 22 2c 20 5b 22 67 68 22 2c 5d 5d 2c 0a 20  "g", ["gh",]],. 
2390: 20 20 20 20 20 20 20 5b 22 47 22 2c 20 5b 22 47         ["G", ["G
23a0: 48 22 2c 5d 5d 2c 0a 20 20 20 20 20 20 20 20 5b  H",]],.        [
23b0: 22 69 22 2c 20 5b 22 69 73 22 2c 20 22 69 74 22  "i", ["is", "it"
23c0: 2c 20 22 69 65 22 2c 20 22 69 6e 22 5d 5d 2c 0a  , "ie", "in"]],.
23d0: 20 20 20 20 20 20 20 20 5b 22 49 22 2c 20 5b 22          ["I", ["
23e0: 49 53 22 2c 20 22 49 54 22 2c 20 22 49 45 22 2c  IS", "IT", "IE",
23f0: 20 22 49 4e 22 5d 5d 2c 0a 20 20 20 20 20 20 20   "IN"]],.       
2400: 20 5b 22 6e 22 2c 20 5b 22 6e 74 22 2c 20 22 6e   ["n", ["nt", "n
2410: 64 22 2c 20 22 6e 73 22 2c 20 22 6e 68 22 5d 5d  d", "ns", "nh"]]
2420: 2c 0a 20 20 20 20 20 20 20 20 5b 22 4e 22 2c 20  ,.        ["N", 
2430: 5b 22 4e 54 22 2c 20 22 4e 44 22 2c 20 22 4e 53  ["NT", "ND", "NS
2440: 22 2c 20 22 4e 48 22 5d 5d 2c 0a 20 20 20 20 20  ", "NH"]],.     
2450: 20 20 20 5b 22 6f 22 2c 20 5b 22 61 75 74 22 2c     ["o", ["aut",
2460: 20 22 6f 74 22 2c 20 22 6f 73 22 5d 5d 2c 0a 20   "ot", "os"]],. 
2470: 20 20 20 20 20 20 20 5b 22 4f 22 2c 20 5b 22 41         ["O", ["A
2480: 55 54 22 2c 20 22 4f 54 22 2c 20 22 4f 53 22 5d  UT", "OT", "OS"]
2490: 5d 2c 0a 20 20 20 20 20 20 20 20 5b 22 c3 b4 22  ],.        [".."
24a0: 2c 20 5b 22 61 75 74 22 2c 20 22 6f 74 22 2c 20  , ["aut", "ot", 
24b0: 22 6f 73 22 5d 5d 2c 0a 20 20 20 20 20 20 20 20  "os"]],.        
24c0: 5b 22 c3 94 22 2c 20 5b 22 41 55 54 22 2c 20 22  ["..", ["AUT", "
24d0: 4f 54 22 2c 20 22 4f 53 22 5d 5d 2c 0a 20 20 20  OT", "OS"]],.   
24e0: 20 20 20 20 20 5b 22 c3 b6 22 2c 20 5b 22 61 75       ["..", ["au
24f0: 74 22 2c 20 22 6f 74 22 2c 20 22 6f 73 22 5d 5d  t", "ot", "os"]]
2500: 2c 0a 20 20 20 20 20 20 20 20 5b 22 c3 96 22 2c  ,.        ["..",
2510: 20 5b 22 41 55 54 22 2c 20 22 4f 54 22 2c 20 22   ["AUT", "OT", "
2520: 4f 53 22 5d 5d 2c 0a 20 20 20 20 20 20 20 20 5b  OS"]],.        [
2530: 22 70 22 2c 20 5b 22 70 68 22 2c 5d 5d 2c 0a 20  "p", ["ph",]],. 
2540: 20 20 20 20 20 20 20 5b 22 50 22 2c 20 5b 22 50         ["P", ["P
2550: 48 22 2c 5d 5d 2c 0a 20 20 20 20 20 20 20 20 5b  H",]],.        [
2560: 22 73 22 2c 20 5b 22 73 68 22 2c 5d 5d 2c 0a 20  "s", ["sh",]],. 
2570: 20 20 20 20 20 20 20 5b 22 53 22 2c 20 5b 22 53         ["S", ["S
2580: 48 22 2c 5d 5d 2c 0a 20 20 20 20 20 20 20 20 5b  H",]],.        [
2590: 22 74 22 2c 20 5b 22 74 68 22 2c 5d 5d 2c 0a 20  "t", ["th",]],. 
25a0: 20 20 20 20 20 20 20 5b 22 54 22 2c 20 5b 22 54         ["T", ["T
25b0: 48 22 2c 5d 5d 2c 0a 20 20 20 20 20 20 20 20 5b  H",]],.        [
25c0: 22 75 22 2c 20 5b 22 75 74 22 2c 20 22 75 73 22  "u", ["ut", "us"
25d0: 2c 20 22 75 68 22 5d 5d 2c 0a 20 20 20 20 20 20  , "uh"]],.      
25e0: 20 20 5b 22 55 22 2c 20 5b 22 55 54 22 2c 20 22    ["U", ["UT", "
25f0: 55 53 22 2c 20 22 55 48 22 5d 5d 2c 0a 20 20 20  US", "UH"]],.   
2600: 20 5d 29 2c 0a 0a 20 20 20 20 64 46 69 6e 61 6c   ]),..    dFinal
2610: 32 3a 20 6e 65 77 20 4d 61 70 28 5b 0a 20 20 20  2: new Map([.   
2620: 20 20 20 20 20 5b 22 61 69 22 2c 20 5b 22 61 69       ["ai", ["ai
2630: 65 6e 74 22 2c 20 22 61 69 73 22 2c 20 22 65 74  ent", "ais", "et
2640: 22 5d 5d 2c 0a 20 20 20 20 20 20 20 20 5b 22 41  "]],.        ["A
2650: 49 22 2c 20 5b 22 41 49 45 4e 54 22 2c 20 22 41  I", ["AIENT", "A
2660: 49 53 22 2c 20 22 45 54 22 5d 5d 2c 0a 20 20 20  IS", "ET"]],.   
2670: 20 20 20 20 20 5b 22 61 6e 22 2c 20 5b 22 61 6e       ["an", ["an
2680: 74 22 2c 20 22 65 6e 74 22 5d 5d 2c 0a 20 20 20  t", "ent"]],.   
2690: 20 20 20 20 20 5b 22 41 4e 22 2c 20 5b 22 41 4e       ["AN", ["AN
26a0: 54 22 2c 20 22 45 4e 54 22 5d 5d 2c 0a 20 20 20  T", "ENT"]],.   
26b0: 20 20 20 20 20 5b 22 65 6e 22 2c 20 5b 22 65 6e       ["en", ["en
26c0: 74 22 2c 20 22 61 6e 74 22 5d 5d 2c 0a 20 20 20  t", "ant"]],.   
26d0: 20 20 20 20 20 5b 22 45 4e 22 2c 20 5b 22 45 4e       ["EN", ["EN
26e0: 54 22 2c 20 22 41 4e 54 22 5d 5d 2c 0a 20 20 20  T", "ANT"]],.   
26f0: 20 20 20 20 20 5b 22 65 69 22 2c 20 5b 22 61 69       ["ei", ["ai
2700: 74 22 2c 20 22 61 69 73 22 5d 5d 2c 0a 20 20 20  t", "ais"]],.   
2710: 20 20 20 20 20 5b 22 45 49 22 2c 20 5b 22 41 49       ["EI", ["AI
2720: 54 22 2c 20 22 41 49 53 22 5d 5d 2c 0a 20 20 20  T", "AIS"]],.   
2730: 20 20 20 20 20 5b 22 6f 6e 22 2c 20 5b 22 6f 6e       ["on", ["on
2740: 73 22 2c 20 22 6f 6e 74 22 5d 5d 2c 0a 20 20 20  s", "ont"]],.   
2750: 20 20 20 20 20 5b 22 4f 4e 22 2c 20 5b 22 4f 4e       ["ON", ["ON
2760: 53 22 2c 20 22 4f 4e 54 22 5d 5d 2c 0a 20 20 20  S", "ONT"]],.   
2770: 20 20 20 20 20 5b 22 6f 69 22 2c 20 5b 22 6f 69       ["oi", ["oi
2780: 73 22 2c 20 22 6f 69 74 22 2c 20 22 6f 69 78 22  s", "oit", "oix"
2790: 5d 5d 2c 0a 20 20 20 20 20 20 20 20 5b 22 4f 49  ]],.        ["OI
27a0: 22 2c 20 5b 22 4f 49 53 22 2c 20 22 4f 49 54 22  ", ["OIS", "OIT"
27b0: 2c 20 22 4f 49 58 22 5d 5d 2c 0a 20 20 20 20 5d  , "OIX"]],.    ]
27c0: 29 2c 0a 0a 0a 20 20 20 20 2f 2f 20 50 72 c3 a9  ),...    // Pr..
27d0: 66 69 78 65 73 20 65 74 20 73 75 66 66 69 78 65  fixes et suffixe
27e0: 73 0a 20 20 20 20 61 50 66 78 31 3a 20 6e 65 77  s.    aPfx1: new
27f0: 20 53 65 74 28 5b 0a 20 20 20 20 20 20 20 20 22   Set([.        "
2800: 61 6e 74 69 22 2c 20 22 61 72 63 68 69 22 2c 20  anti", "archi", 
2810: 22 63 6f 6e 74 72 65 22 2c 20 22 68 79 70 65 72  "contre", "hyper
2820: 22 2c 20 22 6d c3 a9 22 2c 20 22 6d c3 a9 74 61  ", "m..", "m..ta
2830: 22 2c 20 22 69 6d 22 2c 20 22 69 6e 22 2c 20 22  ", "im", "in", "
2840: 69 72 22 2c 20 22 70 61 72 22 2c 20 22 70 72 6f  ir", "par", "pro
2850: 74 6f 22 2c 0a 20 20 20 20 20 20 20 20 22 70 73  to",.        "ps
2860: 65 75 64 6f 22 2c 20 22 70 72 c3 a9 22 2c 20 22  eudo", "pr..", "
2870: 72 65 22 2c 20 22 72 c3 a9 22 2c 20 22 73 61 6e  re", "r..", "san
2880: 73 22 2c 20 22 73 6f 75 73 22 2c 20 22 73 75 70  s", "sous", "sup
2890: 72 61 22 2c 20 22 73 75 72 22 2c 20 22 75 6c 74  ra", "sur", "ult
28a0: 72 61 22 0a 20 20 20 20 5d 29 2c 0a 0a 20 20 20  ra".    ]),..   
28b0: 20 61 50 66 78 32 3a 20 6e 65 77 20 53 65 74 28   aPfx2: new Set(
28c0: 5b 0a 20 20 20 20 20 20 20 20 22 62 65 6c 67 6f  [.        "belgo
28d0: 22 2c 20 22 66 72 61 6e 63 6f 22 2c 20 22 67 c3  ", "franco", "g.
28e0: a9 6e 69 74 6f 22 2c 20 22 67 79 6e c3 a9 63 6f  .nito", "gyn..co
28f0: 22 2c 20 22 6d c3 a9 64 69 63 6f 22 2c 20 22 72  ", "m..dico", "r
2900: 75 73 73 6f 22 0a 20 20 20 20 5d 29 2c 0a 0a 0a  usso".    ]),...
2910: 20 20 20 20 63 75 74 3a 20 66 75 6e 63 74 69 6f      cut: functio
2920: 6e 20 28 73 57 6f 72 64 29 20 7b 0a 20 20 20 20  n (sWord) {.    
2930: 20 20 20 20 2f 2f 20 72 65 74 75 72 6e 73 20 61      // returns a
2940: 6e 20 61 72 72 79 20 6f 66 20 73 74 72 69 6e 67  n arry of string
2950: 73 20 28 70 72 65 66 69 78 2c 20 74 72 69 6d 65  s (prefix, trime
2960: 64 5f 77 6f 72 64 2c 20 73 75 66 66 69 78 29 0a  d_word, suffix).
2970: 20 20 20 20 20 20 20 20 6c 65 74 20 6d 20 3d 20          let m = 
2980: 2f 5e 28 5b 61 2d 7a 41 2d 5a c3 a0 2d c3 b6 c3  /^([a-zA-Z..-...
2990: 80 2d c3 96 30 2d 39 5f c3 b8 2d c3 bf c3 98 2d  .-..0-9_..-....-
29a0: c3 9f c4 80 2d ca af ef ac 81 2d ef ac 86 5d 2b  ....-.....-...]+
29b0: 29 28 2d 28 3f 3a 74 2d 7c 29 28 3f 3a 69 6c 73  )(-(?:t-|)(?:ils
29c0: 3f 7c 65 6c 6c 65 73 7c 6f 6e 7c 6a 65 7c 74 75  ?|elles|on|je|tu
29d0: 7c 6e 6f 75 73 7c 76 6f 75 73 29 24 29 2f 2e 65  |nous|vous)$)/.e
29e0: 78 65 63 28 73 57 6f 72 64 29 3b 0a 20 20 20 20  xec(sWord);.    
29f0: 20 20 20 20 69 66 20 28 6d 29 20 7b 0a 20 20 20      if (m) {.   
2a00: 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20           return 
2a10: 5b 22 22 2c 20 6d 5b 31 5d 2c 20 6d 5b 32 5d 5d  ["", m[1], m[2]]
2a20: 3b 0a 20 20 20 20 20 20 20 20 7d 0a 20 20 20 20  ;.        }.    
2a30: 20 20 20 20 72 65 74 75 72 6e 20 5b 22 22 2c 20      return ["", 
2a40: 73 57 6f 72 64 2c 20 22 22 5d 3b 0a 20 20 20 20  sWord, ""];.    
2a50: 7d 2c 0a 0a 20 20 20 20 2f 2f 20 4f 74 68 65 72  },..    // Other
2a60: 20 66 75 6e 63 74 69 6f 6e 73 0a 20 20 20 20 66   functions.    f
2a70: 69 6c 74 65 72 53 75 67 67 3a 20 66 75 6e 63 74  ilterSugg: funct
2a80: 69 6f 6e 20 28 61 53 75 67 67 29 20 7b 0a 20 20  ion (aSugg) {.  
2a90: 20 20 20 20 20 20 72 65 74 75 72 6e 20 61 53 75        return aSu
2aa0: 67 67 2e 66 69 6c 74 65 72 28 28 73 53 75 67 67  gg.filter((sSugg
2ab0: 29 20 3d 3e 20 7b 20 72 65 74 75 72 6e 20 21 73  ) => { return !s
2ac0: 53 75 67 67 2e 65 6e 64 73 57 69 74 68 28 22 c3  Sugg.endsWith(".
2ad0: a8 22 29 20 26 26 20 21 73 53 75 67 67 2e 65 6e  .") && !sSugg.en
2ae0: 64 73 57 69 74 68 28 22 c3 88 22 29 3b 20 7d 29  dsWith(".."); })
2af0: 3b 0a 20 20 20 20 7d 0a 0a 7d 0a                 ;.    }..}.