JPH05298302A - Sentence correcting device - Google Patents

Sentence correcting device

Info

Publication number
JPH05298302A
JPH05298302A JP4104906A JP10490692A JPH05298302A JP H05298302 A JPH05298302 A JP H05298302A JP 4104906 A JP4104906 A JP 4104906A JP 10490692 A JP10490692 A JP 10490692A JP H05298302 A JPH05298302 A JP H05298302A
Authority
JP
Japan
Prior art keywords
sentence
analysis
proofreading
level
text
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP4104906A
Other languages
Japanese (ja)
Inventor
Hiroichi Yoshida
広市 吉田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sharp Corp
Original Assignee
Sharp Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sharp Corp filed Critical Sharp Corp
Priority to JP4104906A priority Critical patent/JPH05298302A/en
Publication of JPH05298302A publication Critical patent/JPH05298302A/en
Pending legal-status Critical Current

Links

Landscapes

  • Machine Translation (AREA)
  • Document Processing Apparatus (AREA)

Abstract

PURPOSE:To make it possible to change the details of analysis by controlling an analytical means so that a sentence stored in a storage means is corrected by a set analytical level and outputting the corrected sentence to a display means. CONSTITUTION:When a sentence is inputted from an input means 11, the sentence is stored in the storage means 14 by a control means 13. When an analytical level indicating the correction level of the sentence is inputted from the means 11, the means 13 writes the analytical level in a level setting means 15. Then the means 13 outputs the sentence stored in the means 14 to the analytical means 16. While referring to a correcting dictionary 17, the means 16 executes the analysis of the sentence by using a correcting function corresponding to the analytical level set up by the means 15. After completing the analysis of the sentence, the means 13 displays the corrected sentence by the display means 12.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、文章校正装置に関し、
特に、文章の文法を解析する基準として複数の解析レベ
ルを持ち、状況に応じて解析のレベルを選択できる文章
校正装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a text proofreading device,
In particular, the present invention relates to a sentence proofreading apparatus that has a plurality of analysis levels as a reference for analyzing the grammar of a sentence and can select the analysis level according to the situation.

【0002】[0002]

【従来の技術】従来、漢字かなまじり文を作成、編集す
るような機能を持つ日本語文書処理装置においては、作
成した文章の文法に誤りがないかを解析し、自動的に修
正できる文章校正機能を持つものが知られている。そし
て、このような文章校正機能を持つ従来の装置では、校
正機能を設計する段階でどこまで文法解析をするかを決
め、固定された校正機能でもって、一義的に文章の校正
を行っている。
2. Description of the Related Art Conventionally, in a Japanese document processing device having a function of creating and editing a kanji kana-mojiri sentence, a sentence proofreading that analyzes the grammar of the created sentence and corrects it automatically can be performed. Those with functions are known. In a conventional device having such a sentence proofreading function, how much grammatical analysis is performed is decided at the stage of designing the proofreading function, and the fixed proofreading function uniquely proofreads the sentence.

【0003】[0003]

【発明が解決しようとする課題】しかし、上記のような
従来の文章校正装置では、校正機能が一義的に固定され
ているため、詳しく文章解析を行うように校正機能が組
みこまれている場合は文章の校正に時間がかかり、逆
に、文章解析を簡単に行うように校正機能が組みこまれ
ている場合は、文法的な細かいチェックができないとい
う問題があった。
However, in the above-mentioned conventional grammar proofreading apparatus, since the proofreading function is uniquely fixed, when the proofreading function is incorporated to perform detailed sentence analysis. Has a problem that it takes a long time to proofread a sentence, and conversely, if a proofreading function is incorporated so as to easily perform sentence analysis, detailed grammatical checks cannot be performed.

【0004】この発明はこのような事情を考慮してなさ
れたもので、文章の文法を解析する基準として複数の解
析レベルを持ち、状況に応じて解析レベルを選択するこ
とにより、急いでいる場合は表面的な解析のみを行い校
正のスピードを優先したり、最初の校正では細かいとこ
ろまで十分チェックしたりというように、解析の詳しさ
を変更できるようにした文章校正装置を提供するもので
ある。
The present invention has been made in consideration of such a situation, and has a plurality of analysis levels as a reference for analyzing the grammar of a sentence, and when the analysis level is selected according to the situation, the case is urgent. Provides a grammar proofing device that allows you to change the details of analysis, such as performing only superficial analysis and giving priority to the speed of proofreading, and checking the details in the first proofing sufficiently. ..

【0005】[0005]

【課題を解決するための手段】本発明の文章校正装置
は、図1に示すように文字を入力すると共に、文章校正
のための解析レベルを選択する入力手段11と、入力さ
れた文章を記憶する記憶手段14と、文章校正をするた
めの文章校正用辞書17と、表示手段12と、文章の校
正を行なうための文章解析の基準として複数の解析レベ
ルを持ち、校正用辞書17を用いて、それぞれの解析レ
ベルに対応して文章の校正を行うことが可能な解析手段
16と、選択された解析レベルを解析手段16に対して
設定するレベル設定手段15と、記憶手段14に記憶さ
れた文章が設定された解析レベルによって校正されるよ
うに解析手段16を制御し、校正された文章を表示手段
12へ出力する制御手段13とを備える。
The text proofreading device of the present invention inputs characters as shown in FIG. 1 and stores input text and input means 11 for selecting an analysis level for proofreading. The storage means 14, the grammar proofreading dictionary 17 for proofreading the sentence, the display means 12, and a plurality of analysis levels as a sentence analysis reference for proofreading the sentence are used, and the proofreading dictionary 17 is used. The analysis means 16 capable of proofreading the sentence corresponding to each analysis level, the level setting means 15 for setting the selected analysis level to the analysis means 16, and the storage means 14 are stored. The control means 13 controls the analysis means 16 so that the text is proofread according to the set analysis level, and outputs the proofread text to the display means 12.

【0006】ここで普通、入力手段11としてはキーボ
ードやマウスなどが用いられ、表示手段12としてはた
とえばCRT、記憶手段14としてはRAM、文章校正
用辞書17としてはROM、さらに、制御手段13とレ
ベル設定手段15と解析手段16としてはCPUが用い
られる。
Generally, a keyboard, a mouse or the like is used as the input means 11, the display means 12 is, for example, a CRT, the storage means 14 is a RAM, the sentence proofreading dictionary 17 is a ROM, and the control means 13 is also used. A CPU is used as the level setting means 15 and the analysis means 16.

【0007】また、1つの解析レベルとは、通常従来か
ら用いられている送り仮名のゆらぎや難しい単語の使用
のチェックなどの文章の解析機能のうち、解析に使用す
る機能の数をいくつかに制限した状態のことを表わし、
その制限された機能の数によって解析レベルが複数存在
する。
In addition, one analysis level refers to the number of functions used for analysis among the sentence analysis functions which are usually used conventionally, such as fluctuations of sending kana and checking of use of difficult words. Represents a restricted state,
There are multiple analysis levels depending on the number of limited functions.

【0008】たとえば、「拗れた話の仲裁を行なう」と
いう文章の解析を行う場合、送り仮名のゆらぎや難しい
単語の使用のチェックをしない高速の解析レベルではこ
のままの表現であるが、送り仮名のゆらぎをチェックす
る機能を含む解析レベルでは、この文章は「拗れた話の
仲裁を行う」という表現に修正され、この機能に加えて
さらに難しい単語の使用をチェックする機能を含む詳細
な解析レベルでは、この文章は「こじれた話の仲裁を行
う」という表現に修正され、各解析レベルの持つ機能に
応じた文章の校正が行われる。
For example, in the case of analyzing a sentence "arbitration of unreliable story", the expression is as it is at the high-speed analysis level which does not check the fluctuation of the sending kana and the use of difficult words, but the sending kana At the parsing level, which includes the ability to check for fluctuations, this sentence has been revised to the phrase "arbitrate for unspoken narratives", and in addition to this functionality, detailed analysis including the ability to check for more difficult word usage. At the level, this sentence is corrected to the expression "arbitrate for a confused story", and the sentence is proofread according to the function of each analysis level.

【0009】[0009]

【作用】図1に示すように、文章が入力手段11から入
力されるとその文章は制御手段13によって記憶手段1
4に記憶される。文章を校正するレベルを表わす解析レ
ベルが入力手段11から入力されると、制御手段13は
その解析レベルをレベル設定手段15に書き込む。
As shown in FIG. 1, when a sentence is input from the input means 11, the sentence is stored in the storage means 1 by the control means 13.
4 is stored. When the analysis level representing the level for proofreading a sentence is input from the input means 11, the control means 13 writes the analysis level in the level setting means 15.

【0010】次に、制御手段13は記憶手段14に記憶
されている文章を解析手段16へ出力する。すると解析
手段16は、レベル設定手段15で設定される解析レベ
ルに応じた校正の機能を用いて、校正用辞書17を参照
しながら、文章の解析を実行する。文章の解析が終了す
ると、制御手段13は校正された文章を表示手段12を
用いて表示する。
Next, the control means 13 outputs the text stored in the storage means 14 to the analysis means 16. Then, the analysis unit 16 uses the proofreading function according to the analysis level set by the level setting unit 15 to analyze the sentence while referring to the proofreading dictionary 17. When the analysis of the sentence is completed, the control means 13 displays the calibrated sentence using the display means 12.

【0011】[0011]

【実施例】本発明の一実施例を図2〜図8を用いて説明
する。図2は、本発明の一実施例の構成図である。キー
ボード1は、文字および文章校正のための解析のモード
を示す解析レベルを入力する装置であり、図1の入力手
段11に対応する。CRT2は、文章や解析結果などを
表示するものであり、図1の表示手段12に対応する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described with reference to FIGS. FIG. 2 is a configuration diagram of an embodiment of the present invention. The keyboard 1 is a device for inputting an analysis level indicating an analysis mode for character and sentence proofreading, and corresponds to the input means 11 in FIG. The CRT 2 displays sentences and analysis results and corresponds to the display means 12 in FIG.

【0012】記憶手段14は、文章バッファ4bと文章
バッファポインター4aからなり、文章バッファ4b
は、入力した文章又は加工された文章などを記憶するメ
モリであり、文章バッファポインター4aは文章バッフ
ァ4bから取り出す文章の先頭アドレスを示すアドレス
ポインターである。解析レベルフラグ5は、文章校正の
ための解析のモードを示すものであり、図1のレベル設
定手段15に対応する。
The storage means 14 comprises a text buffer 4b and a text buffer pointer 4a, and a text buffer 4b.
Is a memory for storing an input sentence or a processed sentence, and the sentence buffer pointer 4a is an address pointer indicating the start address of the sentence taken out from the sentence buffer 4b. The analysis level flag 5 indicates an analysis mode for grammar correction and corresponds to the level setting means 15 in FIG.

【0013】1文解析手段6aは文章の文法的な間違い
などをチェックするものであり、1文バッファ6bは文
章バッファから取り出して解析のために保持しておくた
めのメモリであり、解析バッファ6cは文章校正で解析
された結果を蓄えるメモリであり、1文解析手段6aと
1文バッファ6bと解析バッファ6cは図1の解析手段
16に対応する。校正用辞書7は、文章の校正をするた
めに参照する辞書である。CPU3は、本発明の文章校
正装置の全体の動作を制御するものであり、図1の制御
手段13に対応する。
The one-sentence analyzing means 6a is for checking grammatical mistakes in sentences, the one-sentence buffer 6b is a memory for taking out from the sentence buffer and holding it for analysis, and the analysis buffer 6c. Is a memory for storing the result of analysis by sentence proofreading, and the one-sentence analysis means 6a, one-sentence buffer 6b and analysis buffer 6c correspond to the analysis means 16 of FIG. The proofreading dictionary 7 is a dictionary referred to for proofreading a sentence. The CPU 3 controls the overall operation of the sentence proofreading device of the present invention, and corresponds to the control means 13 of FIG.

【0014】このような構成における動作を図3に示す
フローチャートを用いて説明する。まず、初期画面(図
6参照)をCRT2に表示してユーザーに解析モードを
選択させる(ステップS01)。キーボード1で選択さ
れた解析モードを解析レベルフラグ5にセットする(ス
テップS02)。次に解析バッファのデータやフラグ類
を初期化する(ステップS03)。
The operation in such a configuration will be described with reference to the flow chart shown in FIG. First, an initial screen (see FIG. 6) is displayed on the CRT 2 to let the user select an analysis mode (step S01). The analysis mode selected by the keyboard 1 is set in the analysis level flag 5 (step S02). Next, the data and flags of the analysis buffer are initialized (step S03).

【0015】文章バッファポインター4aを文章の先頭
を示すようにして、続いて文章バッファ4bの文頭から
句点までの1文ずつを取り出す(ステップS04)。文
章バッファポインター4aを次の1文の先頭に移動す
る。取り出した1文を1文解析手段6aに送り、校正用
辞書7を利用して解析する(ステップS05)。解析が
できると解析結果をCPU3に返送して、文法上のミス
や不具合点があれば、CRT2にその旨のメッセージを
表示する(ステップS06)(図7参照)。
The sentence buffer pointer 4a is set so as to indicate the beginning of the sentence, and then one sentence from the beginning of the sentence buffer 4b to the phrase is taken out (step S04). The sentence buffer pointer 4a is moved to the beginning of the next sentence. The one sentence taken out is sent to the one-sentence analysis means 6a and analyzed using the proofreading dictionary 7 (step S05). When the analysis is completed, the analysis result is returned to the CPU 3, and if there is a grammatical error or a defect, a message to that effect is displayed on the CRT 2 (step S06) (see FIG. 7).

【0016】自動的に修正できる場合は、指示に従い自
動的に修正する(ステップS08)。自動的に修正でき
ない場合はユーザーがマニュアルで修正する。修正が終
わると現在の位置が文末かをチェックする(ステップS
09)。文末でなければ、次の1文を取り出す。文末な
らば、全文での評価メッセージをCRT2に表示する
(図8参照)。ユーザーがメッセージを読み終えると、
キーボード1から終了キーを入力することにより、文章
校正を終了する(ステップS11)。
If it can be automatically corrected, it is automatically corrected according to the instruction (step S08). If it cannot be corrected automatically, the user manually corrects it. When the correction is completed, it is checked whether the current position is the end of the sentence (step S
09). If it is not the end of sentence, the next sentence is taken out. If it is the end of the sentence, an evaluation message for the entire sentence is displayed on the CRT 2 (see FIG. 8). When the user finishes reading the message,
The proofreading is completed by inputting the end key from the keyboard 1 (step S11).

【0017】図4は文章校正の機能とモードによってす
るかしないかを表している。漢字比率は“高速”“中
間”“詳細”どのモードでもチェックする。送り仮名の
ゆらぎは“中間”“詳細”でチェックして、“高速”で
はチェックしない。異なる文体の使用は“詳細”のモー
ドのみでチェックして、“中間”“高速”ではチェック
しない。
FIG. 4 shows whether or not the proofreading function and mode are used. Check the kanji ratio in any of the "high speed", "intermediate" and "detailed" modes. Fluctuations in the sending kana should be checked in "intermediate" and "details" and not in "high speed". Use different styles only in "Detail" mode, not in "Middle" or "High speed".

【0018】図5は文章校正の機能と全文章解析後にメ
ッセージを表示するか、1文ごとに表示するか、修正が
自動的に行えるかを表している。漢字比率は全文章解析
後にメッセージを表示する。長すぎる文は1文ごとにメ
ッセージ表示し、また全文解析後にもメッセージ表示す
る。長音のゆらぎは1文ごとにメッセージ表示し、その
場で自動的に修正できる。また全文解析後にもメッセー
ジ表示する。用例の誤りの指摘は1文ごとにメッセージ
表示し、その場で自動的に修正できる。常用外漢字は1
文ごとにメッセージ表示する。
FIG. 5 shows the function of proofreading and whether a message is displayed after the whole text is analyzed, whether it is displayed for each sentence, or whether correction can be performed automatically. For the kanji ratio, a message is displayed after analyzing all sentences. A message is displayed for each sentence that is too long, and a message is displayed even after full-text analysis. A long-sound fluctuation can be automatically corrected on the spot by displaying a message for each sentence. Also, a message is displayed even after full-text analysis. If you point out an error in an example, a message is displayed for each sentence, and you can automatically correct it on the spot. 1 common non-Kanji
Display a message for each sentence.

【0019】このようにして、この実施例によれば、状
況に応じた文章の解析レベルを選択することができ、急
いでいる場合は表面的な解析のみを行い校正のスピード
を優先したり、最初の校正では細かいところまで十分チ
ェックしたりというように解析の詳しさを変更すること
が可能となる。
In this way, according to this embodiment, the analysis level of the sentence can be selected according to the situation, and when the situation is urgent, only the superficial analysis is performed and the speed of calibration is prioritized. In the first calibration, it is possible to change the details of the analysis, such as checking the details thoroughly.

【0020】さらに、1文ごとに解析した結果を蓄える
解析バッファを備えることによって、1文ごとの解析結
果に対応するメッセージを表示したり、全文解析後に全
文の評価を示すメッセージを表示したりすることもでき
る。
Further, by providing an analysis buffer for storing the analysis result for each sentence, a message corresponding to the analysis result for each sentence is displayed, or a message indicating the evaluation of the whole sentence is displayed after full-text analysis. You can also

【0021】[0021]

【発明の効果】本発明の文章校正装置は、文章の校正を
行うための文章解析の基準として複数の解析レベルを持
ち、校正用辞書を用いてそれぞれの解析レベルに対応し
て文章の校正を行うことが可能な解析手段と、選択され
た解析レベルを解析手段に対して設定するレベル設定手
段と、記憶手段に記憶された文章が設定された解析レベ
ルによって校正されるように解析手段を制御し、校正さ
れた文章を表示手段へ出力する制御手段とを備えること
により、状況に応じて解析レベルを選択することがで
き、急いでいる場合は、表面的な解析のみを行い校正の
スピードを優先したり、最初の校正では細かいところま
で十分チェックしたりというように、解析の詳しさを変
更できる。
The text proofreading apparatus of the present invention has a plurality of analysis levels as a text analysis reference for proofreading a text, and uses a proofreading dictionary to proofread a text corresponding to each analysis level. Analyzing means capable of performing, level setting means for setting a selected analysis level to the analyzing means, and controlling the analyzing means so that the text stored in the storage means is calibrated by the set analysis level. However, by providing a control means for outputting the calibrated text to the display means, it is possible to select the analysis level according to the situation. You can change the details of the analysis, such as giving priority or checking the details in the first calibration.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明の構成を示すブロック図である。FIG. 1 is a block diagram showing a configuration of the present invention.

【図2】本発明の一実施例の構成図である。FIG. 2 is a configuration diagram of an embodiment of the present invention.

【図3】本発明のフローチャートである。FIG. 3 is a flowchart of the present invention.

【図4】文章校正の機能と解析モードの関係を示す説明
図である。
FIG. 4 is an explanatory diagram showing a relationship between a sentence proofreading function and an analysis mode.

【図5】文章校正の機能と表示メッセージおよび自動修
正機能との対応を示す説明図である。
FIG. 5 is an explanatory diagram showing a correspondence between a proofreading function and a display message and an automatic correction function.

【図6】表示装置の初期画面を示す説明図である。FIG. 6 is an explanatory diagram showing an initial screen of the display device.

【図7】文法上のミスがあった場合の表示例を示す説明
図である。
FIG. 7 is an explanatory diagram showing a display example when there is a grammatical mistake.

【図8】全文の評価メッセージの表示例を示す説明図で
ある。
FIG. 8 is an explanatory diagram illustrating a display example of a full-text evaluation message.

【符号の説明】[Explanation of symbols]

1 キーボード 2 CRT 3 CPU 4 記憶手段 4a 文章バッファポインター 4b 文章バッファ 5 解析レベルフラグ 6 解析手段 6a 1文解析手段 6b 1文バッファ 6c 解析バッファ 7 校正用辞書 1 Keyboard 2 CRT 3 CPU 4 Storage Means 4a Text Buffer Pointer 4b Text Buffer 5 Analysis Level Flag 6 Analysis Means 6a 1 Sentence Analysis Means 6b 1 Sentence Buffer 6c Analysis Buffer 7 Calibration Dictionary

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 文字を入力すると共に、文章校正のため
の解析レベルを選択する入力手段と、入力された文章を
記憶する記憶手段と、文章校正をするための文章校正用
辞書と、表示手段と、文章の校正を行なうための文章解
析の基準として複数の解析レベルを持ち、校正用辞書を
用いて、それぞれの解析レベルに対応して文章の校正を
行うことが可能な解析手段と、選択された解析レベルを
解析手段に対して設定するレベル設定手段と、記憶手段
に記憶された文章が設定された解析レベルによって校正
されるように解析手段を制御し、校正された文章を表示
手段へ出力する制御手段を備えた文章校正装置。
1. An input unit for inputting characters and selecting an analysis level for proofreading, a storage unit for storing the input sentence, a proofreading dictionary for proofreading, and a display unit. And an analysis means that has a plurality of analysis levels as a sentence analysis standard for proofreading a sentence and can proofread a sentence corresponding to each analysis level using a proofreading dictionary, Level setting means for setting the analyzed level to the analyzing means, and controlling the analyzing means so that the text stored in the storage means is calibrated by the set analysis level, and the calibrated text is displayed on the display means. A text proofreading device equipped with a control means for outputting.
JP4104906A 1992-04-23 1992-04-23 Sentence correcting device Pending JPH05298302A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4104906A JPH05298302A (en) 1992-04-23 1992-04-23 Sentence correcting device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4104906A JPH05298302A (en) 1992-04-23 1992-04-23 Sentence correcting device

Publications (1)

Publication Number Publication Date
JPH05298302A true JPH05298302A (en) 1993-11-12

Family

ID=14393170

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4104906A Pending JPH05298302A (en) 1992-04-23 1992-04-23 Sentence correcting device

Country Status (1)

Country Link
JP (1) JPH05298302A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007102320A1 (en) * 2006-03-07 2007-09-13 Nec Corporation Language processing system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007102320A1 (en) * 2006-03-07 2007-09-13 Nec Corporation Language processing system

Similar Documents

Publication Publication Date Title
EP0093249A2 (en) System for detecting and correcting contextual errors in a text processing system
JPH024938B2 (en)
JPH05298302A (en) Sentence correcting device
JPH07134712A (en) Translating system
JP2571043B2 (en) Character replacement device
JP2890950B2 (en) Machine translation equipment
JP2729996B2 (en) Document processing apparatus and method
JP2737160B2 (en) Sentence processing equipment
JPH0916597A (en) Sentence elaboration device and method therefor
JPS61175855A (en) Kana to kanji converting device
JPH1031498A (en) Device and method for dictionary registration
JP3305005B2 (en) Natural language processing apparatus and method
JP2887327B2 (en) Japanese document proofreading device
JPH10240728A (en) Document preparation device and japanese syllabary-chinese character converting method
JPH05158938A (en) Foreign language input device
JPH1027174A (en) Device and method for japanese syllabary-chinese character conversion
JPS63763A (en) English spelling check system for word processor
JPS5838810B2 (en) Kanji-mixed sentence input device
JPH0559467B2 (en)
JPH07306861A (en) Machine translation system
JPH01177632A (en) Character processor
JPH06131333A (en) Sentence editing device
JPH07111716B2 (en) Electronic translator
JPH02130668A (en) Kana/kanji converting device
JPH07249035A (en) Device and method for japanese syllabary to chinese character conversion