Document generator and correction support device

Abstract: A document generator and correction support device is comprised of a keyboard (1) for entering and editing Japanese, a first storage (2) for storing the entered Japanese, a register (3)for registering a dictionary defined by a user and a second storage for storing the dictionary, a third storage (4) for storing grammar, a microproces­ sor (5) which converts and edits the entered kana character strings to mixed kana-kanji sentences, and a display (6)for displaying cha­ racter and symbol strings.The user can revise the character and sym­ bol strings which require some correction and can add dictionary in­ formation using reference words when he registers new dictionary entries.

Description: BACKGROUND OF THE INVENTION Field of the Invention The present invention relates to a document generator and correction support device which produces documents by extracting errors and unsuitable expressions from Japanese sentences, presenting prompts and revision information, and providing the vocabulary and other information required for document generation. Description of the Prior Art Japanese language word processors, hereinafter referred to as word processors, are in wide practical use today, and basic related technologies, including Japanese language input and output, editing, kana-kanji conversion algorithms, and dictionary technologies, are established. Kana-kanji conversion word processors require a dictionary for conversion, and user dictionary technologies enabling the user to enter discrete user words are established. Furthermore, basic Japanese linguistic processing technologies, including morpheme analysis, grammatical analysis, and semantic analysis, are known. In Europe and North America, word processors came into common use from an early date, related technologies are advanced, and devices equipped with spelling check and correction functions are in practical use. Whereas words in Western languages are written punctuated in word units, Japanese is commonly written in unpunctuated mixed strings of kanji and kana. In addition, as firm correct writing rules are not established, analysis is therefore difficult and devices which automate text correction are not available. Conventionally, when the use of precise Japanese is required, multiple persons form pairs to read the text and extract problem areas, or a person or persons with special knowledge of text editing successively check and correct the text. Devices to assist such editing tasks are recently being developed. These devices can be broadly classified into the following two methods. The first method corresponds to the former editing method, and is a correction device in which mixed kana-kanji sentences are analyzed and converted to audio, and the text is read with the machine via the audio. The other method corresponds to the latter editing method, the object of which is to automate editing or to provide specialized editing support. As this device requires more advanced technology than the former device, there are only proposals of concepts but no reports of means composing said device or specific means of editing. A device according to the present invention is related to the latter method. The prior art has heretofore been discussed with a focus on linguistic processing. Other than the aforementioned technologies, technologies related to work stations are established, and devices using multiple windows to increase work efficiency are in use. Japanese language word processors have become common in recent years, and documents composed on these devices are increasing in number. The number of word processor models using simple kana-kanji conversion methods (hereafter including Roman character-kanji conversion unless otherwise stated) is rising. Kana-kanji conversion algorithms generally use linguistic information such as word dictionaries and grammar, and probability information such as the frequency of appearance of a word in the process of converting kana to kanji. With respect to word dictionaries, user dictionaries which the user can define, register, and use are also known in addition to general dictionaries because the used words differ according to the field in which the device is used and to differences between users. Most conventional user dictionaries in word processors register kana and kanji pairs, but were deficient in that parts of speech and other information could not be registered. In some user dictionaries which are more advanced than this, the user does not specifically register part of speech information, but the device automatically assigns the most common part of speech, such as noun or noun followed by "suru" inflections (noun followed by the s series irregular conjugation or having inflections of letter "s" combined with vowels). In this case, the problem arose that the part of speech information was not necessarily always correct. Stated another way, words with part of speech information other than that assigned by the device could not be registered in the user dictionary. As a result, the problem arose that character strings may appear for which kana-kanji conversion is not possible. Furthermore, in kana-kanji conversion devices based on phrase unit input, the result was that phrases containing combinations of user-registered words and standard words could not be converted when the conversion was attempted. To avoid these deficiencies, when the user sought to convert character strings which the user could not register, the user was compelled in each instance to convert individual characters using the kanji dictionary function. There was also the problem that input conversion must be executed while determining whether the word was registered in the user dictionary or the general dictionary. In addition to kana-kanji conversion input of phrase units, kana-kanji conversion input of consecutive phrases and automatic batch conversion methods have been developed, but in these methods, too, because part of speech and other information cannot be added, user-registered words cannot be effectively utilized in kana-kanji conversion processing. Even if part of speech and other information could be added to user-registered words, problems such as the following would occur. One is that user-registered words require the same linguistic information as that of the general dictionary, and it is in actual practice hard for the average user to add detailed linguistic information. Furthermore, the information in the dictionary in the device is encoded, and is not in a form which the user can generally read. Therefore, in order to add part of speech and other information, an interactive function and a mechanism to convert the obtained information to the internal format are required. In PROCEEDINGS OF COMPCON '79, 19TH IEEE COMPUTER SOCIETY INTERNATINAL CONFERENCE. Washington, DC. 4th-7th of September 1979, pages 238 to 242. IEEE, New York, US; T. KAWADA et al., "Japanese word procesor JW-10", a Japanese word processor is disclosed which can perform efficient kana-to-kanji translation. A kana-to-kanji translation algorithm is used which converts a kana string into corresponding kanji strings. Kana sentences are analyzed morphologically and syntactically. and then the most suitable kanji characters are selected. The word processor contains word dictionaries which are automatically updated at every use. Japanese sentences can be typed just like English sentences using the touch typing method. Also, permanent processing is carried out. The morphological homonym analysis checks homonyms grammatically and deletes grammatically incorrect ones. But grammatically correct homonyms still remain. These homonyms are sent to an interactive selection operation. The typist can select the right word from the displayed candidate homonyms. Another function for making homonym selection is carried out using a homonym dictionary. This homonym dictionary memorizes selected homonyms automatically during text operation. When the same homonym appears again, the editor selects it by consulting the homonym dictionary. The independent word dictionary contains about 54.000 words and the proper noun dictionary has about 8.000 words. Each word consists of kana string, grammatical category, kanji string and frequency of use. Two or more nouns are frequently connected without any conjunction or preposition in Japanese documents. Thus, compound words are created. The morphological analysis program calls a compound words analysis program that looks up this dictionary and makes a compound word from two or three words to analyze it. The frequency of use is updated by counting the word use. This learning capability makes this word processor a user-oriented word processor. In FUJITSU SCIENTIFIC & TECHNICAL JOURNAL, vol. 15, no. 2, June 1979, pages 21 to 43, Kawasaki, JP; H. UCHIDA et al. "Automated translation of Japanese kana into mixed kana-kanji output" is discussed. This kana-kanji translation system has no constraints on kana input strings. A translation algorithm referred to as the maximum likelihood estimation method and including the widely used longest string matching method as a special case are disclosed. Kanji which are used for translating homonyms are selected dynamically based on frequency of use in the input text. SUMMARY OF THE INVENTION Accordingly, the present invention as claimed has been developed with a view to substantially eliminating the above described problems inherent in conventional systems, and has for its essential object to provide a document generator and correction support device which is capable of adding sufficient information to user-registered words by obtaining part of speech and other information from reference word information familiar to the user. In accomplishing this and other objects, the document generator and correction support device according to the present invention is provided with a means for entering and editing Japanese, a means for storing the entered Japanese, a means for registering a dictionary defined by a user, a means for storing the dictionary, a means for storing grammar, a control means such as a microprocessor which converts and edits the entered kana character strings to mixed kana-kanji sentences, a means for displaying character and symbol strings, and when there are character and symbol strings which should be corrected, a means for revising the character and symbol strings. When Japanese kana character strings entered into a computer or similar device by an input means are entered through the kana-kanji conversion method, a conversion dictionary is referenced when the kana is converted to kanji. A device according to the present invention extracts the required information from a kana-kanji conversion dictionary and uses this for a dictionary of the device by kana-kanji converting a known word which functions in a grammatically similar manner when registering a dictionary for document generation and correction. Information contained in the device is displayed so that it can be understood by the user, and the device operates so that revisions are possible if there is a mistake. Furthermore, the device operates in a manner such that it can be confirmed whether or not the registered dictionary operates correctly in the device, and so that whether or not the dictionary registration task was executed correctly can be determined overall. BRIEF DESCRIPTION OF THE DRAWINGS This and other objects and features of the present invention will become more apparent from the following description taken in conjunction with the preferred embodiment thereof with reference to the accompanying drawings, throughout which like parts are designated by like reference numbers, and wherein; Fig. 1 is a structural block diagram of a document generator and correction support device according to one preferred embodiment of the present invention; Fig. 2 is a view describing in detail an input means in Fig. 1; Fig. 3 is a view showing the display in a user dictionary mode; Fig. 4 is a view showing information of a user-registered entry; Fig. 5 is a view showing the internal typing of a dictionary used for kana-kanji conversion; and Fig. 6 is a flow-chart showing the processing executed in the device of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT Fig. 1 is a block diagram of a document generator and correction support device according to one preferred embodiment of the present invention. In the figure, reference number 1 is a means for inputting and editing Japanese. A kana-kanji conversion function which changes kana to kanji and is commonly known today is included in this means. In general, reference number 2 is a means for storing the Japanese character strings entered by the input means 1. A keyboard is commonly used for the input means 1, but it is also possible to substitute an external storage means which stores the input Japanese character strings on a floppy disk, magnetic tape, or similar medium, without successively entering characters. In other words, a construction in which the input means 1 is omitted is also possible. Reference number 3 is a means for storing a dictionary for morpheme analysis of Japanese character and symbol strings accumulated in the means 2. Reference number 4 is used for the same objective, and is a means for storing grammar and other dictionaries. Reference number 5 is a control means, for example, a microprocessor for extracting part of a character string stored in the means 2, for storing intermediate results, and for executing display commands. The control means 5 includes a means for storing the results obtained from the control action. Reference number 6 is a cathode-ray tube or other display means for displaying input character strings, intermediate reference results, and character strings or KWIC which should be corrected. Reference number 7 is a correction means for correctly reflecting in the original text the results of revisions added to the parts which should be corrected and were displayed by the display means 6. The present invention relates to a document generator and correction support device, but because it has no direct relationship to the generation and correction function, the description is herein limited to the block diagram only. Fig. 2 shows a device related to the present invention. These functions can be realized using part of the functions of the input means. Reference number 8 is a function key for switching the processing of the device to the mode operating the user dictionary used for correction and reference number 9 is another function key for escaping from this mode. These can be achieved by assigning one of the input means 1. Furthermore, these function keys 8 and 9 can be used in common, and can be set by control means 5 so that when the function key 8 is pressed once, the registration mode is entered, and when it is pressed again, the registration mode can be exited. Furthermore, it is also possible to set the key 8 to that modes other than the registration mode can be accessed in combination with other keys. Reference number 10 is a key to start registration with a reference word. This can also assign one of the input means 1. Reference number 11 is a key to register the specified information in the user dictionary, and reference number 12 is a key to delete the registered dictionary. Furthermore, reference number 13 is a key used to add information with reference registration after entering the user dictionary operation mode. This can, for example, be substituted by a function key for converting the reference word. There is no particular significance to the series of keys 8 to 13 in Fig. 2, and the present invention is not dependent upon this order. Furthermore, reference numbers 8 to 13 were described herein as special keys, but the implementation shall not be limited to keys, and can be substituted with conventional input keys in the input means by providing such with the meaning herein defined. Fig. 3 is an example of a display in the part of speech registration stage in the user dictionary registration mode. Reference number 14 is an area in which are displayed prompts showing the mode or other information, and reference number 15 is an area displaying the contents of the user dictionary. Reference number 16 is an example showing the processing mode, and reference numbers 17, 18, and 19 are areas displaying such information (hereinafter abbreviated at times as part of speech information) as the kanji, reading, and part of speech, respectively, of the user registered entry. In each of these areas would normally be entered an identification of the area such as 20, 21, and 22. Reference number 23 is a symbol prompting input of the reference word, and in this figure the device is in the reference registration mode and ready to receive input of the reference word from the user. Fig. 4 shows an example in which the reference word "benkyoo" is input, and the new word "tabako suru" is being registered. Reference number 24 shows the (katakana) entry "tabako" to be input to the kanji position of the registered entry, reference number 25 is the (hiragana) "tabako" to be input to the reading position, reference number 26 shows the part of speech information "noun followed by "suru" inflections, compoundable, common noun," and at reference number 27 is the reference word "benkyoo" (in kanji). Fig. 5 shows an example of the internal typing of the reference word "benkyoo". Reference number 28 is the dictionary entry identification number, reference number 29 is the kanji expression "benkyoo", reference number 30 is the dictionary (hiragana) reading "benkyoo", and reference number 31 is the encoded representation of the part of speech information (noun followed by "suru" inflections, compoundable, common noun). In this example, 5 signifies a noun followed by "suru" inflections, the middle 1 signifies that the word can be compounded, and the 1 on the right end signifies that the word is a common noun. This information is usually encoded, and frequently helps to conserve memory. Providing a corresponding table of codes and restored expressions is sufficient to restore the encoded information to an easy-to-understand form. For example, the noun 5 followed by "suru" inflections would be changed to "sahen", the compoundable 1 to "fukuka", and the common noun 1 to "fumei". Furthermore, there are times when the ID number is not used during user dictionary registration processing, and it may be omitted. Fig. 6 is a summary flow chart of the present invention. Registration of "tabako suru" is used as the example for the description. First, the correction processing mode is set to the user dictionary mode. This is accomplished with key 8. This shall be designated processing block 32. With this processing, it is indicated that the device has entered the user dictionary mode, and the display will be a blank form such as shown in Fig. 3. This user-registration initial processing block shall be designated 33. Next, the characters for "tabako" (katakana) and "tabako" (hiragana) are entered, respectively, in the kanji and reading areas using kana-kanji conversion input. This processing block shall be designated 34. Next, if the reference registration key 10 is pressed at this point, 23 will be displayed, and the reference word input standby status will be assumed. This shall be designated processing block 35. At this point, the flow is shown to proceed to 34 and 35, but the order may also be 35 to 34. In this case, the display status in Fig. 3 will be assumed at 35, and 34 will come next. Furthermore, if the reference registration key is not pressed, a different registration method will be entered, but as this is beyond the scope of the present invention, this shall be designated distinct processing block 36 and will not be herein described. When reference registration is commenced, the reference word is entered next. In this case, using the kana-kanji conversion method, "benkyoo" (hiragana) is input, and when the conversion key is pressed "benkyoo" (kanji) is output. This shall be designated reference word conversion processing block 37. At the next processing block the reference word is searched from the kana-kanji conversion dictionary. This is accomplished by comparing the displayed character string with the dictionary entries. This processing shall be designated 38. Next, it is necessary to pull the information required for parts of speech from the dictionary for kana-kanji conversion. It is easy to extract the part of speech information only because the dictionary structure is predetermined at the design stage. This processing block shall be designated 39. The extracted information is temporarily stored in the stack of the control device. This processing block shall be designated 40. Next, the stacked information is analyzed, the correspondence table is referenced, and the information is converted to a form which is easy to display. This processing block shall be designated 41. Next, the converted information is displayed in the part of speech frame. The technology of displaying information in a fixed position is common. This processing block shall be designated 42. Next, it is confirmed whether or not there is a mistake in the information entered using the characters and the reference word entered at this time. The processing block for this confirmation shall be designated 43. If there are no errors, the entry is registered as a dictionary for corrections by pressing registration execute key 11. This processing block shall be designated 44. If mistakes are recognized, there are two processes. One is when there is an error in the entry kanji and the reading; in this case, the cursor is aligned with the part of the kanji or reading which is wrong, and revision is made. This processing block shall be designated 45. The other error is a mistake in the part of speech or other information; in this case, the procedure returns to step 33 and processing is repeated until there are no errors. When a new entry is correctly registered in the user dictionary, it is decided to register the next entry with the same procedure, to delete, or to escape from the user dictionary mode. This processing block shall be designated 46. Reference number 47 is the termination processing block for the user dictionary processing mode. The effect of the present invention is that entry readings, kanji expression information, and other information such as parts of speech can be registered regardless of the amount of information with an easy operation. Thus, there is the additional effect that correct correction processing can occur because accurate information can be added even to user-registered entries. Furthermore, in a device according to the present invention, because the contents of a user-registered dictionary can be displayed in a form which is easily understood by the human operator, the invention is effective in enabling easy confirmation. Moreover, while a person versed in linguistics is normally required for dictionary registration of this nature, a device according to the present invention is effective in enabling even people with little knowledge of linguistics to produce a dictionary with good precision. Furthermore, because cumbersome dictionary registration can be accomplished overall with easy operation, a device according to the present invention is effective in reducing work time, reducing mistakes, and increasing work efficiency. Although the present invention has been fully described by way of examples with reference to the accompanying drawings, it is to be noted here that various changes and modifications will be apparent to those skilled in the art.

Claims: An electronic document generator and correction support device having at least a correction processing mode and a dictionary processing mode for entering new Japanese words into an operator defined dictionary (4) so that the linguistic information of the new Japanese words can be related to linguistic information of known reference words to enable the new Japanese words to be in proper linguistic form when entered in the operator defined dictionary (4) comprising: a display (6) for displaying the new Japanese words and the known reference words in different modes; means (1) for entering the known reference words which are similar in linguistic form to the new Japanese words; means (5) for converting the known reference words from a first mode to a second mode; and means (3) for identifying parts of speech of the reference words, characterized by means for registering the new Japanese words by entering them along with parts of speech related to the known entered reference words into the operator defined dictionary (4), wherein, in registering a new Japanese word into the operator defined dictionary (4), the device is first switched from the correction processing mode to the dictionary processing mode, in which the new Japanese word to be registered is displayed, in both the first and second modes, on said display (6) by said means (1) for entering and said means (5) for converting, wherein a known reference word which is similar in linguistic form to the new Japanese word is entered by said means (1) for entering and is searched by said means (3) for identifying so that the part of speech of the known reference word is subsequently extracted, and wherein upon registering the new Japanese word along with the part of speech, the device is switched from the dictionary processing mode to the correction processing mode. The device according to claim 1, wherein said parts of speech are selected from the group consisting of nouns and noun inflections. The device according to claim 1, wherein said means for registering includes a key (8). A method of entering a new Japanese word into an operator defined computer dictionary (4) comprising the steps of: (a) identifying said new Japanese word; (b) displaying said new Japanese word in different modes; (c) entering a known reference word related in linguistic form to said new Japanese word; (d) converting the known reference word from a first mode to a second mode; (e) obtaining the part of speech of the new Japanese word from a prestored dictionary; and (f) registering the new Japanese word along with the part of speech obtained at step (e).

Inventors: KANZA HIROYUKI, KUGA SHIGEKI, MORISHITA TARO, WADA MASAHIRO, KANZA, HIROYUKI, KUGA, SHIGEKI, MORISHITA, TARO, WADA, MASAHIRO
Applicants: SHARP KK, SHARP KABUSHIKI KAISHA
Application year: 1988
Main classification: G06F17
IPC codes: G06F17