Polyfortune is a little shell script which uses Polygen to generate random text.

Polyfortune choses a random grammar among the ones available on the system, and runs Polygen on that grammar. As the name suggests, it is meant to replace fortune in your login script, to give you a fresh fortune cookie every time.


Polyfortune can be asked to output the grammar’s title after the generated text, to let you know which one was used.

It is also possible to create a blacklist file to prevent Polyfortune from picking a grammar you don’t like.


You can pick any released version of Polyfortune from the releases section.