PHP Classes

PHPPolygen: Generate phrases based on a grammar using Polygen

Recommend this page to a friend!
  Info   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum (3)   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 337 This week: 1All time: 7,092 This week: 560Up
Version License PHP version Categories
phppolygen 1.1GNU Lesser Genera...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: 3729147 in Italy Italy
Week rank: 411 Up18 in Italy Italy Up
Innovation award
Innovation award
Nominee: 1x

Details

== PHPPolygen == for PHP5 == == by InuYaksa == version 1.1 - 2009.04.24 == License LGPL 2.1 Release notes 1.0 2008.06.25 - First release 1.1 2009.04.24 - Fix class for new embended code of the (restored) Polygen site >> ENG Unofficial wrapper for Polygen online generator Polygen can render grammary correct text for daily usage (at most with italian grammar) >> ITA Wrapper non ufficiale per il generatore online Polygen (preso dal sito) Il Polygen è un programma che genera frasi casuali secondo una definizione grammaticale, ovvero seguendo un corpus programmabile di regole sintattiche e lessicali. Ringrazio i ragazzi di Polygen (Manta e Zen, ed anche gli altri) per l'ottimo lavoro fatto sul generatore sintattico e per le grammatiche. == Polyget at http://www.polygen.org/ == == InuYaksa at http://www.areaaperta.com/

  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:337
This week:1
All time:7,092
This week:560Up
User Comments (1)
Yes, it generates output, but not by itself.
14 years ago (fatevinculo)
35%StarStar