PHP Get All Words: Extract all words from string excluding stop words

Recommend this page to a friend!
  Info   View files Example   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 48%Total: 362 All time: 6,766 This week: 263Up
Version License PHP version Categories
get-words 1.0.0GNU General Publi...5PHP 5, Text processing
Description Author

This class can extract all words from string excluding stop words.

It can take a given text string and extracts the list of all words it contains to a array.

An optional list of stop words may be provided to be excluded from the list of words to return.

The class may lower the case of the words to consider words with upper and lower case letters the same.

Recommendations

Get all words in sentence
Some class to get all of words in sentence

Innovation Award
PHP Programming Innovation award nominee
April 2016
Number 13


Prize: One ebook of choice by Packt
PHP provides an extensive set of functions to manipulate text strings including several ways to split a string into its words.

However, there is no built-in way to detect and exclude stop words.

This class can extract the words of a text excluding stop words. I can also consider words that may appear duplicated but with different case.

Manuel Lemos
Picture of Lionel F. Lebeau
  Performance   Level  
Name: Lionel F. Lebeau <contact>
Classes: 4 packages by
Country: France France
Age: 59
All time rank: 246868 in France France
Week rank: 691 Up16 in France France Up
Innovation award
Innovation award
Nominee: 2x

  Files folder image Files  
File Role Description
Accessible without login Plain text file Examples.php Example Examples
Plain text file get_words.php Class class to get words

 Version Control Unique User Downloads Download Rankings  
 0%
Total:362
This week:0
All time:6,766
This week:263Up
 User Ratings  
 
 All time
Utility:66%StarStarStarStar
Consistency:66%StarStarStarStar
Documentation:-
Examples:83%StarStarStarStarStar
Tests:-
Videos:-
Overall:48%StarStarStar
Rank:2508
  

For more information send a message to info at phpclasses dot org.