Character processing system with spelling check function

Abstract: A character processing system with a spelling check function comprising: input means, storage means for stor­ ing character information, display means for displaying the character information or the like, control means for storing the character information input from the input means in the storage means and also outputting the char­ acter information on the display means, condensed dic­ tionary storage means provided with a dictionary proper composed of a plural number of blocks and storing the first word of the block in the form of a noncondensed character string and the second and subsequent words in the state of information in condensed relative code and the relative condensed codes replaced with the modified Huffman codes, respectively, and an index section for the dictionary proper, and spelling check means for perform­ ing a retrieval of the keyword, working with the condensed dictionary storage means, upon reception of spelling check instructions input from the input means.

Description: This invention relates to a character processing system capable of performing spelling checks. One method for checking spellings in documents consists in compiling a two-dimensional table with words in the European language dictionary arranged typically in the order of the initial letters in such words and of the numbers of characters of which such words are composed and then retrieving any appropriate words from the two-dimensional table. This retrieval method, as explained with reference to the words beginning with the letter "C" as shown in Table 5 and Table 5b, works with 1,006 entries of words having "C" in the initial position and composed of seven letters, similarly 1,154 word entries having "C" in the initial position and composed of eight letters, and as many as 1,092 word entries having "C" in the initial position and composed of nine letters, with the result that a retrieval of the word, "COMPANY," for example, is performed by at least 1,006 times (503 times in the case of such retrieval by a dichotomizing search method) of comparing and referring operations to the two-dimensional table. Furthermore, in the retrieval of words from a dictionary for the European language words which are classified merely by their order based on the initial letters, more frequent comparing and referring operations are performed. However, in the spelling checks with the dictionary of the European language words for the character processing system described above, the processing speed for a retrieval is very slow, so that the system is not adequately usable in relation to any real-time processing of words with a typewriter or the like. Another available method, for example described in U.S. 4,503,514 is found in increasing the processing speed by turning words wholly into hash codes. However, because of the correcting function (for correcting misspelling), which is required immediately after the realization of the spelling check function, a dictionary employing hash codes presents a problem in that it has a low degree of accuracy because the dictionary is not capable of reproducing the original array of letters. Furthermore, not yet established in the current state of the art is how the word data should be edited in a dictionary of words for European language writings. This is in spite of the fact that the volume of the dictionary and the efficiency of retrieval are influenced by the specific method of editing the word data. This is due to the fact that the word data are composed of a large number of items and additionally that peculiar relations exist among word data themselves since such data contain many changes in forms including plural forms and conjugated forms for example, and this is reflected by a failure in the effort readily to attain a reduction of the capacity of the dictionary without any decline in the efficiency of retrieval notwithstanding that the shift code method, the compact code method, and the Huffman code method have all hitherto been known as methods of storing the data with high efficiency in data bases (Information Processing Society of Japan; The 18th General Meeting (1977), Lecture Summary pp 65 - 66 and The 19th General Meeting (1978), Lecture Summary pp 855 - 856). Dictionary condensation by dividing a word into parts and encoding the parts is practised by the present invention. Thus the latter provides a character processing system, with a spelling check function, comprising: input means for inputting character information and various types of instructions; storage means for storing character information in compressed format and in a state permitting its reading; display means for displaying the character information and the inputted instructions; control means for storing character information, inputted by the input means, in the storage means and for outputting the character information to the display means; and condensed dictionary storage means incorporating a dictionary proper composed of a plurality of n-byte storage blocks, said dictionary proper storing a respective first word in each of the blocks in the form of a character string with subsequent words thereafter stored in the form of a relative code with a common part relative to an immediately preceding word as the object. The invention is characterised in that the first word in each block in the dictionary proper is composed of non-compressed bytes, said dictionary proper storing words, not transformable into relative condensed code, by means of Huffman encoding allocated in consideration of the frequency of occurrence; in that the condensed dictionary storage means also includes an index section for storing block numbers, indicating the number of blocks forming a specified stored group, and offsets derived from the dictionary proper, such that the index section indicates the number of bytes from an initial position of the dictionary proper at which an indicated block is located; and in that said system further comprising spelling check means responsive to the control means and coupled to said condensed dictionary storage means for performing a dichotomizing search of a specified block, the address of the specified block being determined as a function of the first two letters of a search word, which function specifies the offset and block number stored in the index section, corresponding to the block, to retrieve the search word. Thus this invention offers a character processing system capable of increasing the processing speed for performing spelling checks on words by an attempt at reducing the storage capacity of the dictionary by encoding the words in accordance with their frequencies of occurrence and also by dividing the words into blocks. In the preferred operation of this invention, instructions given by the input means for a spelling check will set the processing system into computing the address for the storage of the index information on the basis of the initial two letters of the keyword, taking out the offset and block number of the index, then performing a dichotomizing search of the initial first word in the beginning of the block of the dictionary proper by a searching operation on the block as the system, finding in which block of the dictionary proper the keyword is stored, selecting the block, and decoding the Huffman codes in regular sequence from the first part of the block so selected, and thereby retrieving the keyword. In the preferred arrangement according to the invention it is possible to increase the retrieving speed on the occasion of a spelling check by virtue of a reduction of the storage capacity of the European language word dictionary used for the spelling check since the system has edited the frequency of occurrence of words into the Huffman codes and also keeps the words as divided into the blocks as the system. The invention will now be described by way of example and with reference to the accompanying drawings wherein: Fig. 1 is a block diagram showing the basic construction of the character processing system with a spelling check function as proposed in this invention. Fig. 2 is a block diagram illustrating the construction of one example of embodiment of this invention. Fig. 3 is an illustrative drawing showing the construction of the condensed dictionary by this invention. Fig. 4 is an illustrative drawing showing the relative condensation of words in this invention. Fig. 5 is an illustrative drawing showing the formation of blocks in the dictionary by this invention. Fig. 6 is a schematic drawing showing the construction of the index information section by this invention. Fig. 7 is a schematic drawing showing the construction of the code column for the first word in the initial part by this invention. Fig. 8 is an illustrative drawing showing the condensed relative condensed code by this invention. Fig. 9 is a schematic drawing showing the construction of the dictionary proper by this invention. Fig. 10a, 10b and 10c are flow charts describing the working of the examples of embodiment. In Fig. 1, 1 represents input means for inputting character information and various types of instructions, 2 shows storage means for storing the aforementioned character information in a state permitting its reading, 3 shows display means for displaying thereon the character information and the various types of instructions, and 4 shows control means for storing the character information input from the input means 1 in the storage means 2 and outputting the same to the display means 3. 5 shows condensed dictionary means, which is composed of a dictionary proper and an index section. The dictionary proper is constructed with blocks divided for every n-bytes as the unit, and one such block stores therein the first word in the initial part of the block in the form of a noncondensed character string by the byte as the unit as converted into the prescribed code, with the words related to the first word and subsequent thereto, including the second word, being stored in the state of information in condensed relative code expressing a common part with the word stored one location ahead of the word which is the object, with the noncondensed codes not transformable into the relative condensed codes being replaced with the Huffman codes as allocated in consideration of the frequency of their occurrence. The index section is composed of offsets derived from the dictionary proper mentioned above and the number of blocks in a group as shown by the offsets. 6 shows spelling check means which performs dichotomizing search block by block with regard to the first word in the block, computing from the initial two letters of the keyword the address where the index information of the condensed dictionary storage means 5 is stored and taking out the offset and block number of the index when the spelling check instructions are being input from the input means 1 mentioned above. Of the character processing system provided with a spelling check function and having a construction as described herein-above, an embodiment of this invention is explained in the following. Fig. 2 is a block diagram showing the construction of the embodiment. In this Figure, 10 represents an input apparatus employed for input of word information, and this apparatus consists, for example, of a keyboard, a tablette device, an optical character reader, a magnetic tape device, or the like. In case a keyboard is employed for the input apparatus, the role of spelling check key for giving instructions for a spelling check is allocated to any of the character input keys. 11 shows a storage device for storing the character information input from the input apparatus 10, and the storage device consists, for example, of a core memory, an IC memory, a magnetic disk, or the like. 12 represents an output apparatus which outputs the information stored in memory and edited in the storage device 11. 13 shows a spelling check dictionary apparatus which furnished effective information from time to time as appropriate in response to inquiries into spelling information on the character and word data stored in the storage device 2, and this dictionary apparatus consists, for example, of a core memory, an IC memory, a RAM, or a magnetic disk. 14 shows a control apparatus, which controls the exchanges of signals among the various individual apparatuses forming the construction mentioned above, is composed, for example, of a computer and execute the functions of the spelling check means. Next, a detailed description is given with respect to the spelling check dictionary apparatus, which constitutes the part characteristic of any embodiment of this invention. Fig. 3 shows the fundamental structure of a condensed dictionary, which has a condensed dictionary capacity, for use as the spelling check dictionary means. As shown in this Figure, the condensed dictionary is composed of an index section and the dictionary proper. The index section consists of offsets derived from the initial part of the dictionary proper in which a string of words beginning with the two initial letters XX is stored and the number of blocks which are accommodated in the inside of the index section as described later herein. The dictionary proper is composed of blocks, as the units thereof, which are divided for every n-bytes, and the first word in the beginning of each block is contained in the form of string of uncondensed characters in bytes as the unit as converted into the internal code. The second and any subsequent words in each block are stored in the form of relative condensed code (i.e. a code representing the common part with the word immediately ahead) and in the Huffman code replacing the noncondensed character code not subjectable to relative condensation as allocated on the basis of the frequencies of occurrence of such character codes. Accordingly, if the word string beginning with XX exceeds the n-bytes, which is the length of the block, then a plural number of blocks are present within one and the same index. For performing any spelling check in such a case, the address at which the index information is stored is to be computed on the basis of the initial two letters in the keyword, and the offsets of the index and the block number thereof are to be taken out. Then, as the offset, the block number, and the block length n are known, dichotomizing search is to be performed by the block as the unit with respect to the noncondensed word in the above-mentioned initial part of the block. Now that it is possible to find out at this stage in what block the keyword is stored, the keyword is retrieved by decoding the Huffman codes one by one in regular sequence from the initial part of the block which is the object of the retrieval. Types of Characters Handled 64 types comprising &, ′, 0 - 9, A - Z, a - z. However, "-" has a special meaning when it is used in hyphenation. Dictionary The source dictionary subjected to condensation is an English language word dictionary in which such morphologically changed forms as the inflected forms of nouns and the conjugated forms of verbs are recorded on the assumption that they are utterly different words from their root forms. Moreover, although in the English word dictionary one letter in the word length, such as "a", "&", ", (comma)" or the numberals, is in existence, such one letter is ignored and not stored, while two or more letters are stored. Basic Algorithm for Condensation An English word dictionary will offer very close correlations to the neighboring words if it is made to perform sorting in the ASCII code sequence i.e. in the order of the character codes). That is to say, a large number of letters in duplication occur more frequently in the beginning parts of words, and, through utilization of this noticed feature, it is possible, to condense a dictionary by the method consisting in replacing the overlapping character strings with special codes. (Refer to Fig. 4.) However, if such condensation is performed by this method, it is required in the process of a retrieval of an item in the dictionary to perform the retrieving operation in regular sequence from the beginning of the dictionary, and, in the worst case, the retrieving operation will be carried through the entirety of the dictionary from its beginning to its end even on the occasion of a spelling check performed on a word not recorded in the dictionary. Therefore, if the dictionary is divided into blocks each having a certain value of length (block length), i.e. n-bytes, with the first word in the block not subjected to relative condensation, it is possible to apply the dichotomizing search method by the block as the unit to the character strings not subjected to this relative condensation. (Refer to Fig. 5.) Accordingly, the retrieval of any entry in the dictionary is to be performed by the three steps described in the following. i) On the basis of the index value for the keyword, index information on such items as the offset and the block number is to be obtained from the index table. ii) Dichotomizing search is performed by the block as the unit on the basis of the offset, the block number, and the block length n which are obtained by the step described in i), and the block in which the keyword is considered to be stored should be specifically identified. iii) Only with respect to the block specified by the step described in ii), retrieving operation is to be performed in regular sequence from the beginning of the block. Retrieval of a given entry in the dictionary by the method described above will limit the range requiring any sequential retrieval to the block length n in the worst case, so that it is possible to achieve a higher speed in the retrieving operation resulting in a shorter period of time required for any retrieval on the occasion of a spelling check. With this method being employed as the basic framework for the condensation of the dictionary and the retrieving operations in the dictionary, and, for further condensation, the Huffman coding method described later has been utilized to perform the condensation of the codes for the second and subsequent words in each code. Therefore, the capacity of the dictionary so condensed by the procedures described above and the resulting average retrieval time for the spelling check operation will vary, depending on the block length n and the composition of the index described later, i.e. the how many letters in the initial parts of the words are used to form the index. Consequently, several pairs of these two parameters are selected, and such parameters are used in actually performing the condensation of the dictionary and the retrieving operations in the dictionary. And, the parameters with which it is possible to obtain the capacity and operating speed suitable for the purpose are determined by examining the relationship between the capacity of the condensed dictionary and the average retrieving speed in the dictionary. Index Section As mentioned above, the types of characters handled in this dictionary is 64. Accordingly, if the initial m-number of letters is to be used as the index the 64 m pieces of index tables should be prepared, i.e. 64¹ = 64 pieces if the initial one letter is used as the index, 64² = 4,096 pieces if the initial two letters are used as the index, 64³ = 262,144 pieces if the initial three letters are used as the index. However, the number of m is to be limited to two or less because words each consisting of two letters in word length are recorded in the dictionary and also because any larger value of the m would result in an increase of the capacity of the index section by an exponential function, with greater complexity developing in the structure of the dictionary if the index is composed cf the initial three letters or more. Moreover, with a larger value for m, the index can be narrowed down, with the result that the speed for the spelling check will be higher. With these points being taken into consideration, experiments were conducted with respect to the cases with m = 1 and m = 2 and, in light of the results obtained therefrom, it has been decided to emply m = 2 for optimizing the relationship between the capacity of the condensed dictionary and the speed for spelling checks. As regards the method of reference to the index tables, the keywords are converted into internal codes on the basis of the internal code conversion table shown in Table 1, and index values in the range of 0 - 4,095 are formed with a weight of 64 placed on the first letter. With reference to this value (&& = 0, &′ = 1, ... ..., AA = 80), the necessary index information is obtained by computing the address in the index table. There are three types of the index information; one of them is the value of the offset from the initial part of the dictionary proper in which the word string belonging to that index is stored, and the second is the number of the blocks stored in the particular index while the third is a flag indicating whether or not there is any word in the two-letter length in the index since there are words with the length of two letters in the dictionary (For instance, the flag will be "on" if there is any word AB in the two-letter length in the index AB). Actually, the index information section has the construction shown in Fig. 4, and the index table is composed of 4,096 pieces of such information like this, each of which is in correspondence to the index (value) in the range of 0 - 4,095. To give some additional explanations concerning Fig. 6, the offset, being composed of 18 bits, is capable of expressing 2¹⁸- 1 = 262,143 in the maximum, but the offset value will not exceed this value in the method of condensation adopted this time. Moreover, the number of blocks will be 2⁵ - 1 = 31 in the maximum for five bits, and yet, as the result of an actual condensation, it is observed that the number of blocks will not in excess of 31 in the dictionary as it is at present if the block length n is approximately 256 bytes or more. Consequently, caution is needed in any of such cases as an alteration made of the source dictionary, the setting of a block length n at a value less than 256, or any change made of the dictionary structure. When the index section is constructed in this manner, the capacity of the index section will be 4,096 X 3 = 12,288 bytes. With a dictionary having an index section in this construction, it is possible promptly to judge the presence or absence of the pertinent word without any retrieval operation in the dictionary proper only in any of the two special cases described in the following. i) In case the number of blocks for the index information indicated by the index value of the keyword is zero, there is not word recorded under that index. In other words, the key word is not recorded in the dictionary. ii) In case the key word is any word composed of two letters in length, the pertinent word is recorded in the dictionary if the flag is found to be "on" for the index information indicated by the index value. Moreover, the word is not recorded if the flag is "off". Dictionary Proper The dictionary proper, which is a collection of words excluding the initial two letters used for the index, has a construction made up of blocks as its basic units, and the initial part of each block always forms a byte boundary. Furthermore, the first word in the initial part of each block is a string of codes in bytes as the unit with the addition of a flag to an internal code illustrated in Fig. 7 for the purpose of performing a dichotomizing search for the word in the block (Refer to Table 1). Consequently, the first word in the initial part of the block is a string of codes before the flag EOW (End of Word) or EOB (End of Block) is set up, and, if the flag EOB is "on," it is to be understood that there is no longer any word recorded in the block. Therefore, such a string of codes can be easily restored into internal code by masking the two bits in the upper positions. Also, as the internal codes contain an arrangement of the corresponding ASCII code values in the positive order, it is possible to make a comparison thereof with the keyword only by a simple deduction. The second word and the subsequent words in the block are composed of the 64 types of characters mentioned above, the condensed relative codes, and the Huffman codes corresponding to EOW and EOB. The condensed relative code is a code which shows the length of the common part of a word shared with the immediately preceding word as counted from the initial letter, and, as it is not necessary to use any condensed relative code if the common part left after the deletion of the initial two letters for the index is one letter, the relative coding is applied in case there is a common part consisting of two or more letters (Refer to Fig. 8). In Fig. 8, the individual codes are represented for convenience in such forms as *4 and EOW, but actually these codes are recorded in the Huffman code. The coding and condensation cf strings of words are performed in this manner, and yet there is the possibility that the capacity exceeds the block length n in the process of the coding of the strings of words belonging to one index (for example, the words beginning with AA for the index AA). In such a case, the word which is stored in excess of the block length n is treated as the first word in the initial part of the next block (i.e. without relative condensation or the Huffman coding, either) in order to make it possible to conduct a dichotomizing search, and the EOB code is stored as the end of the block. And the initial part of the next block is surely to be set at the value which corresponds to the sum obtained with the addition of an integral number of times of the block length n to the value of the offset of the index. Now that there is consequently a plural number of blocks in such an index, it is possible to try to apply the dichotomizing search method by the block as the unit to the first word in the initial part of each block in the index since the offset, block number, and block length n are already known. As the conduct of the dichotomizing search method makes it possible to specify the block which is considered to contained a keyword recorded in it, it will be sufficient to perform the search in regular sequence by decoding the Huffman code only with respect to the particular block. However, since it is possible to make an erroneous development of the Huffman code in the process of the search if the keyword on which a spelling check is to be conducted is any keyword not recorded in the dictionary, it is to be done unfailingly to record EOB instead of EOW. By this arrangement, a search is to be discontinued in case the keyword cannot be found even though the EOB code has been detected at the time when the Huffman code is developed (i.e. when a search is conducted within the block) because the keyword is not recorded in the dictionary in such a case. The construction of the dictionary described in the foregoing part is illustrated in Fig. 9. Generation of the Huffman Code For the use of the Huffman code, condensation by the Huffman coding method is effective because the English word dictionary, which provides the data to be condensed, is already known. For the allocation of the Huffman code, it is necessary to find the frequency of occurrence of each code, but there is a contradiction in that, in order to develop the data needed for the purpose, complete condensation can be accomplished only after the Huffman code is decided (because the Huffman code constitutes a variable length bit string with relative condensation being applied to the condensation of the dictionary) and the frequency of occurrence can be determined only after the Huffman code is decided. In the actual practice, therefore, the condensation is performed on the assumption that the code length of the Huffman in correspondence to the coding is composed of eight bits in all cases by taking as the basis the frequency of occurrence of each code together with the condensed relative codes, the noncondensed characters that could not be subjected to the relative condensation, the EOW, which is a separator code between words, and the EOB, which is the block completion code. (Refer to Table 2 and Table 3). Accordingly, while the frequencies of occurrence and the probabilities of occurrence given in Table 2 are not precise, those values, as viewed from the statistical standpoint, will not be remote from the real values. Hence, the Huffman code was generated on the basis of these data. However, in case the code length of the Huffman code turned out to be in excess of eight bits, greater complexity developed in the process for the decoding of the Huffman code (in order to prevent the conversion table from its expansion into an enormous capacity in consequence of the decoding method described later). Therefore, the maximum word length of the generated Huffman code was kept to eight bits by allocating a special Huffman code called "other" to cover all the codes with relatively low frequencies of occurrence put together. This "other" code is expanded in the form of an addition of six-bit character code to the Huffman code corresponding to "other". Therefore, this code system is not a pure Huffman code, but a modified Huffman code. The Huffman code conversion table is presented in Table 4. Algorithm for decoding the Huffman code For any acutal any spelling check, it is necessary to perform the process of decoding the condensed dictionary, and yet, since the Huffman code is a variable length bit string, a complicated way of processing is involved in the decoding of the code. For example, it will cause a considerable loss of time required for the decoding process, and consequently will not serve the purpose of any spelling check, to perform the decoding process by taking out the data contained in the dictionary bit by bit, making the pattern-matching of the data with the Huffman code, taking out one more bit for making a one-bit shift if the patterns do not match, and making the pattern-matching again with a key put in, repeating this procedure until the key matches with the Huffman code. Therefore, the data in the dictionary are taken out in a unit of eight bits, the eight-bit data being regarded as representing a value in the range of 0 - 255, and the bit length actually effective as the Huffman code and the internal code allocated to that Huffman code are to be obtained out of the sixteen-bit data taken from the reference to the table. And the Huffman code is decoded by the procedure consisting in advancing the reading point for the dictionary by the effective bit length in preparation for the next decoding operation. In such a decoding process, the processing speed needed for the development of the Huffman code will be high but, on the other hand, the process requires an area for the reference table. The modified Huffman code adopted this time is designed in such a way that the maximum bit length for the code will be eight bits. Accordingly, the capacity of the reference table will be 2⁸ x 2 bytes = 512 bytes (The two bytes are used for the area for storing the information on the effective bit length [3bits] and the corresponding internal code [8 bits]). However, when the Huffman code corresponding to the "other" code is developed, it is necessary further to obtain a six-bit extension code from the dictionary and to convert this extension code into an internal code with reference to the conversion table. The capacity of the conversion table for this purpose is 49 bytes, i.e. the number of codes allocated to the extension code. Next, the dictionary retrieval function in this embodiment is explained with reference to the flow charts given in Fig. 10a, 10b and Fig. 10c. First, a word is extracted by cutting out the word from the character string input from a file or from the input apparatus (Step 20). Then, the unnecessary characters annexed to a word are deleted (XXX′ is changed to XXX, and XXX ′s is changed to XXX) (Step 21). The length of the searched word (hereinafter referred to as the "keyword") is judged (Step 22), and, if the length of the word in one letter, the search in the dictionary is not performed, and the searching operation is brought to a close (Step 23). In case the length of the word is not one word, a search in the dictionary is started (Step 24), and it is judged whether or not the keyword is recorded in the dictionary (Step 25), and, if it is not recorded, a searching operation is performed with respect to all the inflect forms and conjugated forms of the base word, and the search is brought to an end if the word thus searched is not present (Step 26 and Step 23). In case a search has not been completed with regard to all the inflected forms and conjugated forms (Step 25), a generation of such forms (i.e. inflected or conjugated forms such as Abc or abc for ABC) is performed (Step 27), and a search in the dictionary is performed again. Then, an explanation is given here with respect to the process of a search in the dictionary. First, the value of the index if computed on the basis of the initial two letters in the keyword (Step 28). Then, the two initial letters are deleted from the keyword. It is judged whether the word length is two words (Step 29), and, in case the word length is two letters, it is possible to judge, by checking the two-letter word record flag in the relevant index (Step 30), whether the word searched is recorded or not. Since the storage block number "0" for the relevant index indicates that there is no word stored in the index (Step 31), and accordingly the search is to be ended. In case the block number is not "0", then the keyword is converted into an internal code for the purpose of conducting a search in the dictionary proper (Step 32), and a dichotomizing search by the block as the unit is conducted as the first stage of the search operation (Step 33). At the stage when the dichotomizing search has been conducted, it is judged whether the keyword has been found, i.e. whether the keyword is recorded (Step 34), and, if the keyword is not recorded, it is judged that the same is not yet recorded (Step 35). Also a comparison of the keyword with the words in the dictionary in terms of size in the course of a search makes it possible to judge that any subsequent search would not find the word as it is not recorded (since the dictionary records words in the ASCII sequence). Thereafter, the second-stage search is conducted for a sequential search of the condensed dictionary. The words are taken out one by one from the condensed dictionary proper (the modified Huffman code) and the words so taken out are converted into internal codes for the purpose of their comparison with the keyword (Step 36). In case any EOB is detected (Step 37), the search is ended because no more word is recorded, and, in case the EOB is not detected, it is judged whether any keyword is recorded (Step 38), and, if no keyword is recorded, it is judged that the keyword is not yet recorded (Step 39), and the search is brought to an end if the keyword is not yet recorded, but, if it is not judged that the keyword is not yet recorded, the searching operation is taken back to Step 36. Results A spelling check was performed with a dictionary which records 77,240 words, and the average speed for the spelling check per word was 69 msec/word for a block length n = 256 bytes. Also, the capacity for the condensation of the dictionary was approximately 182 KB for the dictionary proper and approximately 195 XB including the capacity needed for the index and the conversion table, and it became possible to operate within 2 Mbits including the capacity for the spelling check program. Furthermore, in order to increase this processing speed any further, condensation is to be performed by the byte as the unit, instead of the bit arithmetic operation attending the decoding of the Huffman code. The searching speed so achievable is approximately 27 msec/word for a block length n = 256 bytes. It is up to the user's discretion to choose the former or the latter in any given environment. As regards this embodiment, moreover, it is omitted to give a description of the process in which instructions for a spelling check is issued by the input apparatus 10 and the contents of the spelling check dictionary 13 are retrieved by way of the controlling apparatus 14, since this process in itself is the same as what is employed in the conventional system.

Claims: A character processing system with a spelling check function comprising: input means (1) for inputting character information and various types of instructions; storage means (2) for storing character information in compressed format and in a state permitting its reading; display means (3) for displaying the character information and the inputted instructions; control means (4) for storing character information, inputted by the input means, in the storage means and for outputting the character information to the display means; and condensed dictionary storage means (5) incorporating a dictionary proper composed of a plurality of n-byte storage blocks, said dictionary proper storing a respective first word in each of the blocks in the form of a character string with subsequent words thereafter stored in the form of a relative code with a common part relative to an immediately preceding word as the object; characterised in that the first word in each block in the dictionary proper is composed of non-compressed bytes, said dictionary proper storing words, not transformable into relative condensed code, by means of Huffman encoding allocation in consideration of the frequency of occurrence; in that the condensed dictionary storage means (5) also includes an index section for storing block numbers, indicating the number of blocks forming a specified stored group, and offsets derived from the dictionary proper, whereby the index section indicates the number of bytes from an initial position of the dictionary proper at which an indicated block is located; and in that said system further comprising spelling check means (6) responsive to the control means (4) and coupled to said condensed dictionary storage means (5) for performing a dichotomizing search of a specified block, the address of the specified block being determined as a function of the first two letters of a search word, which function specifies the offset and block number stored in the index section, corresponding to the block, to thereby retrieve the search word. A character processing system according to Claim 1 in which the input means is composed of a keyboard provided with a spelling check. A character processing system according to Claim 1 or Claim 2 in which the condensed dictionary storage means (5) is composed of an IC memory. A character processing system according to Claim 1 or Claim 2 in which the condensed dictionary storage means is composed of a magnetic disk. A character processing system according to Claim 1 or Claim 2 in which the condensed dictionary storage means is composed of a core memory.

Inventors: SAITO KEIZO, YAMAMOTO YASUSHI, SAITO, KEIZO, YAMAMOTO, YASUSHI
Applicants: SHARP KK, SHARP KABUSHIKI KAISHA
Application year: 1988
Main classification: G06F15
IPC codes: G06F17