Delicious Bookmark this on Delicious Share on Facebook SlashdotSlashdot It! Digg! Digg



PHP : Function Reference : enchant Functions : enchant_dict_quick_check

enchant_dict_quick_check

Check the word is correctly spelled and provide suggestions (PECL enchant:0.2.0-1.0.1)
bool enchant_dict_quick_check ( resource dict, string word [, array &suggestions] )

Example 587. A enchant_dict_quick_check() example

<?php
$tag
= 'en_US';
$r = enchant_broker_init();

if (
enchant_broker_dict_exists($r,$tag)) {
   
$d = enchant_broker_request_dict($r, $tag);
   
enchant_dict_quick_check($d, 'soong', $suggs);
   
print_r($suggs);
}
?>

The above example will output something similar to:

Array
(
   [0] => song
   [1] => snog
   [2] => soon
   [3] => Sang
   [4] => Sung
   [5] => sang
   [6] => sung
   [7] => sponge
   [8] => spongy
   [9] => snag
   [10] => snug
   [11] => sonic
   [12] => sing
   [13] => songs
   [14] => Son
   [15] => Sonja
   [16] => Synge
   [17] => son
   [18] => Sejong
   [19] => sarong
   [20] => sooner
   [21] => Sony
   [22] => sown
   [23] => scone
   [24] => song's
)

Change Language


Follow Navioo On Twitter
enchant_broker_describe
enchant_broker_dict_exists
enchant_broker_free_dict
enchant_broker_free
enchant_broker_get_error
enchant_broker_init
enchant_broker_list_dicts
enchant_broker_request_dict
enchant_broker_request_pwl_dict
enchant_broker_set_ordering
enchant_dict_add_to_personal
enchant_dict_add_to_session
enchant_dict_check
enchant_dict_describe
enchant_dict_get_error
enchant_dict_is_in_session
enchant_dict_quick_check
enchant_dict_store_replacement
enchant_dict_suggest
eXTReMe Tracker