PHP Classes

Proper nouns: Extract proper nouns from texts

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  Info   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2012-10-09 (3 years ago) RSS 2.0 feedNot yet rated by the usersTotal: 849 This week: 1All time: 3,886 This week: 1,095Up
Version License PHP version Categories  
proper-nouns 1.0BSD License5.0PHP 5, Text processing, Artificial in...
Description Author  

This class can extract proper nouns from texts.

It takes a text string and can detect which words may be proper nouns of people, entities, etc..

It uses some heuristics like the capitalization of the first word letter, the presence of people title preceeding the nouns, etc..

The class may consider consecutive proper names as a single proper name.

The class assumes English by default but may be configure to work with other idioms.

Innovation Award  
PHP Programming Innovation award nominee
June 2011
Number 7

Prize: One year subscription to the PDF edition of the JSMag magazine
Proper nouns are used to refer to people or other entities in text documents, so they are usually written starting with capital letters.

This class uses that kind of heuristics to identify and extract possible proper nouns used in a given text.

Manuel Lemos
Picture of Arturs Sosins
  Performance   Level  
Name: Arturs Sosins <contact>
Classes: 22 packages by
Country: Latvia Latvia
Age: 28
All time rank: 661 in Latvia Latvia
Week rank: 28 Up2 in Latvia Latvia Down
Innovation award
Innovation award
Nominee: 13x

Winner: 2x

  Files folder image Files  
File Role Description
Plain text file proper_nouns.php Class Main class
Accessible without login Plain text file simple_example.php Example Simple usage example
Accessible without login Plain text file example.php Example Try it out example

 Version Control Unique User Downloads Download Rankings  
 0%Total:849All time:3,886
 This week:1This week:1,095Up
 User Comments (1)