Simple PHP Text Scrip I would like a simple php script written that will read in a html string and perform word stemming (removal of the ends of the words), stop word removal, and word occurrence frequency analysis. The exact analysis done should be determined by the function parameters passed in. There is a nice php stemmer package that can be used to do the stemming ([url removed, login to view]). The stop word list will be supplied as an external text file. The stemmed text will need to be filtered to remove any term in the stop word file. For the word frequency analysis side I would like to generate the top x (ie top 10) individual words, word pairs, and word triplets that occur in the stemmed and filtered. I would also like the frequency for the pair and triplets to be countered by words placed in alphabetical order (ie "red mat " and "mat red" would be counted as two occurrences of "mat red"). Example of Required Text Processing Original Text "The fat cats sat on the reddish mat with the red fat cat" Stemmed Text "The fat cat sat on the red mat with the red fat cat" Stop Word Filtered "fat cat sat red mat red fat cat" Frequency Analysis Single Words cat 2 red 2 fat 2 sat 1 mat 1 Word pairs fat cat 2 cat sat 1 sat red 1 red mat 1 mat red 1 red fat 1 Word triplets fat cat sat 1 cat sat red 1 sat red mat 1 red mat red 1 mat red fat 1 Alphabetical Frequency Counts Word Pairs cat fat 2 cat sat 1 red sat 1 mat red 2 fat red 1 Word Triplets cat fat sat 1 cat red sat 1 mat red sat 1 mat red red 1 fat mat red 1 PM if you have any questions.