Demo 0 | Demo 1 | Demo 2 | Demo 3 | Demo 4 | Demo 5 | Code | Matt Smith

Demo 3

The quick brown fox jumped over the lazy dog
Array
(
    [the] => 2
    [quick] => 1
    [brown] => 1
    [fox] => 1
    [jump] => 1
    [over] => 1
    [lazi] => 1
    [dog] => 1
)

Demo3.php

<?php

/* STATIC METHOD DEMO */
//Note: no instance of tm is necessary nor does process need not be called 
//STEMMING FUNCTIONALITY (requires class: Stemming.php)

//get stem counts as an array
$text "The quick brown fox jumped over the lazy dog";
echo 
$text;
$words explode(" ",$text);
$sc TextMiner::getStemCounts($words);
printa($sc);
        
?>