These two steps essentially complete the lookup operation. The final step merely uses the table of dictionary usage to select the dictionary information that pertains to each form matched in the text form list, and uses the list of information cells recorded in text order to attach the appropriate information to each occurrence in text. The list of text forms in the W-region of memory and the contents of the information cells in the X and Y-regions are no longer required. Only the assignment of the information cells is important.
The first stage of translation after glossary lookup is structural analysis of the input text. The grammatical description of each occurrence in the text must be retrieved from the dictionary to permit such an analysis. A description of this process will serve to illustrate how any type of information can be retrieved from the dictionary and attached to each text occurrence.
The grammatic descriptions of all forms in the dictionary are recorded in a separate part of the dictionary file. The order is identical to the ordering of the forms they describe. When entries are being retrieved from this file, the table of dictionary usage indicates which entries to skip and which entries to store in the computer. This selection rejection process takes place as the file is read. Each entry that is selected for storage is written into the next available cells of the W-region. The address of the first cell and the number of cells used is written in the information cell for the form. (The address of the information cell is also supplied by the table of dictionary usage.) When the complete file has been read, the grammatic descriptions for all text forms found in the dictionary have been stored in the W-region; the information cell assigned to each text form contains the address of the grammatic description of the form it represents. Hence, the description of each text occurrence can be retrieved by reading the list of text ordered information cell addresses and outputting the description indicated by the information cell for each occurrence.