PHP Classes

PHPPolygen: Generate phrases based on a grammar using Polygen

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  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 (6 years ago) RSS 2.0 feedNot yet rated by the usersTotal: 317 This week: 1All time: 6,645 This week: 1,076Up
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: 3440139 in Italy Italy
Week rank: 878 Up43 in Italy Italy Up
Innovation award
Innovation award
Nominee: 1x

Details provided by the author  
== 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
== InuYaksa at
  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:317All time:6,645
 This week:1This week:1,076Up
 User Comments (1)  
Yes, it generates output, but not by itself.
6 years ago (fatevinculo)