Login   Register  
PHP Classes
elePHPant
Icontem

Proper nouns: Extract proper nouns from texts

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2012-10-09 (1 year ago) RSS 2.0 feedNot yet rated by the usersTotal: 740 This week: 1All time: 4,131 This week: 1,453Up
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
Name: Arturs Sosins <contact>
Classes: 22 packages by
Country: Latvia Latvia
Age: 26
All time rank: 821 in Latvia Latvia
Week rank: 21 Up1 in Latvia Latvia Equal
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:740All time:4,131
 This week:1This week:1,453Up