JP3760428B2 - Document editing apparatus and recording medium - Google Patents

Document editing apparatus and recording medium Download PDF

Info

Publication number
JP3760428B2
JP3760428B2 JP27883597A JP27883597A JP3760428B2 JP 3760428 B2 JP3760428 B2 JP 3760428B2 JP 27883597 A JP27883597 A JP 27883597A JP 27883597 A JP27883597 A JP 27883597A JP 3760428 B2 JP3760428 B2 JP 3760428B2
Authority
JP
Japan
Prior art keywords
word
environment data
document
use environment
information
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.)
Expired - Fee Related
Application number
JP27883597A
Other languages
Japanese (ja)
Other versions
JPH10177574A (en
Inventor
啓子 石井
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP27883597A priority Critical patent/JP3760428B2/en
Publication of JPH10177574A publication Critical patent/JPH10177574A/en
Application granted granted Critical
Publication of JP3760428B2 publication Critical patent/JP3760428B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Document Processing Apparatus (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は、日本語の文章中で使用されている表現形態の編集(修正)を行う文書編集装置と、コンピュータを文書編集装置として機能させるためのプログラムが記録された記録媒体に関する。
【0002】
【従来の技術】
近年の半導体技術の進歩に伴い、従来、かな漢字変換を行うだけの装置であったワードプロセッサに、さまざまな機能が付加されるようになってきている。例えば、特開昭62−274459号公報には、作成された文章内で用いられている敬語が、その文章の主語に対して、適当なものであるか否かを判断する機能が付加されたワードプロセッサが開示されている。また、類似の技術として、特開平5−73610号公報には、入力された文章を名詞、動詞(単語)に分割し、各名詞が接頭語「お」を取るか「ご」を取るか、また、各動詞が丁寧語を取り得るか否か、どのような尊敬語をとるかを判断して、各単語が取り得る表現形態を全て列挙する装置が開示されている。
【0003】
【発明が解決しようとする課題】
上述したような機能が付加されたワードプロセッサによれば、当該機能を有していないワードプロセッサに比べて、誤った表現を用いた文書を作成してしまうことが少なくなる。しかしながら、日本語における敬語表現には、さまざまなレベルの表現があるため、上述したような機能が付加されたワードプロセッサを、敬語の使用法に関する知識を持たない者が使用した場合、作成される文書は、敬語が過剰に使用されていたりして、全体的なバランスの悪い文章となっていた。また、文書の使用目的によっては、書き言葉よりも話し言葉で作成した方が良い場合もあるが、従来のワードプロセッサでは、書き言葉で作成された文書を、話し言葉の文書に変換するといったことは出来なかった。
【0004】
そこで、本発明の課題は、敬語の使用法に関する知識を持たない者でも、容易に、その使用目的に応じた正確な形態で敬語が使用された文書を作成することができる文書編集装置を提供することにある。
【0005】
【課題を解決するための手段】
本発明の文書編集装置は、(イ)複数の単語と、各単語に割り当てられた、単語を使用環境で分類するための使用環境データとを、同じ意味を有する単語が識別できる形態で記憶する単語記憶手段と、(ロ)文書の使用目的を直接的に表す情報である使用目的情報と、単語記憶手段内の単語に割り当てられている使用環境データとの対応関係を記憶する対応関係記憶手段と、(ハ)表現形態のチェックを行うべき文書である編集対象文書に関する使用目的情報を入力する入力手段と、(ニ)対応関係記憶手段に記憶された対応関係に基づき、入力手段によって入力された使用目的情報に対応する使用環境データを特定する使用環境データ特定手段と、(ホ)編集対象文書に含まれる単語を順次、処理対象として特定する単語特定手段と、(ヘ)この単語特定手段で特定された単語に関して単語記憶手段に記憶されている使用環境データが、使用環境データ特定手段によって特定された使用環境データと一致していなかった場合に、その単語と同じ意味を有し、かつ、使用環境データ特定手段によって特定された使用環境データと一致する使用環境データが割り当てられて単語記憶手段に記憶されている単語を用いて、編集対象文書内の単語特定手段で特定された単語を置換する単語置換手段とを備える。
【0006】
すなわち、本発明の文書編集装置は、文書中で使用されることがある各種の単語が、同じ意味を有する単語が識別できるように、しかも、それら同じ意味を有する単語が、それぞれ、どのような場合に使用すべき単語であるかが分かる形態で(例えば、尊敬度などといった使用環境データに対応づけて)保持している。また、文書の使用目的を直接的に表す情報である使用目的情報と使用環境データとの対応関係をも保持し、ユーザによって、文書の使用目的情報が入力された場合には、その使用目的情報に対応する使用環境データを特定し、編集対象文書を構成する各単語のうち、特定した使用環境データとは異なる使用環境データが対応づけられている単語、すなわち、使用法が不適当な単語については、特定した使用環境データが対応づけられている単語への置換を行う。
【0007】
このように、本発明の文書編集装置によれば、編集対象文書を構成する各単語のうち、その使用目的に応じた表現形態をとっていない単語が、使用目的に応じた表現形態の単語に置換されるため、敬語の使用法に関する知識を持っていない者でも、容易に、その使用目的に応じて正確な形態で敬語が使用された文書を作成することができる。
【0008】
なお、本発明の文書編集装置に、対応関係記憶手段として、編集対象文書の差出人の所在に関する第1情報と編集対象文書の受取人あるいは用途に関する第2情報とからなる使用目的情報と使用環境データとの対応関係を記憶する手段を採用し、入力手段として、第1情報と第2情報とを別途入力する手段を採用することも出来る。
【0009】
このように構成された文書編集装置によれば、多種の使用目的(情報)の中から1つの使用目的を選択する作業が、ユーザが理解しやすい形態で、しかも、簡単に行えることになる。
【0010】
また、本発明の文書編集装置に、同じ意味を有する話し言葉形態の単語と書き言葉形態の単語をも記憶した単語記憶手段を用いることも出来る。このように文書編集装置を構成した場合には、書き言葉で作成した文書を話し言葉からなる文書に、あるいは、話し言葉で作成した文書を書き言葉からなる文書に、容易に変換できることになる。
【0011】
また、単語置換手段として、単語特定手段で特定された単語に関して単語記憶手段に記憶されている使用環境データが、使用環境データ特定手段によって特定された使用環境データと一致していなかった場合に、単語の置換を行うか否かを問うメニューを表示し、単語の置換を行うことが指示されたときに、その単語と同じ意味を有し、かつ、使用環境データ特定手段によって特定された使用環境データと一致する使用環境データが割り当てられて単語記憶手段に記憶されている単語を用いて、編集対象文書内の単語特定手段で特定された単語を置換する手段を用いることも出来る。
【0012】
また、単語記憶手段として、使用環境データに対応づけた形で、文書中での使用が好ましくない単語である禁句をも記憶する手段を用い、単語置換手段として、単語特定手段で特定された単語が、単語記憶手段内に、使用環境データ特定手段によって特定された使用環境データに対応する禁句として記憶されていた場合には、その旨を表示する手段を用いることも出来る。
【0013】
このように文書編集装置を構成した場合には、文書中における禁句の使用の有無をチェックできることになるので、誤って失礼な文書(禁句を使用した文書)を相手に差し出してしまうといったことを防止できることになる。
【0014】
なお、本発明の文書編集装置を実現するために、文書編集装置専用のハードウェアを作製する必要はなく、コンピュータを、(イ)複数の単語と、各単語に割り当てられた、単語を使用環境で分類するための使用環境データとを、同じ意味を有する単語が識別できる形態で記憶する単語記憶手段と、(ロ)文書の使用目的を直接的に表す情報である使用目的情報と、単語記憶手段内の単語に割り当てられている使用環境データとの対応関係を記憶する対応関係記憶手段と、(ハ)表現形態のチェックを行うべき文書である編集対象文書に関する使用目的情報を入力する入力手段と、(ニ)対応関係記憶手段に記憶された対応関係に基づき、入力手段によって入力された使用目的情報に対応する使用環境データを特定する使用環境データ特定手段と、(ホ)編集対象文書に含まれる単語を順次、処理対象として特定する単語特定手段と、(ヘ)この単語特定手段で特定された単語に関して単語記憶手段に記憶されている使用環境データが、使用環境データ特定手段によって特定された使用環境データと一致していなかった場合に、その単語と同じ意味を有し、かつ、使用環境データ特定手段によって特定された使用環境データと一致する使用環境データが割り当てられて単語記憶手段に記憶されている単語を用いて、編集対象文書内の単語特定手段で特定された単語を置換する単語置換手段、として機能させるためのプログラムが記録された記録媒体を用いることによって、一般的なコンピュータを文書編集装置として機能させても良い。
【0015】
【発明の実施の形態】
以下、図面を参照して、本発明の実施形態を具体的に説明する。
<第1実施形態>
図1に、第1実施形態の文書編集装置の構成を示す。第1実施形態の文書編集装置は、いわゆる、ワードプロセッサに、文書中での敬語の使用方法の妥当性をチェックする機能を付加した装置である。図示したように、文書編集装置10は、入力部11と表示部12と記憶部13とインタフェース部141〜143とROM15とRAM16とCPU17とを主な構成要素として備える。インタフェース部141〜143とROM15とRAM16とCPU17は、バス18によって相互に接続されており、入力部11と記憶部12と表示部13は、それぞれ、インタフェース部141〜143を介してバス28と接続されている。
【0016】
入力部11は、ユーザが、文書編集装置10(CPU17)に対する指示を入力するための機器であり、キーボードとマウス(図示せず)とから構成されている。表示部12は、編集を行っている文書(文書データの内容)を表示するための機器であり、液晶ディスプレイによって構成されている。記憶部13は、文書データを記憶するための機器であり、いわゆる、フロッピディスクドライブによって構成されている。
【0017】
インタフェース部141〜143は、それぞれ、入力部11と記憶部12と表示部13と、CPU17との間のデータ転送を担当する回路であり、インタフェース部143内には、表示部12に表示されるデータが記憶されるメモリが設けられている。ROM15には、プログラムと、日本語解析辞書と敬語辞書と禁句辞書(各辞書の詳細は後述)が記憶されている。CPU17は、各部を統合的に制御する制御回路であり、RAM16を作業領域として用いて、ROM15に記憶されたプログラムに従った制御を実行する。
【0018】
以下、文書編集装置10(CPU17)の動作を詳細に説明する。なお、本文書編集装置10は、文書を作成する機能も有する装置であるので、CPU17は、そのための制御をも行うのであるが、当該制御は、通常のワードプロセッサ内に設けられているCPUによる制御とほぼ同じものとなっている。このため、その説明は省略し、ここでは、既に、文書が作成されているものとして、CPU17による制御手順を説明することにする。
【0019】
まず、図2及び図3を用いて、ROM15に記憶されている敬語辞書と禁句辞書の概要を説明する。なお、日本語解析辞書は、一般的なワードプロセッサが備えている辞書と同じものであるので説明は省略する。
【0020】
図2に示したように、敬語辞書には、置き換え元単語と置き換え先単語と尊敬度と文体情報との組み合わせが記憶されている。尊敬度は、置き換え先単語に対応するデータであり、本装置では、通常、使用される単語に尊敬度“0”が、目上の者に対して使用すべき単語に、より大きな数値が割り当ててある。また、置き換え元単語しては、尊敬度“0”の単語が記憶されている。文体情報は、対応する置き換え先単語が、「書き言葉」として使用される単語であるが、「話し言葉」として使用される単語であるか、どちらとしても使用される単語であるかを示す情報となっている。
【0021】
図示してあるように、敬語辞書には、異なる置き換え先単語(と尊敬度と文体情報)が、同じ置き換え元単語に対応づけられて記憶されており、CPU17は、この辞書を用いて、文書中の敬語の使用方法の妥当性のチェック並びに置き換えを行う。なお、置き換え元単語、置き換え先単語といった名称は、便宜上のものであり、CPU17は、敬語辞書内に、置き換え先単語として記憶されている単語を、置き換え元単語として記憶されている単語に置き換える場合もある。
【0022】
図3に示したように、禁句辞書は、見出し語と禁句状況情報と代替語の対応関係を記憶した辞書となっている。禁句状況情報は、見出し語が禁句となる状況を示した情報であり、例えば、一般的に使用すべきでない単語(見出し語)に対応する禁句状況情報としては、「一般」が設定され、特定の状況のみに禁句となる単語に対応する禁句状況情報としては、その特定の状況(例えば、結婚式)を示す情報が設定される。そして、代替語としては、見出し語の代わりに使用すべき(使用することが可能な)単語が設定されている。
【0023】
次に、図4ないし図10を用いて、上記した各辞書を用いて行われる処理である敬語使用法チェック処理の詳細を説明する。これらの図のうち、図4および図5は、敬語使用法チェック処理時のCPU17の動作手順を説明するための流れ図であり、図6ないし図10は、敬語使用法チェック処理時に表示部12に表示される差出人設定用メニューあるいは受取人設定用メニューの概要を示した図である。なお、敬語使用法チェック処理は、RAM16に存在している文書(データ)に対して行われる処理であり、敬語使用法チェック処理を開始させる際、ユーザは、文書の新規作成や、フロッピディスクに記憶しておいた文書を読み出しなどを行うことによって、編集対象とする文書データをRAM16上に用意し、その後、入力部11に対して、敬語使用法チェック処理を起動させるための操作を行う。
【0024】
当該操作がなされたことを検出したCPU17は、敬語使用法チェック処理を開始し、図4に示したように、まず、TPO取得処理を実行する(ステップS101)。
【0025】
既に、概要を説明したように、CPU17は、編集対象となっている文書の内容のチェックを、敬語辞書並びに禁句辞書を用いて行うが、TPO取得処理は、その際に用いるデータである尊敬度、文体情報、禁句状況情報(以下、これらを併せたデータをTPOデータと表記する)を、当該文書の差出人と受取人との関係(文書の使用目的)から特定する処理となっている。
【0026】
図5に示したように、CPU17は、TPO取得処理を開始した際、まず、表示部12を制御することによって、差出人設定用メニューの表示を行う(ステップS201)。
【0027】
図6に示したように、差出人設定用メニューには、「家」、「学校」、「会社」、「商店」といった4つの項目が設けられており、ユーザは、編集を行っている文章の差出人のいる場所に該当する項目を入力部11を用いて選択する。
【0028】
一方、差出人設定用メニューの表示(ステップS201)後、CPU17は、入力部11からの信号を監視する状態(ステップS202)に移行しており、カーソルキーの押下を検出した際には、差出人設定用メニュー(図6)における“◎”の表示位置の変更を行う。また、エンターキーが押下されたことを検出した際には、“◎”が表示されている項目が選択されたものと認識する。なお、CPU17は、マウスに対する操作に対しても同様の手順で応答する。すなわち、CPU17は、マウスがクリックされことを検出した場合、カーソルキーの押下時と同様の処理を行い、ダブルクリックされたことを検出した場合には、エンターキーの押下時と同様の処理を行う。
【0029】
キーボードあるいはマウスによって、いずれかの項目を選択するための操作がなされたことを検出した場合(ステップS202;Y)、CPU17は、選択された項目に対応する受取人設定用メニューの表示を行う(ステップS203)。
【0030】
図7ないし図10に、それぞれ、ステップS202において、「家」、「学校」、「会社」、「商店」が選択された場合に表示される受取人設定用メニューを示す。これらの図から明らかなように、各受取人設定用メニューには、対応する差出人の場所(立場)からの文書の受取人となることが多い人の属性、あるいは、文書の目的に関する項目が設けられている。例えば、図7に示してある「家」に対応する受取人設定用メニューには、「家」からの文書の受取人となることが多い「家族」、「親戚」、「ご近所」といった項目と、「家」からの文書の目的であることが多い「結婚式」、「お悔み」といった項目が設けられている。
【0031】
いずれかの受取人設定用メニューの表示後、CPU17は、ユーザによって、受取人設定用メニュー上の項目が選択されるのを待機(ステップS204;N)し、項目が選択されたことを検出したとき(ステップS204;Y)には、選択された項目に基づき、敬語使用法のチェックを行う際に使用するTPOデータ(尊敬度、文体情報、禁句情報)を特定する(ステップS205)。なお、ステップS205におけるTPOデータ特定のために、ROM15に記憶されているプログラム内には、図11に模式的に示したように、「差出人の場所」と「受取人の場所」との組み合わせから、尊敬度と文体情報と禁句情報とが検索できるテーブルが用意されており、CPU17は、そのテーブルを参照することによって、TPOデータの特定を行う。
【0032】
図4に戻って、TPO取得処理完了後のCPU17の動作手順を説明する。TPO取得処理(ステップS101)の完了後、CPU17は、その時点において編集対象となっている文書(RAM16に、その内容が記憶されている文書)から、チェックを行う一つの文章の切り出しを行う(ステップS102)。なお、ここで、「切り出す」とは、文章(文字列データ)を、RAM16の作業領域にコピーすることを意味し、ステップS102において、CPU17は、編集対象文書の最初あるいは前回切り出した文書の次の文字から、句点あるいは改行記号までの文字列をチェックを行う一つの文章として切り出す。また、詳細は後述するが、CPU17は、このステップS102において、チェック対象となっている文章が、文書中のどの文章であるかを示すため処理も行う。
【0033】
その後、CPU17は、日本語解析辞書を用いて、切り出した文章の内容を解析し、その文章を、チェックを行う複数の文字列(単語)に分解する(ステップS103)。そして、CPU17は、分解した1つ(最初)の文字列(以下、チェック対象文字列と表記する)を、キーワードとして用いて敬語辞書並びに禁句辞書の検索を行う(ステップS104)。このステップにおいて、CPU17は、敬語辞書(図2参照)に対しては、チェック対象文字列と一致する単語が、置き換え元単語として記憶されているか否かの検索(判定)を行うとともに、置き換え先単語として記憶されているか否かをも検索する。そのような検索の結果、置き換え元単語あるいは置き換え先単語として、チェック対象文字列と一致する単語が記憶されていることを見いだした場合、CPU17は、敬語辞書の中から、その単語に対応するTPOデータ(尊敬度、文体情報)を読み出す。そして、読み出したTPOデータが、TPO取得処理で取得したTPOデータと一致していなかったときには、TPO取得処理で取得したTPOデータと一致した尊敬度、文体情報を有し、かつ、チェック対象文字列に対する置き換え元単語と同じ置き換え元単語が対応づけられている置き換え先単語を読み出す(以下、このようにして読み出された単語を置換推奨文字列と表記する)。その後、チェック対象文字列が、編集対象文書中での使用が不適当な文字列であるとして、すなわち、要チェックである(ステップS105;Y)として、ステップS106に進む。
【0034】
また、敬語辞書から読み出したTPOデータが、TPO取得処理で取得したTPOデータと一致していたときには、要チェックではない(ステップS105;N)として、ステップS109に進む。ただし、ステップS104において、敬語辞書の検索とともに行われる禁句辞書の検索の結果、チェック対象文字列と同じ文字列が禁句辞書内に見出し語として記憶されており、しかも、禁句辞書内で、その見出し語に対応づけて記憶されている禁句状況情報が、TPO取得処理で取得したTPOデータの構成要素である禁句状況情報と一致していたときには、敬語辞書から読み出した尊敬度並びに文体が、TPO取得処理で取得したTPOデータと一致していた場合であっても、CPU17は、ステップS106からの処理を実行する。また、この場合、CPU17は、禁句辞書(図3参照)内に、チェック対象文字列に対応づけられて記憶されている代替語を、置換推奨文字列として取得する。
【0035】
すなわち、CPU17は、チェック対象文字列の尊敬度並びに文体情報が、TPO取得処理によって取得されているTPOデータ内の尊敬度並びに文体情報と一致し、しかも、チェック対象文字列が、TPOデータ内の禁句状況情報によって規定される状況下で、禁句となっていない場合に限り、ステップS105において“N”側への分岐を実行し、それ以外の場合には、敬語辞書に記憶されている他の単語、あるいは、禁句辞書に記憶されている代替語を置換推奨文字列として保持し、“Y”側への分岐を実行する。
【0036】
“Y”側への分岐時、CPU17は、表示部12を制御することによって、置換採否選択メニューの表示を行う(ステップS106)。置換採否選択メニューは、どのような点で、チェック対象文字列が不適当な文字列であると判定されたか、その文字列の代わりに使用すべき文字列である上述した置換推奨文字列、文字列の置換を実行するか否かを選択するための2つのボタン等が表示されるメニューであり、CPU17は、ステップS104における検索結果に基づき、表示する置換採否選択メニューの内容を定める。この置換採否選択メニューの具体例については後述する。
【0037】
ユーザは、表示部12に表示される置換採否選択メニューの内容を見て、不適当であると指摘された文字列の、置換推奨文字列への置換を行うか否かを決定し、決定した内容をCPU17に通知するための操作を、入力部11に対して行う。
【0038】
一方、CPU17は、置換採否選択メニューの表示後、入力部11からの信号の監視を開始しており、置換を指示するための操作がなされたことを検出したとき(ステップS107;Y)には、チェック対象文字列が、置換推奨文字列で置換されるように、RAM16上の文書データの内容を変更し(ステップS108)、ステップS109に進む。また、置換を実行しないことを指示する操作がなされたことを検出したとき(ステップS107;N)には、文字列の置換を行うことなく、ステップS109に進む。
【0039】
ステップS109において、CPU17は、ステップS102で切り出した一文章に関する処理が完了したか否かを判断(すなわち、ステップS103で分解した各文字列に関する処理が全て完了したか否かを判断)し、完了していなかった場合(ステップS109;N)には、ステップS104に戻り、分解しておいた、次の文字列に対する処理を開始する。一方、完了していた場合(ステップS109;Y)には、編集対象となっている文書を構成する全ての文章に関する処理が完了したか否かを判断し、完了していない場合(ステップS110;N)には、ステップS102に戻り、次の文章の切り出しを行う。そして、このような処理を繰り返し、全ての文章に関する処理が完了したとき(ステップS110;Y)に、CPU17は、敬語使用法チェック処理を終了する。
【0040】
以下、図12に示した文書が編集対象となっている場合を例に、文書編集装置10(CPU17)の動作をさらに具体的に説明する。
この場合、対象となっている文章は、会社内の文書であるため、ユーザは、敬語使用法チェック処理を起動した後に表示される差出人設定用メニュー(図6参照)において、「会社」を選択する。そして、その結果、表示される受取人設定用メニュー(図9参照)において、「差出人の同僚」を選択する。
【0041】
このような選択がなされると、CPU17は、図11に示したテーブルを参照することによって、尊敬度「1」、文体情報「書き言葉」、禁句状況情報「一般」からなるTPOデータを用いて、文書のチェックを実行すべきことを認識する。
【0042】
その後、図4のステップS202からの処理を開始し、「来る2月19日は〜是非観戦して下さい。」という文章をチェック対象として特定する。そして、図13に示したように、当該文書に下線を付すとともに、その文章のチェックを開始したことを示すメッセージの表示を行う。
【0043】
次いで、CPU17は、当該文書を分解した各文字列のチェックを開始し、尊敬度等が、TPO設定処理で設定されたTPOデータと一致していない文字列がチェック対象文字列となったときに、置換採否選択メニューの表示を行う。図13に下線を付して示してある文章では、「是非」の尊敬度が、TPOデータ内の尊敬度と異なるので、図14に示したように、CPU17は、「是非」を「万障お繰り合わせの上」に訂正すべきことが示された置換採否選択メニュー20を表示する。
【0044】
ユーザは、「置換する」、「そのまま」と表示されたいずれかのボタンを選択することによって、「是非」を「万障お繰り合わせの上」に置き換えるか否かの指示を入力する。
【0045】
例えば、ユーザが「そのまま」を選択した場合、CPU17は、「是非」の置換を行うことなく、次の文字列「観戦してください」のチェックを開始する。この文字列は、「ください」の使用法が不適当な文字列であり、図2に示したように、「観戦してください」に対応する尊敬度「1」の単語は、「ご観戦ください」である。このため、CPU17は、図15に示したように、「観戦してください」を「ご観戦ください」に訂正することを推奨する置換採否選択メニュー20の表示を行う。
【0046】
また、差出人設定用メニューにおいて「会社」が選択された後、受取人設定用メニューにおいて「取引先」が選択されていた場合には、TPOデータとして記憶される尊敬度が「3」になる。そして、図2に示してあるように、「観戦してください」に対応する尊敬度「3」の単語は、「ご観戦お願い申しあげます」である。このため、CPU17は、受取人設定用メニューにおいて「取引先」が選択されていた場合、図12に示した文章に対して、図16に示したように、「観戦してください」を「ご観戦お願い申しあげます」に訂正することを推奨する置換採否選択メニュー20の表示を行う。
【0047】
また、上述した説明から明らかなように、CPU17は、文書中で、過剰な敬語表現が用いられていた場合にも、その部分の表現形態を、TPOデータに応じたものとするための置換採否選択メニューを表示する。例えば、TPOデータとして記憶された尊敬度が「3」であるときに、「ご観戦していただくようお願い申しあげます」(尊敬度4)といった文字列を含む文書が編集対象として与えられた場合、CPU17は、図17に示したように、「ご観戦していただくようお願い申しあげます」を「ご観戦お願い申し上げます」に修正すべきことが示された置換採否選択メニュー20を表示する。
【0048】
このように、第1実施形態の文書編集装置を用いた場合、ユーザは、作成する文書に関係する項目を2つのメニューから選択するだけで、その文書内で用いられている表現形態を、その文書の用途に応じたものとすることができる。
【0049】
<第2実施形態>
第2実施形態の文書編集装置は、図4に示した敬語使用法チェック処理におけるステップS102およびS103における処理手順を変えた装置であり、全体的な動作手順は、第1実施形態の文書編集装置の動作手順と同じものとなっている。このため、ここでは、第1実施形態の文書編集装置とは異なる部分だけを説明することにする。
【0050】
第2実施形態の文書編集装置では、図2に示した敬語辞書の代わりに、図18に示した敬語辞書と、図19に示した活用形対応表とを保持している。
図18に示したように、第2実施形態の文書編集装置が備える敬語辞書は、置き換え元単語、置き換え先単語、尊敬度、文体情報に加えて、置き換え元単語の品詞および前単語の活用形と、置き換え先単語の品詞および前単語の活用形とが記憶される辞書になっている。なお、前単語の活用形に関する情報(連用1、連用3等)は、動詞に接続されて使用される助動詞についてのみ記憶されている。
【0051】
図19に示したように、活用形対応表は、各種の動詞を、各種の活用形(未然1、連用1等)で用いる場合、その動詞をどのように変化させれば良いかを示す情報が記憶されている。
【0052】
第2実施形態の文書編集装置内のCPUは、このような敬語辞書と活用形対応表を用いて、図4のステップS102およびS103相当のステップにおいて、文書中から、TPOデータに対応していない文字列を抽出し、また、その文字列の代わりに用いるべき文字列を決定する処理である置換推奨文字列決定処理を実行する。
【0053】
以下、図20を用いて、置換推奨文字列決定処理時のCPUの動作手順を説明する。
チェックをが行うべき一つの文章の切り出しを行った後、CPUは、解析用辞書を用いて、その文章を単語に分割し、各単語の品詞と活用形を判定する(ステップS301;図4のステップS102に対応)。そして、ステップS301における判定結果に基づき、チェックを行う単語あるいは文節を特定(ステップS302)し、チェック対象が単語であった場合(ステップS303;N)、すなわち、単独で尊敬度等の判定を行うべき単語が文章中に含まれていた場合には、敬語辞書と禁句辞書とを用いて、その単語の尊敬度等がTPOデータに対応するものであるか否かを判断し、TPOデータに対応していなかった場合には、置換推奨文字列の特定を行う(ステップS304)。そして、CPU17は、置換推奨文字列決定処理を終了し、図4のステップS105相当のステップに進む。その後、ステップS106〜S108相当の処理を実行し(あるいは実行せずに)、切り出した文章に関する処理が完了したか否かの判断を行い、完了していない場合には、ステップS302に戻り、残りの単語に関する処理を続行する。
【0054】
一方、チェック対象が複数の単語からなる文節であった場合(ステップS303;Y)、すなわち、動詞と助動詞の組み合わせといったように、文節単位で尊敬度を判定すべき単語列が文章中に含まれていた場合、CPU17は、文節を構成する単語の尊敬度を累積し、累積結果を、その文節の尊敬度とする(ステップS305)。そして、その文節の尊敬度と、TPOデータ内の尊敬度との大小関係の比較を行い(ステップS306)、文節の尊敬度がTPOデータ内の尊敬度よりも低いものであった場合(ステップS306;<TPO)には、より尊敬度の高い助動詞を探索し、そのような助動詞が存在した場合(ステップS307;Y)には、チェック対象となっている文節の助動詞部分を、探索した助動詞で置換することによって置換推奨文字列を作成(ステップS308)する。この際、CPUは、活用形対応表の内容を参照することによって、前単語の活用形を変えることが必要であるか否かを判断し、必要である場合には、前単語を修正する処理をも併せて行う。また、原則として、“1”だけ尊敬度の高い助動詞を探索する。
【0055】
その後、CPUは、置換によって作成した置換推奨文字列の尊敬度がTPOデータの構成要素である尊敬度と一致しているか否かの判断を行う(ステップS309)。そして、両者が一致していた場合(ステップS309;Y)には、図示した処理を終了し、図4のステップS105相当のステップに進む。
【0056】
一方、両者が一致していなかった場合(ステップS309;N)、CPUは、ステップS310に進む。また、より尊敬度の高い助動詞が存在しなかった場合(ステップS307;N)にも、CPUは、ステップS310に進む。そして、ステップS310において、CPUは、より尊敬度の高い動詞、サ変名詞、形容詞を、敬語辞書から探索する処理を行い、そのような動詞等が存在していた場合(ステップS310;Y)には、チェック対象となっている文節(あるいはステップS308で作成した置換推奨文字列)の対応する部分を、探索した動詞等で置換することによって置換推奨文字列を作成(ステップS311)し、処理を終了する。なお、ステップS310においても、ステップS308と同様に、原則として、“1”だけ尊敬度の高い動詞等が探索される。また、実際の装置では、ステップS311の終了後、尊敬度とTPOの比較が行われ、両者が一致していない場合には、ステップS307に戻るようになっているのであるが、流れ図が煩雑になるため、図20では、この部分の表示は省略してある。
【0057】
一方、求めた文節の尊敬度がTPOデータ内の尊敬度よりも高かった場合(ステップS306;>TPO)、CPUは、より尊敬度の低い助動詞の探索を行い、そのような助動詞が存在した場合(ステップS312;Y)には、チェック対象となっている文節の助動詞部分を、探索した助動詞で置換することによって置換推奨文字列を作成(ステップS313)し、作成した置換推奨文字列の尊敬度とTPOデータ内の尊敬度との比較を行う(ステップS314)。
【0058】
そして、両者が一致していた場合(ステップS309;Y)、CPUは、図示した処理を終了し、両者が一致していなかった場合(ステップS309;N)、には、ステップS315に進む。また、より尊敬度の高い助動詞が存在しなかった場合(ステップS312;N)にも、CPUは、ステップS315に進む。
【0059】
ステップS315において、CPUは、より尊敬度の低い動詞、サ変名詞、形容詞を、敬語辞書から探索する処理を行い、そのような動詞等が存在していた場合(ステップS315;Y)には、チェック対象となっている文節(あるいは置換推奨文字列)の対応する部分を、探索した動詞等で置換することによって置換推奨文字列を作成(ステップS316)し、処理を終了する。なお、図示は省略したが、実際の装置では、ステップS316の終了後、尊敬度とTPOの比較が行われ、両者が一致していない場合には、ステップS312に戻るようになっている。
【0060】
また、求めた文節の尊敬度がTPOデータ内の尊敬度と一致していた場合(ステップS306;=TPO)、CPUは、置換推奨文字列の作成を行うことなく、置換推奨文字列決定処理を終了し、図2のステップS105、S109相当の処理の実行後、ステップS302からの処理を再び開始する。
すなわち、第2実施形態の文書編集装置によって、図12に示した文書のチェックを実行させた場合、例えば、「是非観戦してください」といった部分は、図21に示したように、4つの単語に分割され、各単語の尊敬度の累積値(この場合、“0”)が、当該文字列の尊敬度であると看做される。そして、TPOデータ内の尊敬度が「1」であった場合には、助動詞である「てください」を、その助動詞に関する尊敬度「1」の置き換え先単語である「てくださいませ」で置き換えた文字列が置換推奨文字列となり、置換採否選択メニュー内に表示される。また、TPOデータ内の尊敬度が「2」であった場合には、助動詞である「てください」が、その助動詞に関する尊敬度「1」の置き換え先単語である「てくださいませ」で置き換えられるとともに、サ変名詞である「観戦」が、その単語に関する尊敬度「1」の置き換え先単語である「ご観戦」で置き換えられ、文字列「是非ご観戦してくださいませ」が、置換推奨文字列として、置換採否選択メニューに表示される。
【0061】
この文書編集装置によれば、第1実施形態の文書編集装置に比して構造は複雑になるものの、文書中で用いられている敬語の変換がより的確に行えることになる。
【0062】
<変形例>
第1並びに第2実施形態の文書編集装置は、敬語使用法チェック処理の開始を指示した際、最初にTPO設定処理が実行されるように構成してあるが、TPO設定処理と、TPO設定処理を除いた敬語使用法チェック処理が、別個に実施されるように装置を構成しても良いことは当然である。また、各実施形態の文書編集装置は、既存の文書を対象とする装置であったが、かな漢字変換時に、TPO設定処理を取り除いた敬語使用法チェック処理が実行されるように装置を構成することも出来る。さらに、置換採否選択メニューを表示することなく、文字列の置換が自動的に行われるように文書編集装置を構成しても良い。
【0063】
また、各実施形態の文書編集装置は、ROMにプログラム等を記憶させていることからも明らかなように、文書作成・編集用の専用装置(いわゆる、ワードプロセッサ)として構成してあるが、文書編集装置の実現方法はこれに限られない。
【0064】
例えば、図22に模式的に示したように、各実施形態のROM内に記憶されているプログラム並びに辞書に相当する文書編集プログラム31を、CD、FD等の記憶媒体32並びにそのドライブ33を介して、コンピュータ34にインストールすることによって、各実施形態の文書編集装置と同等の機能を有する装置を実現しても良い。また、プログラム部分のみがコンピュータ33にインストールされ、ドライブ33に、辞書が記憶された記憶媒体32をセットした状態で、運用が行われるようにしても良いことは当然である。また、プログラムが直接記憶媒体32から読み出されるようにしてもよいことも当然である。
【0065】
【発明の効果】
以上、詳細に説明したように、本発明の文書編集装置によれば、編集対象文書を構成する各単語のうち、その使用目的に応じた表現形態をとっていない単語が、使用目的に応じた表現形態の単語に置換されるため、敬語の使用法に関する知識を持っていない者でも、容易に、その使用目的に応じて正確な形態で敬語が使用された文書を作成することができる。
【図面の簡単な説明】
【図1】本発明の第1実施形態による文書編集装置の構成を示すブロック図である。
【図2】第1実施形態の文書編集装置が備える敬語辞書の概要を示す説明図である。
【図3】第1実施形態の文書編集装置が備える禁句辞書の概要を示す説明図である。
【図4】第1実施形態の文書編集装置で実行される敬語使用法チェック処理の流れ図である。
【図5】敬語使用法チェック処理時に最初に実行されるTPO設定処理の流れ図である。
【図6】TPO設定処理時に表示される差出人設定用メニューの説明図である。
【図7】TPO設定処理時に表示される受取人設定用メニューの説明図である。
【図8】TPO設定処理時に表示される受取人設定用メニューの説明図である。
【図9】TPO設定処理時に表示される受取人設定用メニューの説明図である。
【図10】TPO設定処理時に表示される受取人設定用メニューの説明図である。
【図11】TPOデータを特定する際に、CPUが参照するテーブルの説明図である。
【図12】第1実施形態の文書編集装置による敬語使用法チェック処理を説明するための、表示部の表示内容を示した図である。
【図13】図12に示した文書に対して、敬語使用法チェック処理を開始した際の、表示部の表示内容を示した図である。
【図14】図13に示した内容が表示された後、表示部に表示される表示内容を示した図である。
【図15】図14に示した内容が表示された後、表示部に表示される表示内容の一例を示した図である。
【図16】異なるTPOデータが設定されている場合に、図14に示した内容が表示された後、表示部に表示される表示内容の一例を示した図である。
【図17】異なるTPOデータが設定されている場合に、図14に示した内容が表示された後、表示部に表示される表示内容の一例を示した図である。
【図18】 第2実施形態の文書編集装置が備える敬語辞書の概要を示す説明図である。
【図19】 第2実施形態の文書編集装置が備える活用形対応表の概要を示す説明図である。
【図20】第2実施形態の文書編集装置で実行される置換推奨文字列決定処理の流れ図である。
【図21】置換推奨文字列決定処理における文章の単語への分解例を示した図である。
【図22】文書編集装置の他の実現方法を示す説明図である。
【符号の説明】
10 文書編集装置
11 入力部
12 表示部
13 記憶部
14 インタフェース回路
15 ROM
16 RAM
17 CPU
20 置換採否選択メニュー
31 文書編集プログラム
32 記憶媒体
33 ドライブ
34 コンピュータ
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a document editing apparatus that edits (corrects) an expression form used in a Japanese sentence, and a recording medium on which a program for causing a computer to function as a document editing apparatus is recorded.
[0002]
[Prior art]
With the recent advancement of semiconductor technology, various functions have been added to word processors, which have conventionally been devices that only perform kana-kanji conversion. For example, Japanese Patent Application Laid-Open No. 62-27459 added a function for determining whether or not an honorific used in a prepared sentence is appropriate for the subject of the sentence. A word processor is disclosed. As a similar technique, Japanese Patent Application Laid-Open No. 5-73610 discloses that an input sentence is divided into nouns and verbs (words), and each noun takes a prefix “o” or “go”, In addition, an apparatus is disclosed that determines whether each verb can take a polite word and what respect word it takes and lists all the expression forms that each word can take.
[0003]
[Problems to be solved by the invention]
According to the word processor to which the function as described above is added, it is less likely that a document using an incorrect expression is created as compared with a word processor that does not have the function. However, there are various levels of honorific expression in Japanese, so if a word processor with the functions described above is used by someone who does not have knowledge of how to use honorifics, a document is created. Was an unbalanced sentence as a result of excessive use of honorifics. Also, depending on the purpose of the document, it may be better to create it in spoken language than in written language, but conventional word processors cannot convert a document created in written language into a spoken language document.
[0004]
Accordingly, an object of the present invention is to provide a document editing apparatus that can easily create a document in which honorifics are used in an accurate form according to the purpose of use, even for those who do not have knowledge about how to use honorifics. There is to do.
[0005]
[Means for Solving the Problems]
The document editing apparatus according to the present invention stores (a) a plurality of words and use environment data assigned to each word for classifying the words in the use environment in a form in which words having the same meaning can be identified. Correspondence relation storage means for storing correspondence relation between word storage means, (b) use purpose information that is information directly representing the purpose of use of the document, and use environment data assigned to the words in the word storage means (C) input means for inputting purpose of use information relating to an edit target document that is a document whose expression form should be checked, and (d) input by the input means based on the correspondence relationship stored in the correspondence relationship storage means. Use environment data specifying means for specifying use environment data corresponding to the used purpose information, (e) word specifying means for sequentially specifying words included in the document to be edited as processing targets, When the use environment data stored in the word storage means for the word specified by the word specifying means does not match the use environment data specified by the use environment data specifying means, the same meaning as that word is obtained. The word specifying means in the document to be edited is specified by using words stored in the word storage means and assigned with the usage environment data that matches the usage environment data specified by the use environment data specifying means. Word replacement means for replacing the generated word.
[0006]
That is, the document editing apparatus of the present invention can identify various words that may be used in a document so that words having the same meaning can be identified. It is stored in a form that can be recognized as a word that should be used in some cases (for example, in correspondence with usage environment data such as a degree of respect). It also maintains the correspondence between the usage purpose information, which is information that directly represents the purpose of use of the document, and the usage environment data. If the purpose of use of the document is input by the user, the usage purpose information The usage environment data corresponding to is specified, and among the words that make up the document to be edited, the usage environment data that is different from the specified usage environment data, that is, the words whose usage is inappropriate Replaces the word with the identified usage environment data.
[0007]
As described above, according to the document editing apparatus of the present invention, among the words constituting the editing target document, a word that does not take an expression form corresponding to the purpose of use becomes a word of an expression form corresponding to the purpose of use. Therefore, even a person who does not have knowledge about how to use honorific can easily create a document in which honorific is used in an accurate form according to the purpose of use.
[0008]
In the document editing apparatus of the present invention, the usage information and usage environment data including first information relating to the location of the sender of the document to be edited and second information relating to the recipient or use of the document to be edited as correspondence storage means. It is also possible to adopt a means for storing the correspondence relationship between the first information and the second information as the input means.
[0009]
According to the document editing apparatus configured as described above, an operation of selecting one usage purpose from various usage purposes (information) can be easily performed in a form that is easy for the user to understand.
[0010]
Moreover, the word storage means which memorize | stored the word of the spoken word form and the word of the written word form which have the same meaning can also be used for the document editing apparatus of this invention. When the document editing apparatus is configured in this way, it is possible to easily convert a document created in written language into a document composed of spoken language, or a document created in spoken language into a document composed of written language.
[0011]
Further, when the use environment data stored in the word storage means for the word specified by the word specifying means as the word replacement means does not match the use environment data specified by the use environment data specifying means, When a menu for asking whether or not to replace a word is displayed, and when an instruction is given to replace the word, the use environment having the same meaning as the word and specified by the use environment data specifying means It is also possible to use a means for replacing the word specified by the word specifying means in the document to be edited using the words stored in the word storage means with the use environment data that matches the data.
[0012]
In addition, as a word storage means, a means for storing a forbidden phrase which is a word that is not preferable in a document in a form associated with the use environment data is used, and a word specified by the word specifying means as a word replacement means However, if it is stored in the word storage means as a forbidden phrase corresponding to the use environment data specified by the use environment data specifying means, means for displaying that fact can also be used.
[0013]
When a document editing device is configured in this way, it is possible to check whether or not a forbidden phrase is used in the document, so it is possible to prevent accidental submission of a rude document (a document using a forbidden phrase) to the other party. It will be possible.
[0014]
In order to realize the document editing apparatus of the present invention, it is not necessary to prepare hardware dedicated to the document editing apparatus, and the computer uses (a) a plurality of words and an environment in which words assigned to each word are used. (B) usage purpose information that is information directly representing the purpose of use of the document, and word storage. Correspondence storage means for storing correspondence relations with use environment data assigned to words in the means, and (c) input means for inputting purpose of use information relating to a document to be edited which is a document whose expression form should be checked. And (d) a use environment data specifying method for specifying use environment data corresponding to the use purpose information input by the input means based on the correspondence relation stored in the correspondence relation storage means. (E) word specifying means for sequentially specifying the words included in the document to be edited as processing targets, and (f) use environment data stored in the word storage means for the words specified by the word specifying means. When the usage environment data does not match the usage environment data specified by the usage environment data specification means, the usage environment has the same meaning as the word and matches the usage environment data specified by the usage environment data specification means. A recording medium on which a program for functioning as a word replacement unit that replaces a word specified by a word specifying unit in an edit target document using a word to which data is assigned and stored in a word storage unit is recorded By using this, a general computer may function as a document editing apparatus.
[0015]
DETAILED DESCRIPTION OF THE INVENTION
Embodiments of the present invention will be specifically described below with reference to the drawings.
<First Embodiment>
FIG. 1 shows the configuration of the document editing apparatus according to the first embodiment. The document editing apparatus according to the first embodiment is an apparatus in which a so-called word processor is added with a function for checking the validity of a usage method of honorifics in a document. As illustrated, the document editing apparatus 10 includes an input unit 11, a display unit 12, a storage unit 13, and an interface unit 14. 1 ~ 14 Three ROM 15, RAM 16 and CPU 17 are provided as main components. Interface unit 14 1 ~ 14 Three ROM 15, RAM 16, and CPU 17 are connected to each other by a bus 18. The input unit 11, the storage unit 12, and the display unit 13 are respectively connected to an interface unit 14. 1 ~ 14 Three It is connected to the bus 28 via
[0016]
The input unit 11 is a device for a user to input an instruction to the document editing apparatus 10 (CPU 17), and includes a keyboard and a mouse (not shown). The display unit 12 is a device for displaying a document being edited (contents of document data), and includes a liquid crystal display. The storage unit 13 is a device for storing document data, and includes a so-called floppy disk drive.
[0017]
Interface unit 14 1 ~ 14 Three Are circuits in charge of data transfer among the input unit 11, the storage unit 12, the display unit 13, and the CPU 17, respectively. Three Inside, a memory for storing data displayed on the display unit 12 is provided. The ROM 15 stores a program, a Japanese analysis dictionary, an honorific dictionary, and a phrase dictionary (details of each dictionary will be described later). The CPU 17 is a control circuit that controls each unit in an integrated manner, and executes control according to a program stored in the ROM 15 using the RAM 16 as a work area.
[0018]
Hereinafter, the operation of the document editing apparatus 10 (CPU 17) will be described in detail. Since the document editing apparatus 10 is also an apparatus having a function of creating a document, the CPU 17 also performs control for that purpose. The control is controlled by a CPU provided in a normal word processor. Is almost the same. Therefore, the description thereof is omitted, and here, the control procedure by the CPU 17 will be described on the assumption that a document has already been created.
[0019]
First, an outline of the honorific dictionary and the phrase dictionary stored in the ROM 15 will be described with reference to FIGS. Note that the Japanese analysis dictionary is the same as a dictionary provided in a general word processor, and thus description thereof is omitted.
[0020]
As shown in FIG. 2, the honorific dictionary stores a combination of a replacement source word, a replacement destination word, respect, and style information. The degree of respect is data corresponding to the replacement word, and in this apparatus, the degree of respect “0” is normally assigned to the word used, and a larger numerical value is assigned to the word to be used for the superior. It is. In addition, as a replacement source word, a word with a degree of respect “0” is stored. The stylistic information is information indicating whether the corresponding replacement word is a word used as a “written word” but a word used as a “spoken word” or a word used as either. ing.
[0021]
As shown in the figure, in the honorific dictionary, different replacement destination words (and respect and style information) are stored in association with the same replacement source word, and the CPU 17 uses this dictionary to store documents. Check the validity of the usage of honorifics and replace it. Note that names such as replacement source words and replacement destination words are for convenience, and the CPU 17 replaces words stored as replacement destination words in honorific dictionary with words stored as replacement source words. There is also.
[0022]
As shown in FIG. 3, the forbidden phrase dictionary is a dictionary that stores correspondences between headwords, forbidden phrase status information, and alternative words. Prohibition status information is information that indicates the situation in which a headword is prohibited. For example, “general” is set as the prohibition status information corresponding to a word (headword) that should not be used in general. Information indicating the specific situation (for example, wedding) is set as the phrase prohibition situation information corresponding to the word that is prohibited only in the situation. As alternative words, words that should be used (can be used) instead of head words are set.
[0023]
Next, details of honorific usage check processing, which is processing performed using each dictionary described above, will be described with reference to FIGS. 4 and 5 are flowcharts for explaining the operation procedure of the CPU 17 during the honorific usage check process. FIGS. 6 to 10 show the display unit 12 during the honorific usage check process. It is the figure which showed the outline | summary of the menu for sender setting or the menu for recipient setting displayed. The honorific usage check process is a process performed on a document (data) existing in the RAM 16, and when starting the honorific usage check process, the user can create a new document or use a floppy disk. By reading out the stored document, document data to be edited is prepared in the RAM 16, and thereafter, an operation for starting the honorific usage check process is performed on the input unit 11.
[0024]
The CPU 17 that has detected that the operation has been performed starts honorific usage checking processing, and first executes TPO acquisition processing as shown in FIG. 4 (step S101).
[0025]
As described above, the CPU 17 checks the content of the document to be edited by using the honorific dictionary and the phrase dictionary, and the TPO acquisition process is the degree of respect that is data used at that time. , Stylistic information and phrase prohibition status information (hereinafter, the combined data is expressed as TPO data) from the relationship between the sender and recipient of the document (purpose of use of the document).
[0026]
As shown in FIG. 5, when starting the TPO acquisition process, the CPU 17 first displays the sender setting menu by controlling the display unit 12 (step S201).
[0027]
As shown in FIG. 6, the sender setting menu has four items such as “house”, “school”, “company”, and “store”, and the user can edit the sentence being edited. The item corresponding to the place where the sender is located is selected using the input unit 11.
[0028]
On the other hand, after displaying the sender setting menu (step S201), the CPU 17 shifts to a state where the signal from the input unit 11 is monitored (step S202). The display position of “◎” in the menu (FIG. 6) is changed. Further, when it is detected that the enter key has been pressed, it is recognized that the item displaying “◎” is selected. The CPU 17 responds to the operation on the mouse in the same procedure. That is, when the CPU 17 detects that the mouse is clicked, it performs the same process as when the cursor key is pressed, and when it detects that the mouse key is pressed, it performs the same process as when the enter key is pressed. .
[0029]
When it is detected that an operation for selecting any item is performed with the keyboard or the mouse (step S202; Y), the CPU 17 displays a recipient setting menu corresponding to the selected item (step S202; Y). Step S203).
[0030]
FIGS. 7 to 10 show recipient setting menus displayed when “house”, “school”, “company”, and “shop” are selected in step S202, respectively. As is clear from these figures, each recipient setting menu has items relating to the attributes of the person who is often the recipient of the document from the corresponding sender location (position) or the purpose of the document. It has been. For example, the recipient setting menu corresponding to “house” shown in FIG. 7 includes items such as “family”, “relative”, and “neighborhood” that are often recipients of documents from “house”. In addition, items such as “wedding” and “condolence”, which are often the purpose of documents from “house”, are provided.
[0031]
After displaying any recipient setting menu, the CPU 17 waits for the user to select an item on the recipient setting menu (step S204; N), and detects that the item has been selected. At this time (step S204; Y), TPO data (respect level, style information, phrase prohibition information) to be used when checking honorific usage is specified based on the selected item (step S205). In order to specify the TPO data in step S205, the program stored in the ROM 15 includes a combination of “sender location” and “recipient location” as schematically shown in FIG. A table is provided on which the degree of respect, style information, and phrase information can be searched, and the CPU 17 refers to the table to identify the TPO data.
[0032]
Returning to FIG. 4, the operation procedure of the CPU 17 after the completion of the TPO acquisition process will be described. After completion of the TPO acquisition process (step S101), the CPU 17 cuts out one sentence to be checked from the document that is the editing target at that time (the document whose contents are stored in the RAM 16) ( Step S102). Here, “cut out” means that a sentence (character string data) is copied to the work area of the RAM 16, and in step S 102, the CPU 17 first or next to the previously cut out document of the document to be edited. The character string from the character to the punctuation mark or line feed symbol is cut out as one sentence to be checked. Although details will be described later, in step S102, the CPU 17 also performs processing to indicate which sentence in the document is the sentence to be checked.
[0033]
Thereafter, the CPU 17 analyzes the contents of the extracted sentence using the Japanese analysis dictionary, and decomposes the sentence into a plurality of character strings (words) to be checked (step S103). Then, the CPU 17 searches the honorific dictionary and the forbidden dictionary using one (first) character string (hereinafter referred to as a check target character string) as a keyword as a keyword (step S104). In this step, the CPU 17 searches (determines) whether or not a word matching the character string to be checked is stored as a replacement source word for the honorific dictionary (see FIG. 2) and replaces the replacement destination word. It is also searched whether or not it is stored as a word. As a result of such a search, when the CPU 17 finds that a word matching the check target character string is stored as the replacement source word or the replacement destination word, the CPU 17 searches the TPO corresponding to the word from the honorific dictionary. Read data (respect level, style information). When the read TPO data does not match the TPO data acquired in the TPO acquisition process, the character string to be checked has a degree of respect and style information that matches the TPO data acquired in the TPO acquisition process. A replacement destination word that is associated with the same replacement source word as the replacement source word is read (hereinafter, the word read in this way is referred to as a recommended replacement character string). Thereafter, it is determined that the check target character string is a character string inappropriate for use in the editing target document, that is, the check is necessary (step S105; Y), and the process proceeds to step S106.
[0034]
If the TPO data read from the honorific dictionary matches the TPO data acquired in the TPO acquisition process, the check is not required (step S105; N), and the process proceeds to step S109. However, in step S104, as a result of the search of the prohibited phrase dictionary performed together with the search of the honorific dictionary, the same character string as the check target character string is stored as the entry word in the prohibited phrase dictionary, and the entry When the phrase prohibition status information stored in association with the word matches the phrase prohibition status information that is a constituent element of the TPO data acquired by the TPO acquisition process, the degree of respect and style read from the honorific dictionary are acquired by the TPO acquisition. Even if the data matches the TPO data acquired in the process, the CPU 17 executes the process from step S106. Further, in this case, the CPU 17 acquires an alternative word stored in the prohibited phrase dictionary (see FIG. 3) in association with the check target character string as a recommended replacement character string.
[0035]
That is, the CPU 17 matches the respect level and style information of the check target character string with the respect level and style information in the TPO data acquired by the TPO acquisition process, and the check target character string is included in the TPO data. The branch to the “N” side is executed in step S105 only when the phrase is not prohibited under the situation defined by the phrase prohibition situation information, and in other cases, the other words stored in the honorific dictionary are stored. A word or an alternative word stored in the non-prohibition dictionary is stored as a recommended replacement character string, and branching to the “Y” side is executed.
[0036]
When branching to the “Y” side, the CPU 17 controls the display unit 12 to display the replacement acceptance / rejection selection menu (step S106). In the replacement acceptance / rejection selection menu, the above-mentioned replacement recommended character string or character that is the character string to be used instead of the character string to be checked is determined to be an inappropriate character string. This is a menu on which two buttons for selecting whether or not to perform column replacement are displayed, and the CPU 17 determines the content of the replacement selection menu to be displayed based on the search result in step S104. A specific example of this replacement acceptance / rejection selection menu will be described later.
[0037]
The user looks at the contents of the replacement adoption selection menu displayed on the display unit 12 and decides whether or not to replace the character string pointed out as inappropriate with the recommended replacement character string. An operation for notifying the CPU 17 of the contents is performed on the input unit 11.
[0038]
On the other hand, the CPU 17 starts monitoring the signal from the input unit 11 after displaying the replacement acceptance / rejection selection menu, and when detecting that an operation for instructing replacement is performed (step S107; Y). The contents of the document data on the RAM 16 are changed so that the check target character string is replaced with the recommended replacement character string (step S108), and the process proceeds to step S109. Further, when it is detected that an operation for instructing not to perform the replacement is performed (step S107; N), the process proceeds to step S109 without replacing the character string.
[0039]
In step S109, the CPU 17 determines whether or not the processing related to one sentence extracted in step S102 is completed (that is, determines whether or not all the processing related to each character string decomposed in step S103 is completed), and completes. If not (step S109; N), the process returns to step S104 to start processing for the next character string that has been decomposed. On the other hand, if it has been completed (step S109; Y), it is determined whether or not the processing relating to all the sentences constituting the document to be edited has been completed. If it has not been completed (step S110; In N), the process returns to step S102, and the next sentence is cut out. Then, such processing is repeated, and when the processing regarding all sentences is completed (step S110; Y), the CPU 17 ends the honorific usage check processing.
[0040]
Hereinafter, the operation of the document editing apparatus 10 (CPU 17) will be described more specifically by taking as an example the case where the document shown in FIG.
In this case, since the target sentence is a document in the company, the user selects “Company” in the sender setting menu (see FIG. 6) displayed after starting the honorific usage check process. To do. As a result, in the displayed recipient setting menu (see FIG. 9), “sender's colleague” is selected.
[0041]
When such selection is made, the CPU 17 refers to the table shown in FIG. 11 and uses the TPO data including the degree of respect “1”, the style information “written word”, and the phrase information “general”. Recognize that a document check should be performed.
[0042]
Thereafter, the processing from step S202 of FIG. 4 is started, and the sentence “Please watch the game on February 19th” is specified as a check target. Then, as shown in FIG. 13, the document is underlined and a message indicating that the check of the sentence is started is displayed.
[0043]
Next, the CPU 17 starts checking each character string obtained by disassembling the document, and when a character string whose respect or the like does not match the TPO data set in the TPO setting process becomes a check target character string. The replacement acceptance / rejection selection menu is displayed. In the text underlined in FIG. 13, the degree of respect for “Must” is different from the degree of respect in the TPO data. Therefore, as shown in FIG. A replacement acceptance / rejection selection menu 20 indicating that correction is to be performed is displayed in the “Upper meeting”.
[0044]
The user inputs an instruction as to whether or not to replace “Need” with “Upon all troubles” by selecting one of the buttons displayed as “Replace” or “As is”.
[0045]
For example, when the user selects “as it is”, the CPU 17 starts checking the next character string “please watch the game” without performing “replacement”. This character string is an inappropriate character string for the usage of "Please". As shown in Fig. 2, the word with respect "1" corresponding to "Please watch the game" is "Please watch the game" Is. Therefore, as shown in FIG. 15, the CPU 17 displays a replacement acceptance / rejection selection menu 20 that recommends that “please watch the game” is corrected to “please watch the game”.
[0046]
Also, after “company” is selected in the sender setting menu and “business partner” is selected in the recipient setting menu, the degree of respect stored as TPO data is “3”. As shown in FIG. 2, the word with respect “3” corresponding to “please watch” is “please watch the game”. For this reason, when “business partner” is selected in the recipient setting menu, the CPU 17 selects “please watch the game” as shown in FIG. 16 with respect to the text shown in FIG. The replacement acceptance / rejection selection menu 20 that is recommended to be corrected to “Watch the game please” is displayed.
[0047]
Further, as is clear from the above description, even when excessive honorific expression is used in the document, the CPU 17 adopts replacement to make the expression form of the portion according to the TPO data. Displays a selection menu. For example, when the degree of respect stored as TPO data is “3”, a document containing a character string such as “Thank you for watching” (respect degree 4) is given as an edit target. As shown in FIG. 17, the CPU 17 displays a replacement acceptance / rejection selection menu 20 in which “please watch the game” should be corrected to “watch the game”.
[0048]
As described above, when the document editing apparatus according to the first embodiment is used, the user simply selects an item related to the document to be created from the two menus, and the expression form used in the document is Depending on the purpose of the document.
[0049]
Second Embodiment
The document editing apparatus of the second embodiment is an apparatus in which the processing procedure in steps S102 and S103 in the honorific usage method check process shown in FIG. 4 is changed, and the overall operation procedure is the document editing apparatus of the first embodiment. The operation procedure is the same. For this reason, only the parts different from the document editing apparatus of the first embodiment will be described here.
[0050]
In the document editing apparatus according to the second embodiment, the honorific dictionary shown in FIG. 18 and the utilization form correspondence table shown in FIG. 19 are held instead of the honorific dictionary shown in FIG.
As shown in FIG. 18, the honorific dictionary provided in the document editing apparatus according to the second embodiment includes the replacement source word, the replacement destination word, the degree of respect, the style information, the part of speech of the replacement source word, and the utilization form of the previous word. And the part-of-speech of the replacement word and the utilization form of the previous word are stored in the dictionary. In addition, the information regarding the utilization form of the previous word (consecutive 1, continuous 3, etc.) is stored only for the auxiliary verb used by being connected to the verb.
[0051]
As shown in FIG. 19, the utilization form correspondence table is information indicating how to change the verbs when various verbs are used in various utilization forms (previously 1, continuous 1, etc.). Is remembered.
[0052]
The CPU in the document editing apparatus according to the second embodiment does not support TPO data from the document in the steps corresponding to steps S102 and S103 in FIG. A character string is extracted, and a recommended replacement character string determination process that is a process of determining a character string to be used instead of the character string is executed.
[0053]
Hereinafter, the operation procedure of the CPU during the recommended replacement character string determination process will be described with reference to FIG.
After cutting out one sentence to be checked, the CPU uses the analysis dictionary to divide the sentence into words, and determines the part of speech and the utilization form of each word (step S301; FIG. 4). Corresponding to step S102). Then, based on the determination result in step S301, the word or phrase to be checked is specified (step S302), and when the check target is a word (step S303; N), that is, the degree of respect is determined independently. If the word should be included in the sentence, use the honorific dictionary and prohibition dictionary to determine whether the word's esteem corresponds to TPO data, and correspond to TPO data If not, the replacement recommended character string is specified (step S304). Then, the CPU 17 ends the recommended replacement character string determination process and proceeds to a step corresponding to step S105 in FIG. Thereafter, the processing corresponding to steps S106 to S108 is executed (or not executed), and it is determined whether or not the processing relating to the cut out sentence is completed. If not, the process returns to step S302, and the rest Continue processing for the word.
[0054]
On the other hand, when the check target is a phrase composed of a plurality of words (step S303; Y), that is, a word string whose respect should be determined for each phrase, such as a combination of a verb and an auxiliary verb, is included in the sentence. If so, the CPU 17 accumulates the degree of respect for the words constituting the phrase and sets the accumulated result as the degree of respect for the phrase (step S305). Then, the degree of respect of the phrase and the degree of respect in the TPO data are compared (step S306), and if the degree of respect of the phrase is lower than the degree of respect in the TPO data (step S306). ; <TPO) is searched for a more respected auxiliary verb, and when such an auxiliary verb exists (step S307; Y), the auxiliary verb part of the clause being checked is replaced with the searched auxiliary verb. Thus, a recommended replacement character string is created (step S308). At this time, the CPU determines whether it is necessary to change the utilization form of the previous word by referring to the contents of the utilization form correspondence table, and if necessary, corrects the previous word. Is also performed. Also, in principle, search for auxiliary verbs with a high degree of respect by "1".
[0055]
Thereafter, the CPU determines whether or not the degree of respect of the recommended replacement character string created by the replacement matches the degree of respect that is a constituent element of the TPO data (step S309). If the two match (step S309; Y), the illustrated process ends, and the process proceeds to a step corresponding to step S105 in FIG.
[0056]
On the other hand, if the two do not match (step S309; N), the CPU proceeds to step S310. Also, when there is no auxiliary verb with higher respect (step S307; N), the CPU proceeds to step S310. In step S310, the CPU performs a process of searching for a verb, sa variable noun, and adjective with higher respect from the honorific dictionary, and when such a verb or the like exists (step S310; Y). The replacement recommended character string is created by replacing the corresponding part of the clause to be checked (or the replacement recommended character string created in step S308) with the searched verb or the like (step S311), and the process ends. To do. In step S310, as in step S308, in principle, a verb or the like with a high degree of respect is searched for by “1”. In the actual apparatus, after the completion of step S311, the degree of respect is compared with the TPO. If the two do not match, the process returns to step S307, but the flowchart is complicated. Therefore, the display of this part is omitted in FIG.
[0057]
On the other hand, when the degree of respect of the obtained phrase is higher than the degree of respect in the TPO data (step S306;> TPO), the CPU searches for an auxiliary verb having a lower degree of respect, and such an auxiliary verb exists. In (Step S312; Y), a replacement recommended character string is created by replacing the auxiliary verb part of the phrase being checked with the searched auxiliary verb (Step S313), and the degree of respect for the created replacement recommended character string And the degree of respect in the TPO data are compared (step S314).
[0058]
If the two match (step S309; Y), the CPU ends the illustrated process. If the two do not match (step S309; N), the process proceeds to step S315. Also, when there is no auxiliary verb with higher respect (step S312; N), the CPU proceeds to step S315.
[0059]
In step S315, the CPU searches the honorific dictionary for verbs, sa variable nouns, and adjectives with lower respect, and if such verbs exist (step S315; Y), the check is performed. A replacement recommended character string is created by replacing the corresponding portion of the target clause (or replacement recommended character string) with the searched verb or the like (step S316), and the process ends. Although illustration is omitted, in the actual apparatus, after completion of step S316, the degree of respect is compared with the TPO, and if both do not match, the process returns to step S312.
[0060]
In addition, when the respect level of the obtained clause matches the respect level in the TPO data (step S306; = TPO), the CPU performs the recommended replacement character string determination process without creating the replacement recommended character string. After the processing is completed and the processing corresponding to steps S105 and S109 in FIG. 2 is executed, the processing from step S302 is started again.
That is, when the document editing apparatus of the second embodiment is used to check the document shown in FIG. 12, for example, the part “please watch the game” includes four words as shown in FIG. The cumulative value of the degree of respect for each word (in this case, “0”) is regarded as the degree of respect for the character string. Then, when the degree of respect in the TPO data was “1”, the auxiliary verb “te please” was replaced with the word “please” that is the replacement word for the degree of respect “1” for the auxiliary verb. The character string becomes the recommended replacement character string and is displayed in the replacement acceptance / rejection selection menu. Also, if the degree of respect in the TPO data is “2”, the auxiliary verb “please” is replaced with “please” that is the replacement word for the degree of respect “1” for the auxiliary verb. At the same time, the observing game, which is a sao noun, is replaced with “watching game”, which is the replacement word of the respect level “1”, and the string “please watch the game” is the recommended replacement string. Is displayed in the replacement acceptance / rejection selection menu.
[0061]
According to this document editing apparatus, although the structure is complicated as compared with the document editing apparatus according to the first embodiment, conversion of honorifics used in the document can be performed more accurately.
[0062]
<Modification>
The document editing apparatus according to the first and second embodiments is configured such that the TPO setting process is executed first when the start of the honorific usage check process is instructed. It goes without saying that the apparatus may be configured such that the honorific usage usage check process, except for, is performed separately. In addition, the document editing apparatus according to each embodiment is an apparatus that targets an existing document, but the apparatus is configured such that the honorific usage method check process that excludes the TPO setting process is executed during Kana-Kanji conversion. You can also. Further, the document editing apparatus may be configured such that the replacement of the character string is automatically performed without displaying the replacement acceptance / rejection selection menu.
[0063]
The document editing device of each embodiment is configured as a dedicated device for document creation / editing (so-called word processor), as is clear from the fact that programs and the like are stored in the ROM. The method of realizing the device is not limited to this.
[0064]
For example, as schematically shown in FIG. 22, a program stored in the ROM of each embodiment and a document editing program 31 corresponding to a dictionary are transferred via a storage medium 32 such as a CD or FD and its drive 33. Thus, an apparatus having the same function as that of the document editing apparatus according to each embodiment may be realized by being installed in the computer 34. Of course, only the program part may be installed in the computer 33 and the operation may be performed with the storage medium 32 storing the dictionary in the drive 33. Of course, the program may be read directly from the storage medium 32.
[0065]
【The invention's effect】
As described above in detail, according to the document editing apparatus of the present invention, among the words constituting the document to be edited, the words that do not take an expression according to the purpose of use correspond to the purpose of use. Since the word is replaced with the expression form, even a person who does not have knowledge about how to use the honorific can easily create a document in which the honorific is used in an accurate form according to the purpose of use.
[Brief description of the drawings]
FIG. 1 is a block diagram showing a configuration of a document editing apparatus according to a first embodiment of the present invention.
FIG. 2 is an explanatory diagram showing an overview of a honorific dictionary provided in the document editing apparatus according to the first embodiment.
FIG. 3 is an explanatory diagram showing an outline of a phrase prohibition dictionary provided in the document editing apparatus according to the first embodiment.
FIG. 4 is a flowchart of honorific usage checking processing executed by the document editing apparatus according to the first embodiment.
FIG. 5 is a flowchart of TPO setting processing that is first executed during honorific usage checking processing;
FIG. 6 is an explanatory diagram of a sender setting menu displayed during TPO setting processing.
FIG. 7 is an explanatory diagram of a recipient setting menu displayed during TPO setting processing.
FIG. 8 is an explanatory diagram of a recipient setting menu displayed during TPO setting processing.
FIG. 9 is an explanatory diagram of a recipient setting menu displayed during TPO setting processing.
FIG. 10 is an explanatory diagram of a recipient setting menu displayed during TPO setting processing.
FIG. 11 is an explanatory diagram of a table referred to by the CPU when specifying TPO data.
FIG. 12 is a diagram showing display contents of a display unit for explaining honorific usage usage check processing by the document editing apparatus according to the first embodiment;
13 is a diagram showing display contents on the display unit when honorific usage checking processing is started for the document shown in FIG. 12. FIG.
14 is a diagram showing display contents displayed on the display unit after the contents shown in FIG. 13 are displayed. FIG.
15 is a diagram showing an example of display contents displayed on the display unit after the contents shown in FIG. 14 are displayed.
FIG. 16 is a diagram showing an example of display content displayed on the display unit after the content shown in FIG. 14 is displayed when different TPO data is set.
FIG. 17 is a diagram showing an example of display contents displayed on the display unit after the contents shown in FIG. 14 are displayed when different TPO data is set.
FIG. 18 is an explanatory diagram showing an outline of a honorific dictionary provided in the document editing apparatus according to the second embodiment.
FIG. 19 is an explanatory diagram showing an outline of a utilization type correspondence table provided in the document editing apparatus according to the second embodiment.
FIG. 20 is a flowchart of recommended replacement character string determination processing executed by the document editing apparatus according to the second embodiment.
FIG. 21 is a diagram illustrating an example of disassembling sentences into words in the replacement recommended character string determination process.
FIG. 22 is an explanatory diagram showing another method of realizing the document editing apparatus.
[Explanation of symbols]
10 Document editing device
11 Input section
12 Display section
13 Memory unit
14 Interface circuit
15 ROM
16 RAM
17 CPU
20 Replacement acceptance / rejection selection menu
31 Document editing program
32 storage media
33 drives
34 Computer

Claims (6)

複数の単語と、各単語に割り当てられた、単語をその単語が使用される相手に対する尊敬の程度を示す尊敬度、話し言葉で使用される単語であるか書き言葉で使用される単語であるか、話し言葉と書き言葉の両方で使用される単語であるかを示す文体情報で分類するための使用環境データとを、同じ意味を有する単語が識別できる形態で記憶する単語記憶手段と、
表現形態のチェックを行うべき文書である編集対象文章の差出人と受取人との関係から使用目的を直接的に表す情報である使用目的情報と、前記単語記憶手段内の単語に割り当てられている使用環境データとの対応関係を記憶する対応関係記憶手段と、
前記編集対象文書に関する使用目的情報を入力する入力手段と
前記対応関係記憶手段に記憶された対応関係に基づき、前記入力手段によって入力された使用目的情報に対応する使用環境データを特定する使用環境データ特定手段と、
前記編集対象文書に含まれる単語を順次、処理対象として特定する単語特定手段と、
この単語特定手段で特定された単語に関して前記単語記憶手段に記憶されている使用環境データが、前記使用環境データ特定手段によって特定された使用環境データと一致していなかった場合に、その単語と同じ意味を有し、かつ、前記使用環境データ特定手段によって特定された使用環境データと一致する使用環境データが割り当てられて前記単語記憶手段に記憶されている単語を用いて、前記編集対象文書内の前記単語特定手段で特定された単語を置換する単語置換手段とを備えることを特徴とする文書編集装置。
Multiple words and assigned to each word, the degree of respect that indicates the degree of respect for the person with whom the word is used, whether it is a word used in spoken or written language, or a spoken word And storage environment data for classifying by stylistic information indicating whether the word is used in both written and written words in a form in which words having the same meaning can be identified,
Use purpose information that is information that directly represents the purpose of use from the relationship between the sender and recipient of the text to be edited, which is a document whose expression should be checked, and the use that is assigned to the word in the word storage means Correspondence storage means for storing correspondence with environmental data;
Using environmental data based on said stored relationship to the input means and the correspondence relationship storage means for inputting intended use information about the edited document, specifying the use environment data corresponding to the intended use information input by said input means Specific means,
Word specifying means for sequentially specifying words included in the editing target document as processing targets;
When the use environment data stored in the word storage unit for the word specified by the word specifying unit does not match the use environment data specified by the use environment data specifying unit, the same as the word Using words that have meaning and use environment data that matches the use environment data specified by the use environment data specifying means and are stored in the word storage means, A document editing apparatus comprising: a word replacing unit that replaces the word specified by the word specifying unit.
前記対応関係記憶手段は、前記編集対象文書の差出人の所在に関する第1情報と前記編集対象文書の受取人あるいは用途に関する第2情報とからなる使用目的情報と前記使用環境データとの対応関係を記憶し、
前記入力手段は、前記第1情報と前記第2情報とを別途入力することを特徴とする請求項1記載の文書編集装置。
The correspondence storage means stores a correspondence between use purpose information and first use environment information including first information relating to a location of a sender of the edit target document and second information relating to a recipient or use of the edit target document. And
The document editing apparatus according to claim 1, wherein the input unit separately inputs the first information and the second information.
前記単語記憶手段は、同じ意味を有する話し言葉形態の単語と書き言葉形態の単語を記憶することを特徴とする請求項1または請求項2記載の文書編集装置。  3. The document editing apparatus according to claim 1, wherein the word storage means stores a spoken word form word and a written word form word having the same meaning. 前記単語置換手段は、前記単語特定手段で特定された単語に関して前記単語記憶手段に記憶されている使用環境データが、前記使用環境データ特定手段によって特定された使用環境データと一致していなかった場合に、単語の置換を行うか否かを問うメニューを表示し、単語の置換を行うことが指示されたときに、その単語と同じ意味を有し、かつ、前記使用環境データ特定手段によって特定された使用環境データと一致する使用
環境データが割り当てられて前記単語記憶手段に記憶されている単語を用いて、前記編集対象文書内の前記単語特定手段で特定された単語を置換することを特徴とする請求項1ないし請求項3のいずれかに記載の文書編集装置。
The word replacement means, when the use environment data stored in the word storage means for the word specified by the word specification means does not match the use environment data specified by the use environment data specification means Display a menu asking whether or not to replace the word, and when instructed to replace the word, it has the same meaning as the word and is specified by the use environment data specifying means. A word specified by the word specifying means in the document to be edited is replaced with a word stored in the word storage means to which usage environment data matching the use environment data is assigned. The document editing apparatus according to any one of claims 1 to 3.
前記単語記憶手段は、前記使用環境データに対応づけた形で、文書中での使用が好ましくない単語である禁句をも記憶し、
前記単語置換手段は、前記単語特定手段で特定された単語が、前記単語記憶手段内に、前記使用環境データ特定手段によって特定された使用環境データに対応する禁句として記憶されていた場合には、その旨を表示することを特徴とする請求項1ないし請求項4のいずれかに記載の文書編集装置。
The word storage means also stores a forbidden phrase that is a word that is not preferable for use in a document in a form associated with the use environment data.
In the case where the word specified by the word specifying unit is stored in the word storage unit as a forbidden phrase corresponding to the use environment data specified by the use environment data specifying unit, The document editing apparatus according to any one of claims 1 to 4, wherein a message to that effect is displayed.
コンピュータを、
複数の単語と、各単語に割り当てられた、単語をその単語が使用される相手に対する尊敬の程度を示す尊敬度、話し言葉で使用される単
語であるか書き言葉で使用される単語であるか、話し言葉と書き言葉の両方で使用される単語であるかを示す文体情報で分類するための使用環境データとを、同じ意味を有する単語が識別できる形態で記憶する単語記憶手段と、
表現形態のチェックを行うべき文書である編集対象文章の差出人と受取人との関係から使用目的を直接的に表す情報である使用目的情報と、前記単語記憶手段内の単語に割り当てられている使用環境データとの対応関係を記憶する対応関係記憶手段と、
前記編集対象文書に関する使用目的情報を入力する入力手段と、
前記対応関係記憶手段に記憶された対応関係に基づき、
前記入力手段によって入力された使用目的情報に対応する使用環境データを特定する使用環境データ特定手段と、
前記編集対象文書に含まれる単語を順次、処理対象として特定する単語特定手段と、
この単語特定手段で特定された単語に関して前記単語記憶手段に記憶されている使用環境データが、前記使用環境データ特定手段によって特定された使用環境データと一致していなかった場合に、その単語と同じ意味を有し、かつ、前記使用環境データ特定手段によって特定された使用環境データと一致する使用環境データが割り当てられて前記単語記憶手段に記憶されている単語を用いて、前記編集対象文書内の前記単語特定手段で特定された単語を置換する単語置換手段として機能させるためのプログラムが記憶された記憶媒体。
Computer
Multiple words, a degree assigned to each word, a degree of respect that indicates the degree of respect for the person with whom the word is used, and a simple word used in spoken language
Words with the same meaning can identify usage environment data for classification by stylistic information indicating whether it is a word, a word used in written language, or a word used in both spoken and written language Word storage means for storing in form;
Use purpose information that is information that directly represents the purpose of use from the relationship between the sender and recipient of the text to be edited, which is a document whose expression should be checked, and the use that is assigned to the word in the word storage means Correspondence storage means for storing correspondence with environmental data;
Input means for inputting the intended use information relating to the edited document,
Based on the correspondence stored in the correspondence storage means,
Use environment data specifying means for specifying use environment data corresponding to the use purpose information input by the input means;
Word specifying means for sequentially specifying words included in the editing target document as processing targets;
When the use environment data stored in the word storage unit for the word specified by the word specifying unit does not match the use environment data specified by the use environment data specifying unit, the same as the word Using words that have meaning and use environment data that matches the use environment data specified by the use environment data specifying means and are stored in the word storage means, A storage medium storing a program for functioning as word replacement means for replacing a word specified by the word specifying means.
JP27883597A 1996-10-15 1997-10-13 Document editing apparatus and recording medium Expired - Fee Related JP3760428B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP27883597A JP3760428B2 (en) 1996-10-15 1997-10-13 Document editing apparatus and recording medium

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP27268196 1996-10-15
JP8-272681 1996-10-15
JP27883597A JP3760428B2 (en) 1996-10-15 1997-10-13 Document editing apparatus and recording medium

Publications (2)

Publication Number Publication Date
JPH10177574A JPH10177574A (en) 1998-06-30
JP3760428B2 true JP3760428B2 (en) 2006-03-29

Family

ID=26550329

Family Applications (1)

Application Number Title Priority Date Filing Date
JP27883597A Expired - Fee Related JP3760428B2 (en) 1996-10-15 1997-10-13 Document editing apparatus and recording medium

Country Status (1)

Country Link
JP (1) JP3760428B2 (en)

Also Published As

Publication number Publication date
JPH10177574A (en) 1998-06-30

Similar Documents

Publication Publication Date Title
JP5791861B2 (en) Information processing apparatus and information processing method
US7788590B2 (en) Lightweight reference user interface
JP4217349B2 (en) Document browsing support system, document browsing support method, and storage medium
JP5501581B2 (en) Information processing apparatus and information processing method
JP2005190338A (en) Device and method for information extraction
US7996768B2 (en) Operations on document components filtered via text attributes
US6976214B1 (en) Method, system, and program for enhancing text composition in a text editor program
US20040111409A1 (en) Information displaying apparatus with word searching function and recording medium
JP3760428B2 (en) Document editing apparatus and recording medium
JP4341514B2 (en) Dictionary information display control device and dictionary information display control program
JP2009175941A (en) Electronic dictionary device
JP5511161B2 (en) Information processing apparatus and information processing method
JP4467915B2 (en) Electronic dictionary, electronic dictionary control method, electronic dictionary control program, and recording medium recording the same
JPH07134720A (en) Method and device for presenting relative information in sentence preparing system
JPH10240739A (en) Device for retrieving information and method therefor
JP2010033156A (en) Information processor and information processing method
JP3794369B2 (en) Information display device and information display processing program
JP3313483B2 (en) Keyword creation device
JPH0981581A (en) Data base generation method
JP3313490B2 (en) Keyword creation device
JPH08185401A (en) Document retrieving device
JPH10312387A (en) Processor and method for information processing and recording medium where information processing program is recorded
JPH05181853A (en) Document processing system
JP2001075962A (en) Electronic dictionary and recording medium recording electronic dictionary program
JP3313482B2 (en) Keyword creation device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20040212

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20050603

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050614

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050805

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20051206

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20051228

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100120

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110120

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110120

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120120

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130120

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130120

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140120

Year of fee payment: 8

LAPS Cancellation because of no payment of annual fees