
{
$snippets = array();
$keywords = split(" ", $query);
if(count($keywords) <= 1){
return NULL; //Couldn't split
}
foreach($keywords as $keyword){
$node->children_html.= l($keyword, "search/kclient/$keyword link:$node->iso|").", ";
}
//Now do it 2 by 2 and skip unneeded characters
$stop_words = array('.', ',', '?');
for($i = 0; $i < count($keywords); $i = $i+2){
if(!in_array($keywords[$i], $stop_words)){
$term = $keywords[$i].' '.$keywords[$i+1];
$node->children_html.= l($term, "search/kclient/$keyword link:$node->iso|").", ";
}
}
$node->children_html = "We recommend you try these shorter searches ". $node->children_html. " ?";
$node->title = ' The exact phrase you searched for is not in our dictionary: '.$query;
return $node;
}
- #wordsplitter (Germanic)
This includes Afrikaans, English and German. Learn more in Wikipedia
ReviewedCite#wordsplitter. kasahorow concept. In English. Retrieved 05:48 PM November 21st, 2008, from http://dictionary.kasahorow.com/en/node/191433
Categories
K'amus