Login   Register  
PHP Classes
elePHPant
Icontem

PHPPolygen: Generate phrases based on a grammar using Polygen

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 (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum (3)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2009-04-24 (5 years ago) RSS 2.0 feedNot yet rated by the usersTotal: 314 This week: 1All time: 6,526 This week: 1,384Up
Version License PHP version Categories  
phppolygen 1.1GNU Lesser General Publ...5Text processing, Web services
Description Author  

This class can be used to generate random phrases based on a grammar using Polygen Web services API.

It accesses the Polygen Web services API server and send request to generate a phrase using rules of grammar with a given name. Currently the Polygen API provides grammars for several topics in the Italian language.

The class can retrieve the generated phrase and return it as a text or HTML formatted string.

Innovation Award  
PHP Programming Innovation award nominee
July 2008
Number 11


Prize: One copy of Delphi for PHP
Polygen is a curious service that can be used to generate random phrases that obey the rules of a given grammar.

This class provides a solution to use Polygen services from PHP.

Manuel Lemos
Picture of Andrea Tosone
Name: Andrea Tosone <contact>
Classes: 1 package by
Country: Italy Italy
Age: ???
All time rank: 3382138 in Italy Italy
Week rank: 1063 Up48 in Italy Italy Up
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files  
File Role Description
Accessible without login Plain text file lgpl-2.1.txt Lic. LGPL 2.1 license
Plain text file phppolygen.php Class class source
Accessible without login Plain text file README.txt Doc. documentation
Accessible without login Plain text file test.php Example example uses

 Version Control Unique User Downloads Download Rankings  
 0%Total:314All time:6,526
 This week:1This week:1,384Up
 User Comments (1)  
 
Yes, it generates output, but not by itself.
5 years ago (fatevinculo)
35%StarStar