Home » CEEFAX disks » telesoftware12.adl » 20-01-89/Anag\TXT

20-01-89/Anag\TXT

This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.

Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.

Tape/disk: Home » CEEFAX disks » telesoftware12.adl
Filename: 20-01-89/Anag\TXT
Read OK:
File size: 0444 bytes
Load address: 0000
Exec address: FFFFFFFF
File contents
                              ANAGRAM 2

This utility is an update  of a previously  published  program, which lists
the anagrams of a given word. The  first  version  listed  all the anagrams
with no "intelligence" and so could take a long time with longer words, and
many of the  anagrams would  be rubbish.  This version  has a new  facility
whereby  you can specify a number of  exceptions  which are not  allowed in
the  English  language.  This  is done  by creating  an Ascii  file  called
ANAG.DAT  containing each  exception  on a  different line.  You  can enter
these exceptions in three ways:

 1. The  exception  on its own.  So,  for  example  QN  (or  most of the Q?
    letter pairs) would be ignored. EXAMPLE: QN

 2. The exception followed by a *.  Here  the  exception is only left out if
    it's found at the  start of a word. An example is  CK which can end, but
    not start a word. EXAMPLE: CK*

 3. The exception followed by a #. These exceptions are only compared to the
    end of a word. So, CR can start a word but not end it. EXAMPLE: CR#
00000000  0d 0a 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |..              |
00000010  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00000020  41 4e 41 47 52 41 4d 20  32 0d 0a 0d 0a 54 68 69  |ANAGRAM 2....Thi|
00000030  73 20 75 74 69 6c 69 74  79 20 69 73 20 61 6e 20  |s utility is an |
00000040  75 70 64 61 74 65 20 20  6f 66 20 61 20 70 72 65  |update  of a pre|
00000050  76 69 6f 75 73 6c 79 20  20 70 75 62 6c 69 73 68  |viously  publish|
00000060  65 64 20 20 70 72 6f 67  72 61 6d 2c 20 77 68 69  |ed  program, whi|
00000070  63 68 20 6c 69 73 74 73  0d 0a 74 68 65 20 61 6e  |ch lists..the an|
00000080  61 67 72 61 6d 73 20 6f  66 20 61 20 67 69 76 65  |agrams of a give|
00000090  6e 20 77 6f 72 64 2e 20  54 68 65 20 20 66 69 72  |n word. The  fir|
000000a0  73 74 20 20 76 65 72 73  69 6f 6e 20 20 6c 69 73  |st  version  lis|
000000b0  74 65 64 20 20 61 6c 6c  20 74 68 65 20 61 6e 61  |ted  all the ana|
000000c0  67 72 61 6d 73 0d 0a 77  69 74 68 20 6e 6f 20 22  |grams..with no "|
000000d0  69 6e 74 65 6c 6c 69 67  65 6e 63 65 22 20 61 6e  |intelligence" an|
000000e0  64 20 73 6f 20 63 6f 75  6c 64 20 74 61 6b 65 20  |d so could take |
000000f0  61 20 6c 6f 6e 67 20 74  69 6d 65 20 77 69 74 68  |a long time with|
00000100  20 6c 6f 6e 67 65 72 20  77 6f 72 64 73 2c 20 61  | longer words, a|
00000110  6e 64 0d 0a 6d 61 6e 79  20 6f 66 20 74 68 65 20  |nd..many of the |
00000120  20 61 6e 61 67 72 61 6d  73 20 77 6f 75 6c 64 20  | anagrams would |
00000130  20 62 65 20 72 75 62 62  69 73 68 2e 20 20 54 68  | be rubbish.  Th|
00000140  69 73 20 76 65 72 73 69  6f 6e 20 20 68 61 73 20  |is version  has |
00000150  61 20 6e 65 77 20 20 66  61 63 69 6c 69 74 79 0d  |a new  facility.|
00000160  0a 77 68 65 72 65 62 79  20 20 79 6f 75 20 63 61  |.whereby  you ca|
00000170  6e 20 73 70 65 63 69 66  79 20 61 20 6e 75 6d 62  |n specify a numb|
00000180  65 72 20 6f 66 20 20 65  78 63 65 70 74 69 6f 6e  |er of  exception|
00000190  73 20 20 77 68 69 63 68  20 61 72 65 20 6e 6f 74  |s  which are not|
000001a0  20 20 61 6c 6c 6f 77 65  64 20 69 6e 0d 0a 74 68  |  allowed in..th|
000001b0  65 20 20 45 6e 67 6c 69  73 68 20 20 6c 61 6e 67  |e  English  lang|
000001c0  75 61 67 65 2e 20 20 54  68 69 73 20 20 69 73 20  |uage.  This  is |
000001d0  64 6f 6e 65 20 20 62 79  20 63 72 65 61 74 69 6e  |done  by creatin|
000001e0  67 20 20 61 6e 20 41 73  63 69 69 20 20 66 69 6c  |g  an Ascii  fil|
000001f0  65 20 20 63 61 6c 6c 65  64 0d 0a 41 4e 41 47 2e  |e  called..ANAG.|
00000200  44 41 54 20 20 63 6f 6e  74 61 69 6e 69 6e 67 20  |DAT  containing |
00000210  65 61 63 68 20 20 65 78  63 65 70 74 69 6f 6e 20  |each  exception |
00000220  20 6f 6e 20 61 20 20 64  69 66 66 65 72 65 6e 74  | on a  different|
00000230  20 6c 69 6e 65 2e 20 20  59 6f 75 20 20 63 61 6e  | line.  You  can|
00000240  20 65 6e 74 65 72 0d 0a  74 68 65 73 65 20 65 78  | enter..these ex|
00000250  63 65 70 74 69 6f 6e 73  20 69 6e 20 74 68 72 65  |ceptions in thre|
00000260  65 20 77 61 79 73 3a 0d  0a 0d 0a 20 31 2e 20 54  |e ways:.... 1. T|
00000270  68 65 20 20 65 78 63 65  70 74 69 6f 6e 20 20 6f  |he  exception  o|
00000280  6e 20 69 74 73 20 6f 77  6e 2e 20 20 53 6f 2c 20  |n its own.  So, |
00000290  20 66 6f 72 20 20 65 78  61 6d 70 6c 65 20 20 51  | for  example  Q|
000002a0  4e 20 20 28 6f 72 20 20  6d 6f 73 74 20 6f 66 20  |N  (or  most of |
000002b0  74 68 65 20 51 3f 0d 0a  20 20 20 20 6c 65 74 74  |the Q?..    lett|
000002c0  65 72 20 70 61 69 72 73  29 20 77 6f 75 6c 64 20  |er pairs) would |
000002d0  62 65 20 69 67 6e 6f 72  65 64 2e 20 45 58 41 4d  |be ignored. EXAM|
000002e0  50 4c 45 3a 20 51 4e 0d  0a 0d 0a 20 32 2e 20 54  |PLE: QN.... 2. T|
000002f0  68 65 20 65 78 63 65 70  74 69 6f 6e 20 66 6f 6c  |he exception fol|
00000300  6c 6f 77 65 64 20 62 79  20 61 20 2a 2e 20 20 48  |lowed by a *.  H|
00000310  65 72 65 20 20 74 68 65  20 20 65 78 63 65 70 74  |ere  the  except|
00000320  69 6f 6e 20 69 73 20 6f  6e 6c 79 20 6c 65 66 74  |ion is only left|
00000330  20 6f 75 74 20 69 66 0d  0a 20 20 20 20 69 74 27  | out if..    it'|
00000340  73 20 66 6f 75 6e 64 20  61 74 20 74 68 65 20 20  |s found at the  |
00000350  73 74 61 72 74 20 6f 66  20 61 20 77 6f 72 64 2e  |start of a word.|
00000360  20 41 6e 20 65 78 61 6d  70 6c 65 20 69 73 20 20  | An example is  |
00000370  43 4b 20 77 68 69 63 68  20 63 61 6e 20 65 6e 64  |CK which can end|
00000380  2c 20 62 75 74 0d 0a 20  20 20 20 6e 6f 74 20 73  |, but..    not s|
00000390  74 61 72 74 20 61 20 77  6f 72 64 2e 20 45 58 41  |tart a word. EXA|
000003a0  4d 50 4c 45 3a 20 43 4b  2a 0d 0a 0d 0a 20 33 2e  |MPLE: CK*.... 3.|
000003b0  20 54 68 65 20 65 78 63  65 70 74 69 6f 6e 20 66  | The exception f|
000003c0  6f 6c 6c 6f 77 65 64 20  62 79 20 61 20 23 2e 20  |ollowed by a #. |
000003d0  54 68 65 73 65 20 65 78  63 65 70 74 69 6f 6e 73  |These exceptions|
000003e0  20 61 72 65 20 6f 6e 6c  79 20 63 6f 6d 70 61 72  | are only compar|
000003f0  65 64 20 74 6f 20 74 68  65 0d 0a 20 20 20 20 65  |ed to the..    e|
00000400  6e 64 20 6f 66 20 61 20  77 6f 72 64 2e 20 53 6f  |nd of a word. So|
00000410  2c 20 43 52 20 63 61 6e  20 73 74 61 72 74 20 61  |, CR can start a|
00000420  20 77 6f 72 64 20 62 75  74 20 6e 6f 74 20 65 6e  | word but not en|
00000430  64 20 69 74 2e 20 45 58  41 4d 50 4c 45 3a 20 43  |d it. EXAMPLE: C|
00000440  52 23 0d 0a                                       |R#..|
00000444
20-01-89/Anag\TXT.m0
20-01-89/Anag\TXT.m1
20-01-89/Anag\TXT.m2
20-01-89/Anag\TXT.m4
20-01-89/Anag\TXT.m5