In the tag cloud when common English words r given by the user then it has stem(cut ) into one single word with counting the words example of my requirement . is if the string contains : (processing process processed processes) then the output has to come as only process only with count as 4 by grouping them
you could use regular expressions to create an associative array.
$cloud = array(); preg_match_all('/.*?process.*/', $string_containing_all_possible_forms, $matches); foreach($matches as $match) { $cloud['process'][] = $match; }