array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'ja', ), 'this' => array ( 0 => 'function.pspell-config-runtogether.php', 1 => 'pspell_config_runtogether', ), 'up' => array ( 0 => 'ref.pspell.php', 1 => 'Pspell 関数', ), 'prev' => array ( 0 => 'function.pspell-config-repl.php', 1 => 'pspell_config_repl', ), 'next' => array ( 0 => 'function.pspell-config-save-repl.php', 1 => 'pspell_config_save_repl', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'ja', 'path' => 'reference/pspell/functions/pspell-config-runtogether.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 4 >= 4.0.2, PHP 5, PHP 7, PHP 8)
pspell_config_runtogether — 複合語を有効な単語の組み合わせとして考慮する
この関数は、複合語を正しい複合語として処理するかどうかを定義します。 つまり、"thecat" には、二つの単語の間に空白はありませんが、 正しい複合語となります。この設定の変更は、 pspell_check() による戻り値にのみ影響を与えます。 pspell_suggest() は、この場合でも修正候補を返します。
pspell_config_runtogether() は、 pspell_new_config() をコールする前に設定を行うために使用する必要があります。
バージョン | 説明 |
---|---|
8.1.0 |
引数 config
は、PSpell\Config
クラスのインスタンスを期待するようになりました。
これより前のバージョンでは、リソース を期待していました。
|
例1 pspell_config_runtogether()
<?php
$pspell_config = pspell_config_create("en");
pspell_config_runtogether($pspell_config, true);
$pspell = pspell_new_config($pspell_config);
pspell_check($pspell, "thecat");
?>