Skip to content

Commit

Permalink
Merge pull request #2809 from noborus/fuzzystrmatch160
Browse files Browse the repository at this point in the history
fuzzystrmatch.sgmlの16.0対応です
  • Loading branch information
KenichiroTanaka authored Jan 24, 2024
2 parents 74e1f11 + a253aa7 commit 8757c42
Showing 1 changed file with 28 additions and 22 deletions.
50 changes: 28 additions & 22 deletions doc/src/sgml/fuzzystrmatch.sgml
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
<!-- doc/src/sgml/fuzzystrmatch.sgml -->

<sect1 id="fuzzystrmatch" xreflabel="fuzzystrmatch">
<!--
<title>fuzzystrmatch &mdash; determine string similarities and distance</title>
-->
<title>fuzzystrmatch &mdash; 文字列の類似度と距離を決定する</title>

<indexterm zone="fuzzystrmatch">
<primary>fuzzystrmatch</primary>
Expand All @@ -21,10 +24,11 @@
At present, the <function>soundex</function>, <function>metaphone</function>,
<function>dmetaphone</function>, and <function>dmetaphone_alt</function> functions do
not work well with multibyte encodings (such as UTF-8).
-->
現時点で、<function>soundex</function>、<function>metaphone</function>、<function>dmetaphone</function>、<function>dmetaphone_alt</function>は(UTF-8のような)マルチバイト符号化方式では充分に動作しません。
Use <function>daitch_mokotoff</function>
or <function>levenshtein</function> with such data.
-->
現時点で、<function>soundex</function>、<function>metaphone</function>、<function>dmetaphone</function>、<function>dmetaphone_alt</function>は(UTF-8のような)マルチバイト符号化方式では充分に動作しません。
このようなデータには<function>daitch_mokotoff</function>または<function>levenshtein</function>を使用してください。
</para>
</caution>

Expand Down Expand Up @@ -128,14 +132,17 @@ SELECT * FROM s WHERE difference(s.nm, 'john') &gt; 2;
non-English names than the original system.
Major improvements over the original system include:
-->
《機械翻訳》オリジナルSoundexシステムと同様に、Daitch-Mokotoff Soundexは、似たような名前を同じコードに変換することで一致させます
ただし、Daitch-Mokotoff Soundexは、英語以外の名前に対しては、オリジナルシステムよりもはるかに便利です
メジャーは、オリジナルシステムincludeよりも改善されています:
従来Soundexシステムと同様に、Daitch-Mokotoff Soundexは、似たような名称を同じコードに変換することで一致させます
ただし、Daitch-Mokotoff Soundexは、非英語圏の名称に対しては、従来システムよりもはるかに便利です
従来システムに対する主な改善点は以下のとおりです。

<itemizedlist spacing="compact" mark="bullet">
<listitem>
<para>
<!--
The code is based on the first six meaningful letters rather than four.
-->
コードは4文字ではなく意味のある最初の6文字に基づいています。
</para>
</listitem>
<listitem>
Expand All @@ -144,7 +151,7 @@ SELECT * FROM s WHERE difference(s.nm, 'john') &gt; 2;
A letter or combination of letters maps into ten possible codes rather
than seven.
-->
《機械翻訳》文字または文字の組み合わせは、7つではなく10の可能なコードにマッピングされます
文字または文字の組み合わせは、7つではなく10の可能なコードにマップされます
</para>
</listitem>
<listitem>
Expand All @@ -153,7 +160,7 @@ SELECT * FROM s WHERE difference(s.nm, 'john') &gt; 2;
Where two consecutive letters have a single sound, they are coded as a
single number.
-->
《機械翻訳》2つの連続した文字が1つの音を持つ場合、それらは1つの数字としてコード化されます。
2つの連続した文字が1つの音を持つ場合、それらは1つの数字としてコード化されます。
</para>
</listitem>
<listitem>
Expand All @@ -162,7 +169,7 @@ SELECT * FROM s WHERE difference(s.nm, 'john') &gt; 2;
When a letter or combination of letters may have different sounds,
multiple codes are emitted to cover all possibilities.
-->
《機械翻訳》文字または文字の組み合わせが異なる音を持つ場合、マルチプルコードはすべての可能性をカバーに発信されます
文字または文字の組み合わせには異なる音がある場合、すべての可能性をカバーするために複数のコードが出力されます
</para>
</listitem>
</itemizedlist>
Expand All @@ -176,7 +183,7 @@ SELECT * FROM s WHERE difference(s.nm, 'john') &gt; 2;
<!--
This function generates the Daitch-Mokotoff soundex codes for its input:
-->
《機械翻訳》この関数は、その入力に対してDaitch-Mokotoff soundexコードを生成する
この関数は入力に対するDaitch-Mokotoff soundexコードを生成します
</para>

<synopsis>
Expand All @@ -188,23 +195,22 @@ daitch_mokotoff(<parameter>source</parameter> text) returns text[]
The result may contain one or more codes depending on how many plausible
pronunciations there are, so it is represented as an array.
-->
《機械翻訳》結果には、もっともらしい発音の数に応じて1つ以上のコードが含まれる場合があるため、配列として表される
結果は、考えられる発音がいくつあるかによって1つ以上のコードを含む可能性があるため、配列として表現されます
</para>

<para>
<!--
Since a Daitch-Mokotoff soundex code consists of only 6 digits,
<parameter>source</parameter> should be preferably a single word or name.
-->
《機械翻訳》Daitch-Mokotoff soundexコードは6桁しかないので、<parameter>ソース</parameter>は単一のワードまたは名前であることが望ましい
Daitch-Mokotoff soundexコードは6桁の数字のみで構成されるため、<parameter>source</parameter>は単語または名前であることが好ましいです
</para>

<para>
<!--
Here are some examples:
-->
《マッチ度[60.869565]》以下に使用例をいくつか示します。
《機械翻訳》以下に例を示します:
以下に例をいくつか示します。
</para>

<programlisting>
Expand Down Expand Up @@ -236,10 +242,10 @@ SELECT daitch_mokotoff('Schwartzenegger');
can be considered a match. A GIN index may
be used for efficiency, see <xref linkend="gin"/> and this example:
-->
《機械翻訳》単一名のマッチングの場合、戻されたテキスト配列は、<literal>&amp;&amp;</literal>演算子を使用して直接照合できます
単一の名前の一致には、返されたテキスト配列を直接<literal>&amp;&amp;</literal>演算子を使用して一致させられます
重複はマッチとみなされます。
GINインデックスは、効率性のために使用できます
<xref linkend="gin"/>およびこの例を参照してください:
効率のためにGINインデックスを使用できます
<xref linkend="gin"/>および以下の例を参照してください。
</para>

<programlisting>
Expand All @@ -264,8 +270,8 @@ SELECT * FROM s WHERE daitch_mokotoff(nm) &amp;&amp; daitch_mokotoff('Jens');
Search features can be used. See <xref linkend="textsearch"/> and this
example:
-->
《機械翻訳》任意のオーダーの任意の数の名前の索引付けおよびマッチングには、全文テキスト検索機能を使用できます
<xref linkend="textsearch"/>および次の例を参照してください:
任意の順序で任意の数の名前のインデックス付けと一致には、全文検索機能を使用できます
<xref linkend="textsearch"/>および以下の例を参照してください。
</para>

<programlisting>
Expand Down Expand Up @@ -306,8 +312,8 @@ SELECT * FROM s WHERE soundex_tsvector(nm) @@ soundex_tsquery('Jameson John');
an expression. A stored generated column can be used for this; see
<xref linkend="ddl-generated-columns"/>.
-->
《機械翻訳》インデックスの再チェック中にsoundexコードの再計算を避けたい場合は、別のインデックスのカラムを代わりで使用し、式のインデックスを使用できます
これには、保存された生成済みのカラムを使用できます
インデックス再チェック中にsoundexコードの再計算を避ける場合は、式のインデックスの代わりに別の列のインデックスを使用できます
これには、格納された生成列を使用できます
<xref linkend="ddl-generated-columns"/>を参照してください。
</para>
</sect2>
Expand All @@ -316,13 +322,13 @@ SELECT * FROM s WHERE soundex_tsvector(nm) @@ soundex_tsquery('Jameson John');
<!--
<title>Levenshtein</title>
-->
<title>レーベンシュタイン</title>
<title>レーベンシュタイン(Levenshtein)</title>

<para>
<!--
This function calculates the Levenshtein distance between two strings:
-->
この関数は2つの文字列間のレーベンシュタイン距離を計算します
この関数は2つの文字列間のレーベンシュタイン距離(Levenshtein distance)を計算します
</para>

<indexterm>
Expand Down

0 comments on commit 8757c42

Please sign in to comment.