Pspell pspell_config_runtogether

(PHP 4 >= 4.0.2, PHP 5, PHP 7, PHP 8)

pspell_config_runtogether — 함께 사용하는 단어를 유효한 합성어로 간주


설명

pspell_config_runtogether(PSpell\Config $config, bool $allow): bool

이 함수는 함께 사용하는 단어가 합법 합성어로 처리되는지 여부를 결정합니다. 즉, "thecat"은 합법 합성어가 되지만 두 단어 사이에는 공백이 있어야 합니다. 이 설정을 변경하면 pspell_check()에 의해 반환된 결과에만 영향을 미칩니다. pspell_suggest()는 여전히 제안을 반환합니다.

pspell_config_runtogether()pspell_new_config()를 호출하기 전에 구성에서 사용해야 합니다.


매개변수

config
PSpell\Config 인스턴스.
allow
함께 사용하는 단어를 합법 합성어로 처리해야 하는 경우 true이고, 그렇지 않으면 false입니다.

반환 값

성공하면 true를, 실패하면 false를 반환합니다.


변경 로그

버전 설명
8.1.0 config 매개변수는 이제 PSpell\Config 인스턴스를 예상합니다. 이전에는 리소스가 필요했습니다.

Examples

예제 #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");
?>