JPH0476761A - Document processor with spelling checking function - Google Patents

Document processor with spelling checking function

Info

Publication number
JPH0476761A
JPH0476761A JP2191412A JP19141290A JPH0476761A JP H0476761 A JPH0476761 A JP H0476761A JP 2191412 A JP2191412 A JP 2191412A JP 19141290 A JP19141290 A JP 19141290A JP H0476761 A JPH0476761 A JP H0476761A
Authority
JP
Japan
Prior art keywords
word
candidate
misspelled
stored
memory
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
JP2191412A
Other languages
Japanese (ja)
Inventor
Hideo Ueno
英生 上野
Akihiko Niwa
明彦 丹羽
Nagamasa Satou
修誠 佐藤
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.)
Brother Industries Ltd
Original Assignee
Brother Industries Ltd
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 Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP2191412A priority Critical patent/JPH0476761A/en
Publication of JPH0476761A publication Critical patent/JPH0476761A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To improve the working efficiency of document processing by automatically rewriting an inputted misspelled word by its corresponding candidate word. CONSTITUTION:A misspelled word and a selected candidate word are relationally stored in a word pair memory 26 in a RAM 20. When an inputted word has been stored in the memory 26, the inputted word is automatically rewritten by a candidate word stored in relation to the misspelled word without executing spelling check or candidate word retrieval, so that in the case of repeatedly inputting a word stored by a misspelling, the retrieving and selecting operation of candidate words can be completely omitted in the 2nd input and after. Consequently, time required for the retrieving and selecting operation of candidate words is saved and the working efficiency of document processing is improved.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はスペルチェック機能付き文書処理装置に関し、
特にミススペル単語をそれに対応させて記憶していたそ
の候補単語で自動的に書換えるようにしたものに関する
[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to a document processing device with a spell check function;
In particular, it relates to a system in which a misspelled word is automatically rewritten with the candidate word stored in correspondence with the misspelled word.

〔従来技術〕[Prior art]

一般に、欧文用のワードプロセッサには、制御装置内に
多数の単語のスペル情報を格納した辞書メモリを備え、
入力単語のスペルをチエツクするスペルチェック機能や
ミススペル単語に関連する候補単語を検索してデイスプ
レィに表示する候補単語検索機能を設けたものが実用化
されている。
In general, word processors for Roman languages are equipped with a dictionary memory that stores spelling information for many words within the control device.
Devices equipped with a spell check function to check the spelling of input words and a candidate word search function to search for candidate words related to misspelled words and display them on a display have been put into practical use.

これらの機能を備えたワードプロセッサでは、入力単語
がミススペルの場合には、そのミススペル単語に関連す
る工ないし複数の正しいスペルの候補単語をデイスプレ
ィに表示させ、所望の候補単語を選択するようになって
いる。即ち、これらの候補単語が1つずつ表示される場
合、所望の単語が表示されるまで次キーを繰り返して操
作し、選択キーで選択した候補単語でミススペル単語を
置換するようになっている。
In word processors equipped with these functions, when an input word is misspelled, the display displays one or more correctly spelled candidate words related to the misspelled word, and the desired candidate word is selected. There is. That is, when these candidate words are displayed one by one, the next key is repeatedly operated until the desired word is displayed, and the misspelled word is replaced with the candidate word selected by the selection key.

また、これらの候補単語が1度に複数表示される場合、
通常、カーソルは先頭の候補単語を指示しているので、
2番目以降の候補単語を指示するときには、カーソル移
動キーを繰り返し操作して所望の候補単語をカーソルで
指示し、選択キーで選択した候補単語でミススペル単語
を置換するようになっている。
Also, if multiple of these candidate words are displayed at once,
Normally, the cursor points to the first candidate word, so
When specifying the second and subsequent candidate words, the cursor movement key is repeatedly operated to specify the desired candidate word with the cursor, and the misspelled word is replaced with the candidate word selected using the selection key.

ここで、前記候補単語は候補単語検索制御に基く所定の
ルールにより検索されるので、例えば前回と同じミスス
ペル単語を入力したときには、前回と同様の複数の候補
単語が前回と同様の表示順序で表示される。
Here, the candidate word is searched according to a predetermined rule based on candidate word search control, so for example, when the same misspelled word as the previous one is input, multiple candidate words similar to the previous one are displayed in the same display order as the previous one. be done.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

ところで、オペレータが幾つかの単語を間違ったスペル
で覚えているときには、間違ったスペルで繰返し入力し
てしまう場合も少なくない。
By the way, when an operator remembers some words with incorrect spellings, it is not uncommon for the operator to repeatedly input the incorrect spellings.

従って、従来のスペルチェック機能や候補単語検索機能
を備えたワードプロセッサにおいては、オペレータが誤
ったスペルで記憶している単語については、そのミスス
ペル単語を入力する毎に候補単語の検索が実行されて表
示されるので文書入力作業を中断して候補単語を選択し
なければならず、特に所望の候補単語の表示順序が遅い
場合には、カーソル移動キーや次キーをその都度何回も
操作しなければならず、候補単語の選択操作が複雑化す
ること、候補単語検索と選択操作に時間を要し、そのた
めに文書処理の作業能率が低下すること、などの問題が
ある。
Therefore, in word processors equipped with conventional spell check and candidate word search functions, each time the operator inputs the misspelled word, a candidate word search is executed and displayed. Therefore, you have to interrupt the document input work and select a candidate word, and especially if the desired candidate word is displayed late, you have to press the cursor movement key or next key several times each time. Moreover, there are problems such as the operation for selecting candidate words becomes complicated, the search for candidate words and the operation for selecting candidate words take time, and the efficiency of document processing decreases.

本発明の目的は、入力されたミススペル単語を対応する
候補単語で自動的に書換えできるようなスペルチェック
機能付き文書処理装置を提供することにある。
An object of the present invention is to provide a document processing device with a spell check function that can automatically replace input misspelled words with corresponding candidate words.

C課題を解決するための手段〕 第1請求項に係るスペルチェック機能付き文書処理装置
は、第1図(a)の機能ブロック図に示すように、文字
や記号及び種々の指令を入力する為の入力手段と、複数
の文字列を表示可能な表示手段と、入力された或いは予
めメモリに格納された単語のデータを順々に受けて格納
する単語バッファと、多数の単語のスペル情報を格納し
た辞書メモリと、単語バッファから単語のデータを受け
て各対象単語について辞書メモリを介してスペルチェッ
クを行なうスペルチェック手段と、スペルチェック手段
でミススペルと判定されたミススペル単語に関連する候
補単語を辞書メモリがら検索する候補単語検索手段と、
検索された候補単語を表示手段に表示させる表示制御手
段と、表示された候補単語から所望の候補単語を選択す
る選択手段とを備えたスペルチェック機能付き文書処理
装置において、選択手段で選択された候補単語とミスス
ペル単語とを関連づけて格納する単語対記憶手段と、対
象単語が単語対記憶手段に格納されているか否かを判別
する判別手段と、判別手段の判別結果を受け、対象単語
がミススペル単語として格納されているときには単語バ
ッファ内の対象単語をそのミススペル単語に関連させて
単語対記憶手段に格納されている候補単語で書換えると
ともに、スペルチェック手段にその対象単語のスペルチ
ェックを中止させる書換え指令手段とを備えたものであ
る。
Means for Solving Problem C] A document processing device with a spell check function according to the first claim, as shown in the functional block diagram of FIG. an input means, a display means capable of displaying a plurality of character strings, a word buffer that sequentially receives and stores word data input or stored in memory in advance, and a word buffer that stores spelling information of a large number of words. a spell checker that receives word data from the word buffer and performs a spell check on each target word via the dictionary memory; and a dictionary that stores candidate words related to misspelled words determined to be misspelled by the spell checker. Candidate word search means for searching through memory;
In a document processing device with a spell check function, which includes a display control means for displaying searched candidate words on a display means, and a selection means for selecting a desired candidate word from the displayed candidate words, a word selected by the selection means is provided. a word pair storage means for storing candidate words and misspelled words in association with each other; a determination means for determining whether or not a target word is stored in the word pair storage means; When stored as a word, the target word in the word buffer is associated with the misspelled word and rewritten with a candidate word stored in the word pair storage means, and the spell checking means stops spell checking the target word. It is equipped with a rewriting command means.

第2請求項に係るスペルチェック機能付き文書処理装置
は、第1図(b)の機能ブロック図に示すように、前記
選択手段で候補単語を選択する毎に、その候補単語とミ
ススペル単語とからなる単語対を単語対記憶手段の先頭
位置に格納していく単語対格納手段を備えたものである
As shown in the functional block diagram of FIG. 1(b), the document processing device with a spell check function according to a second aspect of the present invention provides a document processing device with a spell check function that selects a candidate word and a misspelled word each time the selection means selects a candidate word. The present invention is provided with word pair storage means for storing word pairs such as at the top position of the word pair storage means.

〔作用〕[Effect]

第1請求項に係るスペルチェック機能付き文書処理装置
においては、単語対記憶手段は選択手段で選択された候
補単語とスペルチェック手段でミススペルと判定された
ミススペル単語とを関連づけて格納する。一方、判別手
段は、単語バッファに対象単語が格納される毎に、その
対象単語が単語対記憶手段に格納されているか否かを判
別する。
In the document processing device with a spell check function according to the first aspect, the word pair storage means stores the candidate word selected by the selection means and the misspelled word determined to be misspelled by the spell check means in association with each other. On the other hand, the determining means determines whether or not the target word is stored in the word pair storage means each time the target word is stored in the word buffer.

そして、書換え指令手段は、判別手段の判別結果を受け
て、対象単語がミススペル単語として格納されていると
きには、単語バッファ内の対象単語をそのミススペル単
語に関連させて単語対記憶手段に格納されている候補単
語で書換えるとともに、スペルチェック手段にその対象
単語のスペルチェックを中止させる。
Then, in response to the determination result of the determining means, when the target word is stored as a misspelled word, the rewriting command means associates the target word in the word buffer with the misspelled word and stores it in the word pair storage means. The target word is rewritten with the target word, and the spell check means stops checking the spell of the target word.

第2請求項に係るスペルチェック機能付き文書処理装置
においては、基本的に第1請求項と同様に作用するが、
単語対格納手段は、選択手段で候補単語を選択する毎に
、その候補単語とミススペル単語とからなる単語対を単
語対記憶手段の先頭位置に順次格納する。
The document processing device with a spell check function according to the second claim basically operates in the same manner as the first claim, but
Each time a candidate word is selected by the selection means, the word pair storage means sequentially stores word pairs consisting of the candidate word and the misspelled word at the head position of the word pair storage means.

〔発明の効果〕〔Effect of the invention〕

第1請求項に係るスペルチェック機能付き文書処理装置
によれば、単語対記憶手段と判別手段と書換え指令手段
とを設け、ミススペル単語と選択した候補単語とを関連
づけて単語対記憶手段に格納しておき、入力した対象単
語がこの単語対記憶手段に格納されているときには、ス
ペルチェックや候補単語検索を実行することなく対象単
語はミススペル単語に関連させて格納されている候補単
語で自動的に書換えられるので、誤ったスペルで記憶し
ている単語を繰り返して入力するような場合、候補単語
の検索と選択操作を2回目以降において一切省略するこ
とができ、これにより候補単語検索と選択操作に要する
時間を節減し、文書処理の作業能率を大幅に向上させる
ことができる。
According to the document processing device with a spell check function according to the first aspect, the word pair storage means, the discrimination means, and the rewrite command means are provided, and the misspelled word and the selected candidate word are stored in the word pair storage means in association with each other. Then, when the input target word is stored in this word pair storage means, the target word is automatically replaced with the stored candidate word in association with the misspelled word without performing a spell check or candidate word search. Since it is rewritten, if you repeatedly enter a word that you have memorized with an incorrect spelling, you can omit the search and selection operation for candidate words from the second time onwards. This can save time and greatly improve document processing efficiency.

第2請求項に係るスペルチェック機能付き文書処理装置
によれば、第1請求項と同様の効果が得られる。加えて
、選択手段で候補単語を選択する毎に、候補単語とミス
スペル単語とからなる単語対が単語対記憶手段の先頭位
置に格納されるので、最新に格納されたミススペル単語
程その検索時間がより短縮され、文書処理の作業能率を
より大幅に向上させることができる。
According to the document processing device with a spell check function according to the second claim, the same effects as in the first claim can be obtained. In addition, each time a candidate word is selected by the selection means, a word pair consisting of a candidate word and a misspelled word is stored at the beginning of the word pair storage means, so the more recently stored a misspelled word, the faster the search time. It is possible to significantly improve the efficiency of document processing.

〔実施例〕 以下、本発明の実施例について図面に基いて説明する0
本実施例は英語用のワードプロセッサに本発明を適用し
た場合のものである。
[Example] Hereinafter, an example of the present invention will be described based on the drawings.
This embodiment is a case where the present invention is applied to an English word processor.

第2図に示すように、ワードプロセッサ1の本体フレー
ム2の前部にはキーボード3が配設され、キーボード3
の後方で本体フレーム2内にはデイジ−ホイール式の印
字機構PMが配設され、キーボード3の後部には文字や
記号からなる表示情報を表示可能な液晶デイスプレィ1
0が設けられている。
As shown in FIG. 2, a keyboard 3 is disposed at the front of the body frame 2 of the word processor 1.
A daisy-wheel type printing mechanism PM is provided in the main body frame 2 behind the keyboard 3, and a liquid crystal display 1 capable of displaying display information consisting of characters and symbols is provided at the rear of the keyboard 3.
0 is set.

キーボード3には、アルファベットキーと数字キーと記
号キーとを含む文字キー、スペースキーリターンキー、
デイスプレィ10上のカーソルを左右方向に夫々移動さ
せるためのカーソル移動キ、各種の機能キーなどが通常
のものと同様に設けられるとともに、スペルチェックモ
ードを設定或いは解除するためのスペルチェックモード
設定キー、次の候補単語を表示させるための次キー1つ
前の候補単語を表示させるための前キー、入力したミス
スペル単語を所望の候補単語に置換するための選択キー
、各種の機能を終了させる終了キーが設けられている。
The keyboard 3 includes character keys including alphabet keys, numeric keys, and symbol keys, a space key, a return key,
Cursor movement keys for moving the cursor on the display 10 in the left and right directions, various function keys, etc. are provided in the same way as normal ones, as well as a spell check mode setting key for setting or canceling the spell check mode, Next key to display the next candidate word Previous key to display the previous candidate word, Selection key to replace the entered misspelled word with the desired candidate word, End key to end various functions is provided.

印字機構PMはプラテンやキャリッジやデイジ−ホイー
ル及びこれらの駆動回路などを備えた一般的な構成のも
のである。
The printing mechanism PM has a general configuration including a platen, a carriage, a daisy wheel, a driving circuit for these, and the like.

次に、ワードプロセッサ10制御系は第3図のブロック
図に示すように構成されている。
Next, the control system of the word processor 10 is constructed as shown in the block diagram of FIG.

表示機構DMは、液晶デイスプレィ10と、このデイス
プレィ10に表示データを出力するための表示用RAM
及び文字や記号などの多数のドツトパターンを格納した
キャラクタジェネレータROMを含むデイスプレィコン
トローラ11とをIえた−船釣な構成のものである。尚
、符号AMはブザー12とこのブザー12を鳴動させる
駆動回路工3とを備えたアラーム−機構である。
The display mechanism DM includes a liquid crystal display 10 and a display RAM for outputting display data to the display 10.
and a display controller 11 including a character generator ROM storing a large number of dot patterns such as characters and symbols. Incidentally, reference numeral AM designates an alarm mechanism that includes a buzzer 12 and a drive circuit 3 that makes the buzzer 12 sound.

制御装置CはCPUI 6と、CPU16にデータバス
などのバスI5を介して接続された入出力インターフェ
イスI4、ROMl7・I8及びRAM20とから構成
されている。
The control device C includes a CPU 6, an input/output interface I4 connected to the CPU 16 via a bus I5 such as a data bus, ROMs 17 and 18, and a RAM 20.

ROM17のプログラムメモリには、キーボード3から
入力されるコードデータに対応させて表示機構DMを制
御する制御プログラムやそのコードデータをラインバッ
ファ21に格納する制御プログラム、カーソル移動キー
の操作に応じてカーソルを移動させるカーソル移動制御
プログラム、スペルチェック/候補単語検索制御プログ
ラムなどが格納されている。
The program memory of the ROM 17 includes a control program that controls the display mechanism DM in response to code data input from the keyboard 3, a control program that stores the code data in the line buffer 21, and a control program that controls the display mechanism DM in response to code data input from the keyboard 3, and a control program that stores the code data in the line buffer 21. A cursor movement control program for moving the cursor, a spell check/candidate word search control program, etc. are stored.

前記スペルチェック/候補単語検索制御プログラムには
、入力単語についてスペルチェック処理を実行するため
のスペルチェック処理サブルーチンとミススペル単語に
関連する候補単語を辞書メモリ18内で検索する候補単
語検索処理サブルーチンとが格納されている。
The spell check/candidate word search control program includes a spell check processing subroutine for executing spell check processing on input words and a candidate word search processing subroutine for searching the dictionary memory 18 for candidate words related to misspelled words. Stored.

ROM1Bの辞書メモリには、単語のスペルをチエツク
するために、例えば約70,000語の単語に関するス
ペルデータが通常の辞書と同様にアルファヘット順に格
納されている。
In the dictionary memory of the ROM 1B, spelling data regarding approximately 70,000 words, for example, is stored in alphabetical order like a normal dictionary in order to check the spelling of words.

ここで、スペルチェック処理は周知の一般的なものなの
で簡単に説明すると、キーボード3から入力されて単語
バッファ24に格納された単語の単語データについてR
OM1Bの辞書メモリに格納した多数の単語のスペルデ
ータと比較してスペルをチエツクするものである。
Here, spell check processing is a well-known and common process, so to briefly explain it, the word data of the word input from the keyboard 3 and stored in the word buffer 24
The spelling is checked by comparing the spelling data of a large number of words stored in the dictionary memory of the OM1B.

候補単語検索処理は周知の一般的なものなので簡単に説
明すると、ミススペル単語の各文字をアルファベットの
各文字と入れ換えた単語が辞書メモリ18に存在するか
否かを順次繰り返して検索し、或いは同様の発音等でス
ペルを間違い易い規則に基いて文字列を入れ換える等し
て検索し、ミススペル単語に関連する正しいスペルの候
補単語を検索するものである。
Candidate word search processing is a well-known and general process, so to briefly explain it, it is a search process that repeatedly searches whether or not a word exists in the dictionary memory 18 by replacing each letter of a misspelled word with each letter of the alphabet, or a similar process. This method searches for correctly spelled candidate words related to the misspelled word by transposing character strings based on rules that make misspellings easier.

RAM20のラインバッファ21には、キーボード3か
ら人力された1行分の単語のデータが格納される。
In the line buffer 21 of the RAM 20, one line of word data input manually from the keyboard 3 is stored.

テキストメモリ22には、ラインバッファ21から1行
分の単語データを順々に受けて文書データが格納される
The text memory 22 receives one line of word data from the line buffer 21 one after another and stores document data.

バッファポインタ23には、カーソルの表示位置に基い
たラインバッファ21内の1つのアドレスが格納される
。尚、このポインタ23の内容をポインタPTOとする
The buffer pointer 23 stores one address within the line buffer 21 based on the display position of the cursor. Note that the contents of this pointer 23 are referred to as pointer PTO.

単語バッファ24には、ラインバッファ21から供給さ
れる最新の入力単語(対象単語)のデータが格納される
The word buffer 24 stores the latest input word (target word) data supplied from the line buffer 21.

候補単語メモリ25には、ミススペル単語について検索
された正しいスペルの候補単語のデータが、例えば最大
50まで格納される。尚、最終の候補単語の次のアドレ
スには終了データrFFJが自動的に格納される。
The candidate word memory 25 stores, for example, up to 50 correctly spelled candidate words searched for misspelled words. Note that the end data rFFJ is automatically stored at the address next to the final candidate word.

バッテリでバックアップされたRAMからなる単語対メ
モリ26には、第5図に示すようにミススペルと判定さ
れたミススペル単語のデータと選択キー操作で選択され
た候補単語のデータとを対にした単語対が、例えば最大
100組まで格納される。尚、最終の単語対の次のアド
レスには終了データrFF、が自動的に格納される。
As shown in FIG. 5, the word pair memory 26 consisting of a RAM backed up by a battery stores word pairs in which the data of the misspelled word determined to be misspelled and the data of the candidate word selected by the selection key operation are paired. For example, up to 100 sets are stored. Note that end data rFF is automatically stored at the next address of the final word pair.

ポインタ27には、候補単語メモリ25の1つのアドレ
スが格納される。尚、このポインタ27の内容をPTI
とする。
One address of the candidate word memory 25 is stored in the pointer 27 . Note that the contents of this pointer 27 are
shall be.

フラグメモリ28には、スペルチェックモードが設定さ
れたときにセット(データが「1」)され、解除された
ときにリセット(データが「0」)されるスペルチェッ
クモードフラグFのフラグデータが格納される。更に、
RAM20にはCPU16で演算した演算結果を一時的
に格納する各種メモリやカウンタやポインタなどが必要
に応じて設けられている。
The flag memory 28 stores flag data of a spell check mode flag F that is set (data is "1") when the spell check mode is set and reset (data is "0") when the spell check mode is canceled. be done. Furthermore,
The RAM 20 is provided with various types of memories, counters, pointers, etc. for temporarily storing the results of calculations performed by the CPU 16, as required.

次に、ワードプロセッサlの制御装置Cで行なわれるス
ペルチェック/候補単語検索制御のルーチンについて、
第4図(a)〜第4図(b)のフローチャートに基いて
説明する。尚、図中5i(i=10.11.12・・・
)は各ステップである。
Next, regarding the spell check/candidate word search control routine performed by the control device C of the word processor I,
This will be explained based on the flowcharts shown in FIGS. 4(a) to 4(b). In addition, 5i (i=10.11.12...
) is each step.

文書データの入力モードにおいて、キーボード3で文字
キーやスペースキーなどの種々のキーが操作される毎に
、そのキーに対応するコードデータがラインバッファ2
1に格納されると同時にこの制御が開始され、スペース
キーやリターンキーなどの単語の区切りキーが操作され
たときに(S10:Yes)、フラグFがセットされて
いてスペルチェックモードのときには(Sll:Yes
)、ポインタPTOに基いてラインバッファ21から最
新の入力単語のデータが読出されて単語バッファ24に
格納される(S12)。尚、SIO又はSliでNOと
判定されたときには、この制御を終了してメインルーチ
ンにリターンする。次に、入力単語データについて単語
対メモリ26に格納されたミススペル単語データが全て
検索され(313)、入力単語と同一の単語が単語対メ
モリ26に格納されていないときには(S14:NO)
、入力単語データについて辞書メモリ18を用いてスペ
ルチェック処理が実行され(318)、人力単語と同一
の単語が存在せずミススペルのときには(S19:Ye
s)、ブザー12の鳴動によりミススペルが警告され(
S20)、候補単語メモリ25がクリアされる(S21
)。次に、このミススペル単語に関連する候補単語が辞
書メモリ18内で検索され(S22)、候補単語が検出
されたときには(S23:Yes)、検出された全ての
候補単語が候補単語メモリ25に格納されるとともに、
ポインタPTIには候補単語メモリ25の先頭アドレス
が格納される(S24)。しかし、候補単語が検出され
ないときには(S23:NO)、デイスプレィ10に「
候補単語なし」が表示される(326)。
In the document data input mode, each time a character key, space key, or other key is operated on the keyboard 3, the code data corresponding to that key is stored in the line buffer 2.
This control is started at the same time that the word separator key such as the space key or return key is operated (S10: Yes), and when the flag F is set and the spell check mode is in effect (Sll :Yes
), the latest input word data is read from the line buffer 21 based on the pointer PTO and stored in the word buffer 24 (S12). Note that when the SIO or Sli determines NO, this control is ended and the process returns to the main routine. Next, all misspelled word data stored in the word pair memory 26 is searched for the input word data (313), and if the same word as the input word is not stored in the word pair memory 26 (S14: NO).
, a spell check process is executed for the input word data using the dictionary memory 18 (318), and if there is no word that is the same as the human word and there is a misspelling (S19: Ye
s), the buzzer 12 sounds to warn you of the misspelling (
S20), the candidate word memory 25 is cleared (S21)
). Next, the dictionary memory 18 is searched for candidate words related to this misspelled word (S22), and when a candidate word is detected (S23: Yes), all detected candidate words are stored in the candidate word memory 25. Along with being
The starting address of the candidate word memory 25 is stored in the pointer PTI (S24). However, when no candidate word is detected (S23: NO), the display 10 shows “
"No candidate word" is displayed (326).

次に、候補単語メモリ25に格納された候補単語のうち
ポインタPTIで指示する先頭位置に格納された1番目
の候補単語が表示される(S25)。
Next, the first candidate word stored in the first position indicated by the pointer PTI among the candidate words stored in the candidate word memory 25 is displayed (S25).

そして、次キーが操作されたときに(S27・S28:
Yes)、終了データrFFJに基いてポインタPTI
が最終候補単語以外の候補単語の先頭アドレスを指示し
ているときには(329:NO)、ポインタPTIがイ
ンクリメントされて次に格納されている候補単語の先頭
アドレスを指示するので(S30)、次の候補単語が表
示される(331)。また、前キーが操作されたときに
(S27・S33 :Yes)、ポインタPTIが先頭
候補単語以外の゛候補単語の先頭アドレスを指示してい
るときには(S34:No)、ポインタPT1がデクリ
メントされて1つ前に格納されている候補単語の先頭ア
ドレスを指示するので(S35)、1つ前の候補単語が
表示される(336)。
Then, when the next key is operated (S27/S28:
Yes), pointer PTI based on end data rFFJ
When indicates the start address of a candidate word other than the final candidate word (329: NO), the pointer PTI is incremented and points to the start address of the next stored candidate word (S30). Candidate words are displayed (331). Furthermore, when the previous key is operated (S27/S33: Yes) and the pointer PTI indicates the start address of a candidate word other than the first candidate word (S34: No), the pointer PT1 is decremented. Since the start address of the candidate word stored immediately before is specified (S35), the candidate word immediately before is displayed (336).

尚、S29或いは334でYesと判定されたときには
、ブザー12が鳴動される(S32)。
Incidentally, when it is determined Yes in S29 or 334, the buzzer 12 sounds (S32).

そして、選択キーが操作されたときには(327・S3
7:Yes)、デイスプレィ10に表示されている候補
単語が入力されたミススペル単語で置換して表示される
とともに、単語バッファ24を介してラインバッファ2
1内で入力単語に置換して書換えられ(33B)、単語
対メモリ26内において、ミススペル単語と選択された
候補単語とからなる単語対が先頭位置に挿入格納され(
S39)、メインルーチンにリターンする。例エバ、第
5図に示すように、ミススペルである入力単語「ass
k」、rsma ] Jと選択された候補単語rask
」、rsmall」とを夫々対にして格納される。
Then, when the selection key is operated (327・S3
7: Yes), the candidate word displayed on the display 10 is replaced with the inputted misspelled word and displayed, and the word buffer 24 is sent to the line buffer 2 via the word buffer 24.
1 is replaced with the input word (33B), and a word pair consisting of the misspelled word and the selected candidate word is inserted and stored at the top position in the word pair memory 26 (33B).
S39), return to the main routine. For example, as shown in Figure 5, the input word ``ass'' is a misspelling.
k'', rsma ] J and the selected candidate word rask
", rsmall" are stored in pairs.

一方、入力単語と同一の単語が格納されているときには
(S14:Yes)、ポインタPTOで指示するライン
バッファ21内の入力単語は、単語バッファ24を介し
てその単語に対応させて単語対メモリ26に格納されて
いる候補単語で書換えられる(315)。例えば、第5
図に示すように入力単語rsmal」がミススペル単語
として単語対メモリ26に格納されているときには、ラ
インバッファ21内の入力単語つまりミススペル単語r
smal」は、このミススペル単語rSmal」に対応
させて単語対メモリ26に格納されている候補単語rs
mall」で書換えられる。
On the other hand, when the same word as the input word is stored (S14: Yes), the input word in the line buffer 21 indicated by the pointer PTO is stored in the word pair memory 2 (315). For example, the fifth
As shown in the figure, when the input word "rsmal" is stored in the word pair memory 26 as a misspelled word, the input word in the line buffer 21, that is, the misspelled word r
smal” is a candidate word rs stored in the word pair memory 26 in correspondence with this misspelled word rSmal.
It can be rewritten as "mall".

次に、単語対メモリ26内において、そのミススペル単
語と候補単語とからなる単語対が先頭位置に移動して挿
入格納され(S16)、入力単語を候補単語に自動的に
書換えたことをオペレータに告知するためにブザー12
が例えば2回鳴動され(S17)、この制御を終了して
メインルーチンにリターンする。例えば、第6図に示す
ように、ミススペル単語rsmal」と候補単語rsm
a11」とからなる単語対が先頭位置に移動して挿入格
納される。そして、次に単語rsmaljを再度入力し
たときには、この入力単語rsma1」は単語対メモリ
26の先頭位置に格納されているので、入力単語rsm
al」の検索時間が短縮される。但し、S14でYes
と判定されてS15〜317が実行されたときには、入
力単語についてS1Bで行なわれるスペルチエ・ツク処
理は中止される。
Next, in the word pair memory 26, the word pair consisting of the misspelled word and the candidate word is moved to the top position and inserted and stored (S16), and the operator is informed that the input word has been automatically rewritten to the candidate word. Buzzer 12 to notify
is sounded, for example, twice (S17), and this control is ended and the process returns to the main routine. For example, as shown in FIG. 6, the misspelled word rsmal and the candidate word rsm
a11'' is moved to the top position and inserted and stored. Then, when the word rsmalj is input again next time, since this input word rsma1 is stored at the beginning position of the word pair memory 26, the input word rsm
The search time for "al" is shortened. However, Yes in S14
When it is determined that S15 to S317 are executed, the spell check process performed on the input word in S1B is canceled.

そして、終了キーが操作されたときには(327・S4
0:Yes)、表示した候補単語を消去するなどの終了
処理が実行され(S41)、メインルーチンにリターン
する。しかし、次キーや前キーや選択キーや終了キー以
外のキーが操作されたときには(S27 :Yes、3
40 :No)、ブザー12が鳴動される(S42)。
Then, when the end key is operated (327・S4
0: Yes), a termination process such as erasing the displayed candidate word is executed (S41), and the process returns to the main routine. However, when a key other than the next key, previous key, selection key, or end key is operated (S27: Yes, 3
40: No), the buzzer 12 sounds (S42).

前記スペルチェック/候補単語検索処理制御を部分的に
変更し、単語対メモリ26に格納されているミススペル
単語について、同一のミススペル単語が入力される毎に
その回数をカウントする一方、そのカウント値が所定数
になったとき以降、そのミススペル単語を対応する候補
単語で自動的に書換えるようにしてもよい。
The spell check/candidate word search processing control is partially changed to count the number of times the same misspelled word stored in the word pair memory 26 is inputted, and the count value is After reaching a predetermined number, the misspelled word may be automatically replaced with a corresponding candidate word.

以上説明したように、ミススペル単語と選択した候補単
語とを関連づけて単語対メモリ26に格納しておき、入
力した単語がこの単語対メモリ26に格納されていると
きには、スペルチェックや候補単語検索を実行すること
なく入力単語はミススペル単語に関連させて格納されて
いる候補単語で自動的に書換えられるので、誤ったスペ
ルで記憶している単語を繰り返して入力するような場合
、候補単語の検索と選択操作を2回目以降において一切
省略することができ、これにより候補単語検索と選択操
作に要する時間を節減し、文書処理の作業能率を大幅に
向上させることができる。
As explained above, a misspelled word and a selected candidate word are associated with each other and stored in the word pair memory 26, and when the input word is stored in this word pair memory 26, a spell check or a candidate word search is performed. The input word is automatically rewritten with the candidate word stored in association with the misspelled word without having to run the word, so if you repeatedly enter a word that you have memorized with an incorrect spelling, you can use the search function to search for candidate words. The selection operation can be completely omitted from the second time onward, thereby reducing the time required for candidate word searches and selection operations, and greatly improving the efficiency of document processing.

更に、候補単語を選択する毎に、候補単語とミススペル
単語とからなる単語対が単語対メモリ26の先頭位置に
格納されるので、最新に格納されたミススペル単語程そ
の検索時間がより短縮され、文書処理の作業能率をより
大幅に向上させることができる。
Furthermore, each time a candidate word is selected, a word pair consisting of a candidate word and a misspelled word is stored at the beginning of the word pair memory 26, so that the search time for the most recently stored misspelled word is reduced. The efficiency of document processing can be significantly improved.

尚、選択候補単語メモリ26には、順序番号データと選
択された候補単語のデータとを関連づけて格納するよう
にしてもよい。
Note that the selected candidate word memory 26 may store the sequence number data and the data of the selected candidate word in association with each other.

また、選択候補単語メモリ26は、RAMタイプのIC
カードやフロッピーディスクなどの外部記憶メモリとし
て設けることも可能である。この場合には、多数の単語
を格納することが出来る。
Further, the selection candidate word memory 26 is a RAM type IC.
It is also possible to provide an external storage memory such as a card or floppy disk. In this case, a large number of words can be stored.

尚、候補単語メモリ25や選択候補単語メモリ26には
、候補単語のデータに代えて候補単語が格納されている
辞書メモリ18の先頭アドレスを格納するようにしても
よい。
Note that the candidate word memory 25 and the selected candidate word memory 26 may store the starting address of the dictionary memory 18 in which the candidate words are stored instead of the candidate word data.

尚、テキストメモリ22に既に格納した文書データの各
単語についてスペルチェック処理する場合にも本発明を
適用し得ることも可能である。
Note that the present invention can also be applied to the case where each word of document data already stored in the text memory 22 is subjected to spell check processing.

尚、固定辞書メモリやユーザー辞書メモリを備えスペル
チェック/候補単語検索処理が可能な欧文用ワードプロ
セッサや電子タイプライタなどの種々の文書処理装置に
本発明を通用し得ることは勿論である。
It goes without saying that the present invention can be applied to various document processing apparatuses, such as Roman word processors and electronic typewriters, which are equipped with a fixed dictionary memory or a user dictionary memory and are capable of spell check/candidate word search processing.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図(a) ・第1図(b)は夫々本発明の構成を示
す機能ブロック図、第2図〜第6図は本発明の実施例を
示すもので、第2図はワードプロセッサの斜視図、第3
回はワードプロセッサの制御系のブロック図、第4図(
a)〜第4[1(b)はスペルチェック/候補単語検索
処理制御のルーチンの概略フローチャート、第5図・第
6図は夫々単語対メモリの構成を説明する説明図である
。 1・・ワードプロセッサ、  3・・キーボード、10
・・液晶デイスプレィ、  16・・CPU、17・・
ROM (プログラムメモリ)、  18・・ROM(
辞書メモリ)、 20・・RAM。 24・・単語バッファ、 26・・単語対メモリ、C・
・制御装置、 DM・・表示機構。 第 図 (a) 第 図 (b) 第4図 (b) 第 図 第6図
Figures 1(a) and 1(b) are functional block diagrams showing the configuration of the present invention, Figures 2 to 6 show embodiments of the present invention, and Figure 2 is a perspective view of a word processor. Figure, 3rd
The block diagram of the word processor control system is shown in Figure 4 (
a) to 4 [1(b) are schematic flowcharts of spell check/candidate word search processing control routines, and FIGS. 5 and 6 are explanatory diagrams illustrating the configuration of word pair memories, respectively. 1. Word processor, 3. Keyboard, 10
...Liquid crystal display, 16...CPU, 17...
ROM (program memory), 18...ROM (
dictionary memory), 20...RAM. 24...word buffer, 26...word pair memory, C.
・Control device, DM...Display mechanism. Figure (a) Figure (b) Figure 4 (b) Figure 6

Claims (2)

【特許請求の範囲】[Claims] (1)文字や記号及び種々の指令を入力する為の入力手
段と、複数の文字列を表示可能な表示手段と、入力され
た或いは予めメモリに格納された単語のデータを順々に
受けて格納する単語バッファと、多数の単語のスペル情
報を格納した辞書メモリと、単語バッファから単語のデ
ータを受けて各対象単語について辞書メモリを介してス
ペルチェックを行なうスペルチェック手段と、スペルチ
ェック手段でミススペルと判定されたミススペル単語に
関連する候補単語を辞書メモリから検索する候補単語検
索手段と、検索された候補単語を表示手段に表示させる
表示制御手段と、表示された候補単語から所望の候補単
語を選択する選択手段とを備えたスペルチェック機能付
き文書処理装置において、前記選択手段で選択された候
補単語とミススペル単語とを関連づけて格納する単語対
記憶手段と、前記対象単語が単語対記憶手段に格納され
ているか否かを判別する判別手段と、 前記判別手段の判別結果を受け、対象単語がミススペル
単語として格納されているときには単語バッファ内の対
象単語をそのミススペル単語に関連させて単語対記憶手
段に格納されている候補単語で書換えるとともに、スペ
ルチェック手段にその対象単語のスペルチェックを中止
させる書換え指令手段とを備えたことを特徴とするスペ
ルチェック機能付き文書処理装置。
(1) An input means for inputting characters, symbols, and various commands, a display means capable of displaying a plurality of character strings, and a means for sequentially receiving word data input or stored in memory in advance. a word buffer for storing, a dictionary memory storing spelling information of a large number of words, a spell checking means for receiving word data from the word buffer and performing a spell check on each target word via the dictionary memory, and a spell checking means. Candidate word search means for searching a dictionary memory for a candidate word related to a misspelled word determined to be misspelled; Display control means for displaying the searched candidate word on a display means; and a desired candidate word from among the displayed candidate words. a word pair storage means for storing a candidate word selected by the selection means and a misspelled word in association with each other; a discriminating means for discriminating whether or not the target word is stored in the word buffer; and based on the discriminating result of the discriminating means, when the target word is stored as a misspelled word, the target word in the word buffer is associated with the misspelled word, and word pairing is performed. 1. A document processing device with a spell check function, comprising rewriting command means for rewriting with a candidate word stored in a storage means and for instructing a spell check means to stop spell checking the target word.
(2)前記選択手段で候補単語を選択する毎に、その候
補単語とミススペル単語とからなる単語対を単語対記憶
手段の先頭位置に格納していく単語対格納手段を備えた
ことを特徴とする第1請求項に記載のスペルチェック機
能付き文書処理装置。
(2) Each time a candidate word is selected by the selection means, the word pair storage means stores a word pair consisting of the candidate word and a misspelled word at the head position of the word pair storage means. A document processing device with a spell check function according to claim 1.
JP2191412A 1990-07-18 1990-07-18 Document processor with spelling checking function Pending JPH0476761A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2191412A JPH0476761A (en) 1990-07-18 1990-07-18 Document processor with spelling checking function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2191412A JPH0476761A (en) 1990-07-18 1990-07-18 Document processor with spelling checking function

Publications (1)

Publication Number Publication Date
JPH0476761A true JPH0476761A (en) 1992-03-11

Family

ID=16274181

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2191412A Pending JPH0476761A (en) 1990-07-18 1990-07-18 Document processor with spelling checking function

Country Status (1)

Country Link
JP (1) JPH0476761A (en)

Similar Documents

Publication Publication Date Title
JPS63149719A (en) Information processor
JPH0512287A (en) Document processor
US4994968A (en) Word processing device
JPH0821030B2 (en) Document processing device
JPS61217864A (en) Electronic dictionary
US4863296A (en) Information processing apparatus
JPH0476761A (en) Document processor with spelling checking function
US4933896A (en) Word processing apparatus for comparing entered data with stored data from a selected address and in a selected order
JPH0476759A (en) Document processor with spelling checking function
US5121481A (en) Text (word processor) having right end justified variable size display area for information related to input data
JP2575650B2 (en) Kana-Kanji conversion device
JP2600654B2 (en) Document processing device
JPH036659A (en) Document processor
JPS63192156A (en) Information processor
JPH0476760A (en) Document processor with spelling checking function
JP2509554B2 (en) Character processing method
JP2573183B2 (en) Kana-Kanji conversion device
JPS63168767A (en) Ducument forming device
JPH0488466A (en) Document processor provided with spelling checking function
JPH0476762A (en) Document processor with spelling checking function
JPH04213157A (en) Word processor with spell check function
JPH0721176A (en) Method and device for character correction
JPH0485665A (en) Document processor with spell check function
JPS63206857A (en) Document preparing device with spelling check function
JPS63257862A (en) Character processor